[PATCH net-next] liquidio: Add the features to show FEC settings and set FEC settings

2018-09-16 Thread Felix Manlunas
From: Weilin Chang 1. Add functions for get_fecparam and set_fecparam. 2. Modify lio_get_link_ksettings to display FEC setting. Signed-off-by: Weilin Chang Acked-by: Derek Chickles Signed-off-by: Felix Manlunas --- drivers/net/ethernet/cavium/liquidio/lio_core.c| 148

[PATCH net-next 1/3] liquidio: Disabling tasklet when NAPI is active

2018-09-10 Thread Felix Manlunas
From: Intiyaz Basha Control packets are processed in tasklet when interface is down and in NAPI when interface is up. So tasklet can be disabled when interface up and re-enabled when interface is down. Signed-off-by: Intiyaz Basha Acked-by: Derek Chickles Signed-off-by: Felix Manlunas

[PATCH net-next 3/3] liquidio: Removed droq lock

2018-09-10 Thread Felix Manlunas
From: Intiyaz Basha With the changes in patch 1 and 2, droq lock is not required. So removing droq lock. Signed-off-by: Intiyaz Basha Acked-by: Derek Chickles Signed-off-by: Felix Manlunas --- .../net/ethernet/cavium/liquidio/octeon_device.c | 4 --- drivers/net/ethernet/cavium/liquidio

[PATCH net-next 2/3] liquidio: Per queue oom work queue

2018-09-10 Thread Felix Manlunas
oom task refills the buffers. Signed-off-by: Intiyaz Basha Acked-by: Derek Chickles Signed-off-by: Felix Manlunas --- drivers/net/ethernet/cavium/liquidio/lio_core.c| 77 +++--- drivers/net/ethernet/cavium/liquidio/lio_ethtool.c | 7 ++ drivers/net/ethernet/cavium/liquidio

[PATCH net-next 0/3] liquidio: Removed droq lock from Rx path

2018-09-10 Thread Felix Manlunas
From: Intiyaz Basha Series of patches for removing droq lock from Rx Path. Intiyaz Basha (3): liquidio: Disabling tasklet when NAPI is active liquidio: Per queue oom work queue liquidio: Removed droq lock drivers/net/ethernet/cavium/liquidio/lio_core.c| 77 +++--

Re: GPL compliance issue with liquidio/lio_23xx_vsw.bin firmware

2018-09-07 Thread Felix Manlunas
On Wed, Aug 29, 2018 at 09:26:35PM +0100, Ben Hutchings wrote: > Date: Wed, 29 Aug 2018 21:26:35 +0100 > From: Ben Hutchings > To: Felix Manlunas , Florian Weimer > > CC: linux-firmw...@kernel.org, "netdev@vger.kernel.org" > , Derek Chickles > , Satanand Burla

[PATCH net-next] liquidio: Add spoof checking on a VF MAC address

2018-09-05 Thread Felix Manlunas
from PF. Signed-off-by: Weilin Chang Signed-off-by: Felix Manlunas --- drivers/net/ethernet/cavium/liquidio/lio_core.c| 74 ++ drivers/net/ethernet/cavium/liquidio/lio_ethtool.c | 3 +- drivers/net/ethernet/cavium/liquidio/lio_main.c| 63 ++ drivers/net

[PATCH net-next] liquidio: Added delayed work for periodically updating the link statistics.

2018-08-31 Thread Felix Manlunas
From: Pradeep Nalla Signed-off-by: Pradeep Nalla Signed-off-by: Felix Manlunas --- drivers/net/ethernet/cavium/liquidio/lio_core.c| 24 +++--- drivers/net/ethernet/cavium/liquidio/lio_main.c| 9 +++- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 8

Re: [PATCH v2 net-next] liquidio: remove set but not used variable 'irh'

2018-08-31 Thread Felix Manlunas
; - irh = (struct octeon_instr_irh *) > - >cmd.cmd2.irh; > - > /* We're expecting a response from Octeon. > * It's up to lio_process_ordered_list() to > * process sc. Add sc to the ordered soft > Acked-by: Felix Manlunas

[PATCH net-next 1/4] liquidio: improve soft command handling

2018-08-28 Thread Felix Manlunas
list will be freed when the driver is unloaded. Signed-off-by: Weilin Chang Signed-off-by: Felix Manlunas --- drivers/net/ethernet/cavium/liquidio/lio_main.c| 31 +- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 34 +- .../net/ethernet/cavium/liquidio/octeon_config.h

[PATCH net-next 2/4] liquidio: make soft command calls synchronous

2018-08-28 Thread Felix Manlunas
-by: Felix Manlunas --- drivers/net/ethernet/cavium/liquidio/lio_core.c| 134 ++--- drivers/net/ethernet/cavium/liquidio/lio_main.c| 42 ++- drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c | 42 ++- drivers/net/ethernet/cavium/liquidio/octeon_main.h | 66

[PATCH net-next 3/4] liquidio: change octnic_ctrl_pkt to do synchronous soft commands

2018-08-28 Thread Felix Manlunas
1. Change struct octnic_ctrl_pkt to support synchronous operation. 2. Change code which use structure octnic_ctrl_pkt to send sc's synchronously. Signed-off-by: Weilin Chang Signed-off-by: Felix Manlunas --- drivers/net/ethernet/cavium/liquidio/lio_core.c| 15 ++--- drivers/net/ethernet

[PATCH net-next 4/4] liquidio: remove obsolete functions and data structures

2018-08-28 Thread Felix Manlunas
1. Remove unused functions and data structures. 2. Change the sending of the remaining soft commands to synchronous. Signed-off-by: Weilin Chang Signed-off-by: Felix Manlunas --- drivers/net/ethernet/cavium/liquidio/lio_core.c| 83 +--- drivers/net/ethernet/cavium/liquidio

[PATCH net-next 0/4] liquidio: improve soft command/response handling

2018-08-28 Thread Felix Manlunas
From: Weilin Chang Change soft command handling to fix the possible race condition when the process handles a response of a soft command that was already freed by an application which got timeout for this request. Weilin Chang (4): liquidio: improve soft command handling liquidio: make soft

[PATCH net-next] liquidio: fix race condition in instruction completion processing

2018-08-28 Thread Felix Manlunas
processed. Signed-off-by: Rick Farrington Signed-off-by: Felix Manlunas --- drivers/net/ethernet/cavium/liquidio/octeon_device.c | 5 +++-- drivers/net/ethernet/cavium/liquidio/octeon_iq.h | 2 ++ drivers/net/ethernet/cavium/liquidio/request_manager.c | 2 ++ 3 files changed, 7 insertions

[PATCH net-next] liquidio: remove unnecessary delay when processing IQ responses

2018-08-28 Thread Felix Manlunas
From: Rick Farrington Signed-off-by: Rick Farrington Signed-off-by: Felix Manlunas --- drivers/net/ethernet/cavium/liquidio/request_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cavium/liquidio/request_manager.c b/drivers/net/ethernet

Re: GPL compliance issue with liquidio/lio_23xx_vsw.bin firmware

2018-08-27 Thread Felix Manlunas
On Mon, Aug 27, 2018 at 05:01:10PM +0200, Florian Weimer wrote: > liquidio/lio_23xx_vsw.bin contains a compiled MIPS Linux kernel: > > $ tail --bytes=+1313 liquidio/lio_23xx_vsw.bin > elf > $ readelf -aW elf > […] > [ 6] __ksymtab PROGBITS80e495f8 64a5f8 00d130 > 00 A

[PATCH net-next] liquidio: copperhead LED identification

2018-08-09 Thread Felix Manlunas
From: Raghu Vatsavayi Add LED identification support for liquidio TP copperhead cards. Signed-off-by: Raghu Vatsavayi Acked-by: Derek Chickles Signed-off-by: Felix Manlunas --- drivers/net/ethernet/cavium/liquidio/lio_ethtool.c | 27 ++ .../net/ethernet/cavium/liquidio

[PATCH net-next] liquidio: avoided acquiring post_lock for data only queues

2018-08-06 Thread Felix Manlunas
, post_lock must be acquired before posting a command to the queue. If this flag is clear, post_lock is invalid for the queue. Signed-off-by: Intiyaz Basha Signed-off-by: Felix Manlunas --- drivers/net/ethernet/cavium/liquidio/octeon_iq.h | 10 ++ .../net/ethernet/cavium/liquidio

[PATCH net-next] liquidio: correct error msg text when removing VLAN ID

2018-07-16 Thread Felix Manlunas
From: Rick Farrington Signed-off-by: Rick Farrington Signed-off-by: Felix Manlunas --- drivers/net/ethernet/cavium/liquidio/lio_main.c| 2 +- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet

[PATCH net-next] liquidio: fix hang when re-binding VF host drv after running DPDK VF driver

2018-07-13 Thread Felix Manlunas
-length packets). This represented an invalid hardware configuration which the driver could not handle. Signed-off-by: Rick Farrington Signed-off-by: Felix Manlunas --- drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c | 3 +++ drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c | 3

Re: [PATCH] liquidio: Use %pad printk format for dma_addr_t values

2018-07-12 Thread Felix Manlunas
ot;, > + iq_no, iq->base_addr, >base_addr_dma, iq->max_count); > > iq->txpciq.u64 = txpciq.u64; > iq->fill_threshold = (u32)conf->db_min; Acked-by: Felix Manlunas

[PATCH V2 net-next] liquidio: fix kernel panic when NIC firmware is older than 1.7.2

2018-07-06 Thread Felix Manlunas
and causes a cascade of errors that ends in a kernel panic. Fix it by making the sending of the "get speed" command conditional on the firmware version. Signed-off-by: Rick Farrington Signed-off-by: Felix Manlunas --- Patch Change Log: V1 -> V2: * In the if-statement that chec

Re: [PATCH net-next] liquidio: fix kernel panic when NIC firmware is older than 1.7.2

2018-06-27 Thread Felix Manlunas
On Tue, Jun 26, 2018 at 09:03:25AM -0700, Shannon Nelson wrote: > On 6/26/2018 4:58 AM, Felix Manlunas wrote: > > From: Rick Farrington > > > > Pre-1.7.2 NIC firmware does not support (and does not respond to) the "get > > speed" command which is sent by t

[PATCH net-next] liquidio: fix kernel panic when NIC firmware is older than 1.7.2

2018-06-25 Thread Felix Manlunas
that ends in a kernel panic. Fix it by making the sending of the "get speed" command conditional on the firmware version. Signed-off-by: Rick Farrington Acked-by: Derek Chickles Signed-off-by: Felix Manlunas --- Note: To avoid checkpatch.pl "WARNING: line over 80 characters",

Re: pull request Cavium liquidio vswitch firmware v1.7.2

2018-06-06 Thread Felix Manlunas
On Mon, May 21, 2018 at 10:39:20AM -0700, Felix Manlunas wrote: > The following changes since commit 2a9b2cf50fb32e36e4fc1586c2f6f1421913b553: > > Merge branch 'for-upstreaming-v1.7.2' of > https://github.com/felix-cavium/linux-firmware (2018-05-18 08:35:22 -0400) > > are av

pull request Cavium liquidio vswitch firmware v1.7.2

2018-05-21 Thread Felix Manlunas
for-upstreaming-v1.7.2-vsw for you to fetch changes up to 0e193ca65d8b064502d61163597bf14eef81710f: linux-firmware: liquidio: update vswitch firmware to v1.7.2 (2018-05-19 23:29:03 -0700) Signed-off-by: Manish Awasthi <manish.awas...@cavium.com> Signed-off-by: Felix Manlunas <fe

[PATCH net-next] liquidio: bump up driver version to 1.7.2 to match newer NIC firmware

2018-05-09 Thread Felix Manlunas
Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/liquidio/liquidio_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cavium/liquidio/liquidio_common.h b/drivers/net/ethernet/cavium/liquidio/liquidio_co

[PATCH net-next] liquidio: monitor all of Octeon's cores in watchdog thread

2018-05-09 Thread Felix Manlunas
The liquidio_watchdog kernel thread is watching over only 12 cores of the Octeon CN23XX; it's neglecting the other 4 cores that are present in the CN2360. Fix it by defining LIO_MAX_CORES as 16. Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/li

pull-request Cavium liquidio firmware v1.7.2

2018-05-08 Thread Felix Manlunas
up to d3b6941e1a85cbff895a92aa9e36b50deaeac970: linux-firmware: liquidio: update firmware to v1.7.2 (2018-05-08 19:02:41 -0700) Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> ---- Felix Manlunas (1): linux-fi

[PATCH V2 net-next] liquidio: support use of ethtool to set link speed of CN23XX-225 cards

2018-05-04 Thread Felix Manlunas
tially via ethtool_convert_legacy_u32_to_link_mode). Signed-off-by: Weilin Chang <weilin.ch...@cavium.com> Acked-by: Raghu Vatsavayi <raghu.vatsav...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- Patch Change Log: V1 -> V2: In lio_set_link

[PATCH net-next] liquidio: support use of ethtool to set link speed of CN23XX-225 cards

2018-05-03 Thread Felix Manlunas
tially via ethtool_convert_legacy_u32_to_link_mode). Signed-off-by: Weilin Chang <weilin.ch...@cavium.com> Acked-by: Raghu Vatsavayi <raghu.vatsav...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/liqu

[PATCH net-next] liquidio VF: indicate that disabling rx vlan offload is not allowed

2018-05-01 Thread Felix Manlunas
ures. So just do the same thing in the VF. Signed-off-by: Raghu Vatsavayi <raghu.vatsav...@cavium.com> Acked-by: Prasad Kanneganti <prasad.kannega...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/liquidio/lio_vf_main

[PATCH V2 net-next 4/6] liquidio: Moved common definition octnic_gather to octeon_network.h

2018-04-28 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Moving common definition octnic_gather to octeon_network.h Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.

[PATCH V2 net-next 6/6] liquidio: enhanced ethtool --set-channels feature

2018-04-28 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Enhancing driver to accept max supported queues for ethtool --set-channels Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <feli

[PATCH V2 net-next 5/6] liquidio: Moved common function setup_glists to lio_core.c

2018-04-28 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Moved common function setup_glists to lio_core.c and reamed it to lio_setup_glists Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <feli

[PATCH V2 net-next 2/6] liquidio: Moved common function list_delete_head to octeon_network.h

2018-04-28 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Moved common function list_delete_head to octeon_network.h and renamed it to lio_list_delete_head Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Man

[PATCH V2 net-next 3/6] liquidio: Moved common function delete_glists to lio_core.c

2018-04-28 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Moved common function delete_glists to lio_core.c and renamed it to lio_delete_glists Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Man

[PATCH V2 net-next 1/6] liquidio: Moved common function if_cfg_callback to lio_core.c

2018-04-28 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Moved common function if_cfg_callback to lio_core.c and renamed it to lio_if_cfg_callback. Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Man

[PATCH V2 net-next 0/6] liquidio: enhanced ethtool --set-channels feature

2018-04-28 Thread Felix Manlunas
From: Intiyaz Basha For the ethtool --set-channels feature, the liquidio driver currently accepts max combined value as the queue count configured during driver load time, where max combined count is the total count of input and output queues. This limitation is

[PATCH net-next 2/2] liquidio: add support for ndo_get_stats64 instead of ndo_get_stats

2018-04-25 Thread Felix Manlunas
From: Pradeep Nalla <pradeep.na...@cavium.com> Support ndo_get_stats64 instead of ndo_get_stats. Also add stats for multicast and broadcast packets. Signed-off-by: Pradeep Nalla <pradeep.na...@cavium.com> Acked-by: Raghu Vatsavayi <raghu.vatsav...@cavium.com> Signed-off-

[PATCH net-next 1/2] liquidio: move a couple of functions to lio_core.c

2018-04-25 Thread Felix Manlunas
ration and add its function prototype in octeon_network.h. Signed-off-by: Pradeep Nalla <pradeep.na...@cavium.com> Acked-by: Raghu Vatsavayi <raghu.vatsav...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/liqu

[PATCH net-next 0/2] liquidio: add support for ndo_get_stats64

2018-04-25 Thread Felix Manlunas
From: Pradeep Nalla Support ndo_get_stats64 instead of ndo_get_stats. Also add stats for multicast and broadcast packets. Pradeep Nalla (2): liquidio: move a couple of functions to lio_core.c liquidio: add support for ndo_get_stats64 instead of ndo_get_stats

[PATCH net-next 3/6] liquidio: Moved common function delete_glists to lio_core.c

2018-04-25 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Moved common function delete_glists to lio_core.c and renamed it to lio_delete_glists Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Man

[PATCH net-next 4/6] liquidio: Moved common definition octnic_gather to octeon_network.h

2018-04-25 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Moving common definition octnic_gather to octeon_network.h Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.

[PATCH net-next 2/6] liquidio: Moved common function list_delete_head to octeon_network.h

2018-04-25 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Moved common function list_delete_head to octeon_network.h and renamed it to lio_list_delete_head Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Man

[PATCH net-next 6/6] liquidio: enhanced ethtool --set-channels feature

2018-04-25 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Enhancing driver to accept max supported queues for ethtool --set-channels Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <feli

[PATCH net-next 5/6] liquidio: Moved common function setup_glists to lio_core.c

2018-04-25 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Moved common function setup_glists to lio_core.c and reamed it to lio_setup_glists Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <feli

[PATCH net-next 1/6] liquidio: Moved common function if_cfg_callback to lio_core.c

2018-04-25 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Moved common function if_cfg_callback to lio_core.c and renamed it to lio_if_cfg_callback. Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Man

[PATCH net-next 0/6] liquidio: enhanced ethtool --set-channels feature

2018-04-25 Thread Felix Manlunas
From: Intiyaz Basha For the ethtool --set-channels feature, the liquidio driver currently accepts max combined value as the queue count configured during driver load time, where max combined count is the total count of input and output queues. This limitation is

[PATCH net-next] liquidio: Swap VF representor Tx and Rx statistics

2018-04-24 Thread Felix Manlunas
rek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c

Re: [PATCH] liquidio: fix liquidio_xmit()'s return type

2018-04-24 Thread Felix Manlunas
was transmitted to the device okay or not > * (NETDEV_TX_OK or NETDEV_TX_BUSY) > */ > -static int liquidio_xmit(struct sk_buff *skb, struct net_device *netdev) > +static netdev_tx_t liquidio_xmit(struct sk_buff *skb, struct net_device > *netdev) > { >

Re: [PATCH] liquidio: fix lio_vf_rep_pkt_xmit()'s return type

2018-04-24 Thread Felix Manlunas
tatic int > +static netdev_tx_t > lio_vf_rep_pkt_xmit(struct sk_buff *skb, struct net_device *ndev) > { > struct lio_vf_rep_desc *vf_rep = netdev_priv(ndev); > -- > 2.17.0 > Thanks. Acked-by: Felix Manlunas <felix.manlu...@cavium.com>

[PATCH net-next] liquidio: Added ndo_get_vf_stats support

2018-04-19 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Added the ndo to gather VF statistics through the PF. Collect VF statistics via mailbox from VF. Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- .../ethern

[PATCH net-next] liquidio: Enhanced ethtool stats

2018-04-17 Thread Felix Manlunas
avium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Acked-by: Satanand Burla <satananda.bu...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/liquidio/lio_ethtool.c | 54 ++-- drivers/net/ethernet/cavi

[PATCH V2 net-next] liquidio: prevent rx queues from getting stalled

2018-03-29 Thread Felix Manlunas
ble in the patch as it is already there in the code. The DOWN command also waits for any pending packets to be processed by NAPI so that the deadlock will not occur. Signed-off-by: Raghu Vatsavayi <raghu.vatsav...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by:

[PATCH net-next] liquidio: Prioritize control messages

2018-03-27 Thread Felix Manlunas
ssigns it to pki_ih3->qpg Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/liquidio/liquidio_common.h | 8 ++-- drivers/net/ethernet/cavium/liquidio/request_manager.c | 3 ++- 2 files

[PATCH net-next] liquidio: Removed duplicate Tx queue status check

2018-03-26 Thread Felix Manlunas
ed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/liquidio/lio_main.c| 28 - drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 29 -- 2 files changed, 57

[PATCH net-next 07/13] liquidio: Removed netif_is_multiqueue check

2018-03-23 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Removing checks for netif_is_multiqueue. Configuring single queue will be a multiqueue netdev with one queues. Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-

[PATCH net-next 09/13] liquidio: Removed one line function wake_q

2018-03-23 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Removing one line function wake_q Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/

[PATCH net-next 13/13] liquidio: Renamed txqs_start to start_txqs

2018-03-23 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> For consistency renaming txqs_start to start_txqs Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- dri

[PATCH net-next 11/13] liquidio: Renamed txqs_wake to wake_txqs

2018-03-23 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> For consistency renaming txqs_wake to wake_txqs Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- dri

[PATCH net-next 06/13] liquidio: Removed start_txq function

2018-03-23 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Removing start_txq function from VF and PF files Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- dri

[PATCH net-next 08/13] liquidio: Removed one line function stop_q

2018-03-23 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Removing one line function stop_q Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/

[PATCH net-next 04/13] liquidio: Moved common function skb_iq to to octeon_network.h

2018-03-23 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Moving common function skb_iq to to octeon_network.h Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> -

[PATCH net-next 10/13] liquidio: Function call skb_iq for deriving queue from skb

2018-03-23 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Using skb_iq function for deriving queue from skb Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- dri

[PATCH net-next 12/13] liquidio: Renamed txqs_stop to stop_txqs

2018-03-23 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> For consistency renaming txqs_stop to stop_txqs Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- dri

[PATCH net-next 05/13] liquidio: Removed one line function stop_txq

2018-03-23 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Removing one line function stop_txq Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/

[PATCH net-next 03/13] liquidio: Moved common function txqs_start to octeon_network.h

2018-03-23 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Moving common function txqs_start to octeon_network.h Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> -

[PATCH net-next 02/13] liquidio: Moved common function txqs_wake to octeon_network.h

2018-03-23 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Moving common function txqs_wake to octeon_network.h Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> -

[PATCH net-next 01/13] liquidio: Moved common function txqs_stop to octeon_network.h

2018-03-23 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Moving common function txqs_stop to octeon_network.h Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> -

[PATCH net-next 00/13] liquidio: Tx queue cleanup

2018-03-23 Thread Felix Manlunas
From: Intiyaz Basha Moved some common function to octeon_network.h Removed some unwanted functions and checks. Intiyaz Basha (13): liquidio: Moved common function txqs_stop to octeon_network.h liquidio: Moved common function txqs_wake to octeon_network.h

[PATCH V2 net-next] liquidio: Added support for trusted VF

2018-03-22 Thread Felix Manlunas
; Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- Patch Change Log: V1 -> V2: Used completion in place of wait queue drivers/net/ethernet/cavium/liquidio/lio_main.c| 116 + .../net/ethernet/cavium/liquidio/liquidio_common.h | 7 ++ .../net/eth

[PATCH net-next] liquidio: Added support for trusted VF

2018-03-16 Thread Felix Manlunas
om> Acked-by: Satanand Burla <satananda.bu...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/liquidio/lio_main.c| 125 + .../net/ethernet/cavium/liquidio/liquidio_common.h | 7 ++ .../net/ethernet/cavium/liquidio

[PATCH net-next] liquidio: Simplified napi poll

2018-03-16 Thread Felix Manlunas
emoved unused macros POLL_EVENT_XXX. Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/liquidio/lio_core.c| 7 +- drivers/net/ethernet/cavium/liquidio/octeon_droq.c | 83 -

[PATCH net-next] liquidio: Allow RX descriptors to be consumed before disabling NAPI.

2018-03-14 Thread Felix Manlunas
From: Raghu Vatsavayi <raghu.vatsav...@cavium.com> Signed-off-by: Raghu Vatsavayi <raghu.vatsav...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/liq

[PATCH net-next] liquidio: Add support for liquidio 10GBase-T NIC

2018-03-13 Thread Felix Manlunas
m> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/liquidio/lio_ethtool.c | 24 -- .../net/ethernet/cavium/liquidio/liquidio_common.h | 12 +-- 2 files changed, 28 insertions(+), 8 deletions(-) diff --git a/drivers/n

[PATCH V2 net-next] liquidio: fix ndo_change_mtu to always return correct status to the caller

2018-03-10 Thread Felix Manlunas
orrect status to caller of ndo_change_mtu. Also moved the common code for MTU change from PF and VF driver files to common file lio_core.c Signed-off-by: Veerasenareddy Burru <veerasenareddy.bu...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- Patch Chan

[PATCH net-next] liquidio: fix ndo_change_mtu to always return correct status to the caller

2018-03-07 Thread Felix Manlunas
orrect status to caller of ndo_change_mtu. Also moved the common code for MTU change from PF and VF driver files to common file lio_core.c Signed-off-by: Veerasenareddy Burru <veerasenareddy.bu...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/n

[PATCH net-next] liquidio: avoid doing useless work

2018-03-07 Thread Felix Manlunas
From: Prasad Kanneganti <prasad.kannega...@cavium.com> Avoid doing useless work by making sure that the response_list is not empty before scheduling work to process it. Signed-off-by: Prasad Kanneganti <prasad.kannega...@cavium.com> Signed-off-by: Felix Manlunas <felix.manl

[PATCH net-next] liquidio: Resolved mbox read issue while reading more than one 64bit data

2018-03-07 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Corrected length check when data received in the mbox is more than one 64 bit data value Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethern

[PATCH net-next] liquidio: Added ndo_get_phys_port_id support

2018-03-02 Thread Felix Manlunas
ss/net//phys_port_id Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/liquidio/lio_core.c | 13 + drivers/net/

[PATCH net-next] liquidio: Corrected Rx bytes counting

2018-03-02 Thread Felix Manlunas
From: Intiyaz Basha <intiyaz.ba...@cavium.com> Corrected stats mismatch between Host Tx and its peer Rx stats Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.

[PATCH net-next] liquidio: do not consider packets dropped by network stack as driver Rx dropped

2017-11-03 Thread Felix Manlunas
t;rx_dropped. Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Signed-off-by: Satanand Burla <satananda.bu...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/liquidio/lio_core.c | 15 +++ 1 file changed,

[PATCH net-next] liquidio: Fix an issue with multiple switchdev enable disables

2017-11-03 Thread Felix Manlunas
tanand Burla <satananda.bu...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/liquidio/octeon_device.c | 4 drivers/net/ethernet/cavium/liquidio/octeon_droq.c | 4 ++-- drivers/net/ethernet/cavium/liquidio/octeon_droq.h | 3

[PATCH net-next] liquidio: bump up driver version to 1.7.0 to match newer NIC firmware

2017-11-01 Thread Felix Manlunas
Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> Acked-by: Derek Chickles <derek.chick...@cavium.com> --- drivers/net/ethernet/cavium/liquidio/liquidio_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/cavium/liquidio/liqui

[PATCH net-next] liquidio: synchronize VF representor names with NIC firmware

2017-11-01 Thread Felix Manlunas
e when it gets registered and when its name changes. Signed-off-by: Vijaya Mohan Guvva <vijaya.gu...@cavium.com> Signed-off-by: Raghu Vatsavayi <raghu.vatsav...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/liq

Re: [PATCH V3 net-next 1/2] liquidio: switchdev support for LiquidIO NIC

2017-11-01 Thread Felix Manlunas
On Wed, Nov 01, 2017 at 02:02:07PM +0100, Andrew Lunn wrote: > > +static int > > +lio_pf_switchdev_attr_get(struct net_device *dev, struct switchdev_attr > > *attr) > > +{ > > + struct lio *lio = GET_LIO(dev); > > + > > + switch (attr->id) { > > + case SWITCHDEV_ATTR_ID_PORT_PARENT_ID: > >

[PATCH V3 net-next 2/2] liquidio: Configure switchdev with devlink

2017-10-31 Thread Felix Manlunas
avium.com> Signed-off-by: Satanand Burla <satananda.bu...@cavium.com> Signed-off-by: Raghu Vatsavayi <raghu.vatsav...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/Kconfig| 1 + drivers/net/ethernet/cavi

[PATCH V3 net-next 1/2] liquidio: switchdev support for LiquidIO NIC

2017-10-31 Thread Felix Manlunas
rmware and to retrieve HW counted VF stats for VF representor. Signed-off-by: Vijaya Mohan Guvva <vijaya.gu...@cavium.com> Signed-off-by: Satanand Burla <satananda.bu...@cavium.com> Signed-off-by: Raghu Vatsavayi <raghu.vatsav...@cavium.com> Signed-off-by: Felix Manlunas &l

[PATCH V3 net-next 0/2] liquidio: switchdev support for LiquidIO NIC

2017-10-31 Thread Felix Manlunas
From: Vijaya Mohan Guvva patch1 of this patch set adds switchdev support for SRIOV capable LiquidIO NIC, so that for every SRIOV VF on LiquidIO, a representor netdev is created on hypervisor. It also has changes to send representor interface configurations like admin

[PATCH net-next] liquidio: get rid of false alarm "Unknown cmd 27" in dmesg

2017-10-27 Thread Felix Manlunas
a control command sent from host to NIC firmware to set the unicast MAC address list of the macvtap lower device. Make the false alarm go away by adding a case for OCTNET_CMD_SET_UC_LIST in liquidio_link_ctrl_cmd_completion(). Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> Sign

[PATCH V2 net-next 2/2] liquidio: Configure switchdev with devlink

2017-10-27 Thread Felix Manlunas
avium.com> Signed-off-by: Satanand Burla <satananda.bu...@cavium.com> Signed-off-by: Raghu Vatsavayi <raghu.vatsav...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/Kconfig| 1 + drivers/net/ethernet/cavi

[PATCH V2 net-next 1/2] liquidio: switchdev support for LiquidIO NIC

2017-10-27 Thread Felix Manlunas
rmware and to retrieve HW counted VF stats for VF representor. Signed-off-by: Vijaya Mohan Guvva <vijaya.gu...@cavium.com> Signed-off-by: Satanand Burla <satananda.bu...@cavium.com> Signed-off-by: Raghu Vatsavayi <raghu.vatsav...@cavium.com> Signed-off-by: Felix Manlunas &l

[PATCH V2 net-next 0/2] liquidio: Switchdev support for LiquidIO NIC

2017-10-27 Thread Felix Manlunas
From: Vijaya Mohan Guvva patch1 of this patch set adds switchdev support for SRIOV capable LiquidIO NIC, so that for every SRIOV VF on LiquidIO, a representor netdev is created on hypervisor. It also has changes to send representor interface configurations like admin

[PATCH net-next] liquidio: fix kernel panic in VF driver

2017-10-26 Thread Felix Manlunas
ing packets to host is done too late. Fix it by moving that step to the beginning. Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> Signed-off-by: Raghu Vatsavayi <raghu.vatsav...@cavium.com> --- drivers/net/ethernet/cavium/liquidio/lio_vf_main.c | 6 +++--- 1 file change

[PATCH V2 net-next] liquidio: xmit_more support

2017-10-26 Thread Felix Manlunas
ests show that 8 results in low latency. Signed-off-by: Intiyaz Basha <intiyaz.ba...@cavium.com> Signed-off-by: Satanand Burla <satananda.bu...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- Patch Change Log: V1 -> V2: Add a Tx doorbell ring deferr

[PATCH net-next 1/3] liquidio: switchdev support for LiquidIO NIC

2017-10-25 Thread Felix Manlunas
rmware and to retrieve HW counted VF stats for VF representor. Signed-off-by: Vijaya Mohan Guvva <vijaya.gu...@cavium.com> Signed-off-by: Satanand Burla <satananda.bu...@cavium.com> Signed-off-by: Raghu Vatsavayi <raghu.vatsav...@cavium.com> Signed-off-by: Felix Manlunas &l

[PATCH net-next 2/3] liquidio: Configure switchdev with devlink

2017-10-25 Thread Felix Manlunas
avium.com> Signed-off-by: Satanand Burla <satananda.bu...@cavium.com> Signed-off-by: Raghu Vatsavayi <raghu.vatsav...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/Kconfig| 1 + drivers/net/ethernet/cavi

[PATCH net-next 3/3] liquidio: ethtool support for switchdev ports

2017-10-25 Thread Felix Manlunas
y: Raghu Vatsavayi <raghu.vatsav...@cavium.com> Signed-off-by: Felix Manlunas <felix.manlu...@cavium.com> --- drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c | 87 +++ 1 file changed, 87 insertions(+) diff --git a/drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c b/driver

  1   2   3   >