[PATCH net] MAINTAINERS: update cxgb4 maintainer

2017-01-18 Thread Hariprasad Shenai
Ganesg will be taking over as maintainer from now Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index c36976d3bd1a..af3456d33a18 100644 --- a/MAINTAINERS +++ b/MAINT

[PATCH net-next] cxgb4: Shutdown adapter if firmware times out or errors out

2017-01-13 Thread Hariprasad Shenai
. This will also force the port Link Status to go down -- if register writes work -- which should help our peers figure out that we're down. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_

[PATCHv2 net-next] cxgb4: Synchronize access to mailbox

2017-01-05 Thread Hariprasad Shenai
to complete. Also timeout from the loop, if the command under execution takes long time to run. In reality, the number of mailbox access collisions is going to be very rare since no one runs such abusive script. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/c

[PATCH net-next] cxgb4: Synchronize access to mailbox

2017-01-04 Thread Hariprasad Shenai
to complete. Also timeout from the loop, if the command under execution takes long time to run. In reality, the number of mailbox access collisions is going to be very rare since no one runs such abusive script. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/c

[PATCH net] cxgb4: Add PCI device ID for new adapter

2016-11-29 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h b/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h index df1573

[PATCH net] cxgb4: correct device ID of T6 adapter

2016-11-01 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h b/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h

[PATCHv2 net] cxgb4/cxgb4vf: Allocate more queues for 25G and 100G adapter

2016-09-20 Thread Hariprasad Shenai
tput. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- V2: Missed 25G in the first one drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 4 ++-- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c| 15 +-- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c

Re: [PATCH net] cxgb4/cxgb4vf: Allocate more queues for 100G adapter

2016-09-20 Thread Hariprasad Shenai
On Mon, Sep 19, 2016 at 01:32:46PM +0530, Hariprasad Shenai wrote: > We were missing check for 100G while checking port speed, which lead to > less number of queues getting allocated for 100G and leading to low > throughput. Adding the missing check for both NIC and vNIC driver. >

[PATCH net] cxgb4/cxgb4vf: Allocate more queues for 100G adapter

2016-09-19 Thread Hariprasad Shenai
We were missing check for 100G while checking port speed, which lead to less number of queues getting allocated for 100G and leading to low throughput. Adding the missing check for both NIC and vNIC driver. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/et

[PATCH net-next] chcr/cxgb4i/cxgbit/RDMA/cxgb4: Allocate resources dynamically for all cxgb4 ULD's

2016-09-16 Thread Hariprasad Shenai
remove. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/crypto/chelsio/chcr_core.c | 10 +- drivers/infiniband/hw/cxgb4/device.c |4 + drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 47 +- drivers/net/ethernet/chelsio

[PATCHv2 net-next] cxgb4vf: don't offload Rx checksums for IPv6 fragments

2016-09-13 Thread Hariprasad Shenai
The checksum provided by the device doesn't include the L3 headers, as IPv6 expects Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- V2: Fixed compilation issue reported by kbuild bot drivers/net/ethernet/chelsio/cxgb4vf/sge.c | 7 --- 1 file changed, 4 insertions

[PATCH net-next] cxgb4vf: don't offload Rx checksums for IPv6 fragments

2016-09-13 Thread Hariprasad Shenai
The checksum provided by the device doesn't include the L3 headers, as IPv6 expects Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4vf/sge.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/c

[PATCH net-next] cxgb4: Add support for ndo_get_vf_config

2016-09-02 Thread Hariprasad Shenai
Adds support for ndo_get_vf_config, also fill the default mac address that will be provided to the VF by firmware, in case user doesn't provide one. So user can get the default MAC address address also through ndo_get_vf_config. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.

Re: [PATCH net-next 1/2] cxgb4/cxgb4vf: Add support for ndo_set_vf_vlan

2016-08-24 Thread Hariprasad Shenai
On Wednesday, August 08/24/16, 2016 at 08:31:58 +, Yuval Mintz wrote: > > > > @@ -1202,6 +1202,10 @@ int t4vf_eth_xmit(struct sk_buff *skb, struct > > > > net_device *dev) > > > > BUG_ON(qidx >= pi->nqsets); > > > > txq = >sge.ethtxq[pi->first_qset + qidx]; > > > > > > > > +

Re: [PATCH net-next 1/2] cxgb4/cxgb4vf: Add support for ndo_set_vf_vlan

2016-08-24 Thread Hariprasad Shenai
ssed with > the original vlan-id [instead of the one of PF has provided]. > Is that intentional? No, this isn't intentional. I thought VST and VGT cannot co-exist. What should be the behavior? Thanks, Hariprasad Shenai

Re: [PATCH net-next 2/2] cxgb4: Add support for ndo_get_vf_config

2016-08-24 Thread Hariprasad Shenai
On Wednesday, August 08/24/16, 2016 at 07:15:49 +, Yuval Mintz wrote: > > +static void fill_vf_station_mac_addr(struct adapter *adap) > > +{ > > + unsigned int i; > > + u8 hw_addr[ETH_ALEN], macaddr[ETH_ALEN]; > > + int err; > > + u8 *na; > > + u16 a, b; > > + > > + err =

[PATCH net-next 2/2] cxgb4: Add support for ndo_get_vf_config

2016-08-24 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 10 +++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 77 ++- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c |2 +- 3 files changed, 86 insertions

[PATCH net-next 0/2] cxgb4: Adds support for VF mgmt ndo's

2016-08-24 Thread Hariprasad Shenai
Hariprasad Shenai (2): cxgb4/cxgb4vf: Add support for ndo_set_vf_vlan cxgb4: Add support for ndo_get_vf_config drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 11 +++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c| 96 +++- drivers/net/ethernet/chelsio/cxgb4

[PATCH net-next 1/2] cxgb4/cxgb4vf: Add support for ndo_set_vf_vlan

2016-08-24 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h |1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c| 21 +++ drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 25 + drivers/net/et

Re: [PATCH] cxgb4: fix invalid checks in alloc_uld_rxqs

2016-08-23 Thread Hariprasad Shenai
On Tuesday, August 08/23/16, 2016 at 10:01:59 +0200, Andrzej Hajda wrote: > On 08/23/2016 09:46 AM, Hariprasad Shenai wrote: > > On Tuesday, August 08/23/16, 2016 at 08:16:19 +0200, Andrzej Hajda wrote: > >> Local variable msi_idx defined as unsigned int is always >= 0, thus

Re: [PATCH] cxgb4: fix invalid checks in alloc_uld_rxqs

2016-08-23 Thread Hariprasad Shenai
On Tuesday, August 08/23/16, 2016 at 08:16:19 +0200, Andrzej Hajda wrote: > Local variable msi_idx defined as unsigned int is always >= 0, thus both > 'if' checks are always true. On the other side presence of USING_MSIX flag > suggests the checks should not be trivially true. > The simplest

[PATCH net-next] cxgb4: Fix issue while re-registering VF mgmt netdev

2016-08-23 Thread Hariprasad Shenai
evice for configuring PCIe VF") Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h |1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 97 +++--- 2 files changed, 67 insertions(+), 31 deletions(-) diff --g

[PATCH net-next] cxgb4/cxgb4vf: Add support for IFLA_VF_VLAN

2016-08-20 Thread Hariprasad Shenai
Adds support for ndo_set_vf_vlan for cxgb4 driver Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/c

[PATCH net] cxgb4: Fixes resource allocation for ULD's in kdump kernel

2016-08-17 Thread Hariprasad Shenai
At present the code to check in kdump kernel was not disabling allocation of resources when CONFIG_CHELSIO_T4_DCB is defined, move the code outside #defines so that it gets disabled irrespective of #define, when in kdump kernel. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.

[PATCHv3 net-next 2/4] cxgb4: Register changes and fw defines for crypto

2016-08-17 Thread Hariprasad Shenai
Signed-off-by: Atul Gupta <atul.gu...@chelsio.com> Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 437 + drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h | 124 +++ 2 files changed, 561 inse

[PATCHv3 net-next 3/4] chcr: Support for Chelsio's Crypto Hardware

2016-08-17 Thread Hariprasad Shenai
com> Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/crypto/chelsio/chcr_algo.c | 1525 ++ drivers/crypto/chelsio/chcr_algo.h | 471 +++ drivers/crypto/chelsio/chcr_core.c | 240 ++ drivers/crypto/chelsio/chcr_cor

[PATCHv3 net-next 4/4] crypto: Added Chelsio Menu to the Kconfig file

2016-08-17 Thread Hariprasad Shenai
Adds the config entry for the Chelsio Crypto Driver, Makefile changes for the same. Signed-off-by: Atul Gupta <atul.gu...@chelsio.com> Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/crypto/Kconfig |2 ++ drivers/crypto/Makefile |1 + dr

[PATCHv3 net-next 0/4] crypto/chcr: Add support for Chelsio Crypto Driver

2016-08-17 Thread Hariprasad Shenai
t for certain architectures - Dependency fix in Kconfig. - If the request has the MAY_BACKLOG bit set and hardware queue is full the request is queued up else -EBUSY is returned to throttle the user. The queue when executed and processed returns -EINPROGRESS in completion. Haripra

[PATCHv3 net-next 1/4] cxgb4: Add support for dynamic allocation of resources for ULD

2016-08-17 Thread Hariprasad Shenai
Gupta <atul.gu...@chelsio.com> Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/Makefile |2 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 59 +++- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 153 +-- drivers/

Re: [Patch-V2 2/3] chcr: Support for Chelsio's Crypto Hardware

2016-08-17 Thread Hariprasad Shenai
On Tue, Jul 19, 2016 at 09:15:22PM -0700, David Miller wrote: > From: Yeshaswi M R Gowda > Date: Mon, 18 Jul 2016 22:42:14 -0700 > > > +config CRYPTO_DEV_CHELSIO > > + tristate "Chelsio Crypto Co-processor Driver" > > + depends on PCI && NETDEVICES && ETHERNET > > +

[PATCHv5 net-next 1/2] cxgb4: Add control net_device for configuring PCIe VF

2016-08-11 Thread Hariprasad Shenai
, since it doesn't need to transmit/receive. Its purely used for VF management purpose only. The device will be registered only when VF for a particular PF is configured using PCI sysfs interface and unregistered while pci_disable_sriov() for the PF is called. Signed-off-by: Hariprasad Shenai <hari

[PATCHv5 net-next 0/2] Add support for IFLA_VF_MAC

2016-08-11 Thread Hariprasad Shenai
atch 2/2, based on review comment by Yuval Mintz <yuval.mi...@qlogic.com> Hariprasad Shenai (2): cxgb4: Add control net_device for configuring PCIe VF cxgb4/cxgb4vf: Add set VF mac address support drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 3 + drivers/net/ethernet/chels

[PATCHv5 net-next 2/2] cxgb4/cxgb4vf: Add set VF mac address support

2016-08-11 Thread Hariprasad Shenai
Add ndo_set_vf_mac support which allows to set the MAC address for cxgb4vf interfaces from the host Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 3 ++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c| 24 - d

[PATCHv4 net-next 1/2] cxgb4: Add control net_device for configuring PCIe VF

2016-08-11 Thread Hariprasad Shenai
, since it doesn't need to transmit/receive. Its purely used for VF management purpose only. The device will be registered only when VF for a particular PF is configured using PCI sysfs interface and unregistered while pci_disable_sriov() for the PF is called. Signed-off-by: Hariprasad Shenai <hari

[PATCHv4 net-next 0/2] Add support for IFLA_VF_MAC

2016-08-11 Thread Hariprasad Shenai
ameter pf added to IFLA_VF API's and created a net_device corresponding to each PF for controling their VF. Based on review comment by Yuval Mintz <yuval.mi...@qlogic.com> V2: Fixed check for MAC address in Patch 2/2, based on review comment by Yuval Mintz <yuval.mi...@qlogi

[PATCHv4 net-next 2/2] cxgb4/cxgb4vf: Add set VF mac address support

2016-08-11 Thread Hariprasad Shenai
Add ndo_set_vf_mac support which allows to set the MAC address for cxgb4vf interfaces from the host Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h |3 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

[PATCHv3 net-next 2/2] cxgb4/cxgb4vf: Add set VF mac address support

2016-08-10 Thread Hariprasad Shenai
Add ndo_set_vf_mac support which allows to set the MAC address for cxgb4vf interfaces from the host Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 3 ++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c| 24 - d

[PATCHv3 net-next 1/2] cxgb4: Add control net_device for configuring PCIe VF

2016-08-10 Thread Hariprasad Shenai
gmtpf", for example for PF1 of adapter 0 will be named 'mgmtpf01'. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 115 1 file changed, 97 insertions(+), 18 deletions(-) diff --git a/drivers/net/ethern

[PATCHv3 net-next 0/2] Add support for IFLA_VF_MAC

2016-08-10 Thread Hariprasad Shenai
. Based on review comment by Yuval Mintz <yuval.mi...@qlogic.com> V2: Fixed check for MAC address in Patch 2/2, based on review comments by Yuval Mintz <yuval.mi...@qlogic.com> Hariprasad Shenai (2): cxgb4: Add control net_device for configuring PCIe VF cxgb4/cxgb4vf: Ad

[PATCH net] cxgb4/cxgb4vf: Fixes regression in perf when tx vlan offload is disabled

2016-07-28 Thread Hariprasad Shenai
51 ("cxgb4: Discard the packet if the length is greater than mtu") Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/sge.c | 2 +- drivers/net/ethernet/chelsio/cxgb4vf/sge.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)

Re: [PATCHv2 net-next 1/3] net: Add provision to specify pf number while assigning VF mac

2016-07-19 Thread Hariprasad Shenai
could control their > VFs. Hi Dave and all, Based on above comment, since the control node should always be net_device, we will go with the below implementation. We will have dummy net devices with 00:00:00:00:00:00 mac address. The device won't be associated with any port, since it doesn't need to transmit/receive. On a two port adapter, we need to create 4 dummy net devices, corresponding to PF0 ... PF3. Basically the dummy net device will have callback's only for "ndo_set_vf_*" API's. Thanks, Hariprasad Shenai

Re: [PATCHv2 net-next 1/3] net: Add provision to specify pf number while assigning VF mac

2016-06-30 Thread Hariprasad Shenai
On Thu, Jun 30, 2016 at 19:04:16 +, Yuval Mintz wrote: > > Chelsio T4/T5 cards have SR-IOV Capabilities on Physical Functions > > 0..3 and the administrative Driver(cxgb4) attaches to Physical Function 4. > > Each of the Physical Functions 0..3 can support up to 16 Virtual > > Functions. With

Re: [PATCH net-next 2/3] cxgb4/cxgb4vf: Add set VF mac address support

2016-06-30 Thread Hariprasad Shenai
On Thu, Jun 30, 2016 at 13:13:15 +, Yuval Mintz wrote: > > + /* verify MAC addr is valid */ > > + if (!is_zero_ether_addr(mac) && !is_valid_ether_addr(mac) && > > + is_multicast_ether_addr(mac)) { > > This is really odd as verification goes; Currently this is a very elaborate > way

[PATCHv2 net-next 2/3] cxgb4/cxgb4vf: Add set VF mac address support

2016-06-30 Thread Hariprasad Shenai
Add ndo_set_vf_mac support which allows to set the MAC address for cxgb4vf interfaces from the host. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h |3 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

[PATCHv2 net-next 1/3] net: Add provision to specify pf number while assigning VF mac

2016-06-30 Thread Hariprasad Shenai
and the SR-IOV Virtual Functions of those Physical Functions. But it is not true in our case and won't work for us. Added a new argument to specify the PF number associated with the VF, to fix this. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/broadcom

[PATCHv2 net-next iproute2 3/3] ip: Add option to specify PF number associated with the VF

2016-06-30 Thread Hariprasad Shenai
Functions 0..3 and the PF Driver registers ports on PF4. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- include/linux/if_link.h |1 + ip/ipaddress.c |3 +++ ip/iplink.c | 21 ++--- man/man8/ip-link.8.in | 15 +-- 4

[PATCHv2 net-next 0/3] Add option to specify PF parameter for IFLA_VF_MAC

2016-06-30 Thread Hariprasad Shenai
.mi...@qlogic.com> Hariprasad Shenai (2): net: Add provision to specify pf number while assigning VF mac cxgb4/cxgb4vf: Add set VF mac address support drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h|2 +- drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c |2 +- drivers/net/ethernet/br

[PATCH net-next 0/3] Add option to specify PF parameter for IFLA_VF_MAC

2016-06-30 Thread Hariprasad Shenai
, and patch 3/3 has been created against iproute2 tree. We have included all the maintainers of respective drivers. Kindly review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (2): net: Add provision to specify pf number while assigning VF mac cxgb4/cxgb4vf

[PATCH net-next 1/3] net: Add provision to specify pf number while assigning VF mac

2016-06-30 Thread Hariprasad Shenai
and the SR-IOV Virtual Functions of those Physical Functions. But it is not true in our case and won't work for us. Added a new argument to specify the PF number associated with the VF, to fix this. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/broadcom

[PATCH net-next 2/3] cxgb4/cxgb4vf: Add set VF mac address support

2016-06-30 Thread Hariprasad Shenai
Add ndo_set_vf_mac support which allows to set the MAC address for cxgb4vf interfaces from the host. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h |3 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

[PATCH net-next iproute2 3/3] ip: Add option to specify PF number associated with the VF

2016-06-30 Thread Hariprasad Shenai
Functions 0..3 and the PF Driver registers ports on PF4. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- include/linux/if_link.h |1 + ip/ipaddress.c |3 +++ ip/iplink.c | 21 ++--- man/man8/ip-link.8.in | 15 +-- 4

[PATCH net-next] cxgb4: Introduce API for sending work requests on ctrl queue via copy

2016-06-28 Thread Hariprasad Shenai
If the ctrl queue is full, just follows current path by allocating an skb. If that fails then caller will just have to handle that case as before. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net/ethernet/c

[PATCH net-next] cxgb4vf: Synchronize access to mailbox

2016-06-21 Thread Hariprasad Shenai
to complete. Usually command takes less than a milli-second to complete. Also timeout from the loop, if the command under execution takes long time to run. In reality, the number of mailbox access collisions is going to be very rare since no one runs such abusive script. Signed-off-by: Hariprasad

[PATCH net-next 2/3] cxgb4: Enable SR-IOV configuration via PCI sysfs interface

2016-06-14 Thread Hariprasad Shenai
Implement callback in the driver for the new PCI bus driver interface that allows the user to enable/disable SR-IOV virtual functions in a device via the sysfs interface. Deprecate module parameter used to configure SRIOV Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drive

[PATCH net-next 1/3] cxgb4: Force cxgb4 driver as MASTER in kdump kernel

2016-06-14 Thread Hariprasad Shenai
When is_kdump_kernel() is true, Forcing cxgb4 driver as Master so we can reinitialize the Firmware/Chip. Also reduce memory usage by disabling offload. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 9 - 1 file chan

[PATCH net-next 0/3] Add SRIOV configuration via sysfs and few fixes

2016-06-14 Thread Hariprasad Shenai
and includes patches on cxgb4 and cxgb4vf driver. We have included all the maintainers of respective drivers. Kindly review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (3): cxgb4: Force cxgb4 driver as MASTER in kdump kernel cxgb4: Enable SR-IOV

[PATCH net-next 3/3] cxgb4/cxgb4vf: Synchronize all MAC addresses

2016-06-14 Thread Hariprasad Shenai
Even if interface is in Promiscuous mode/Allmulti mode synchronize MAC addresses. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 7 ++- drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 8 ++-- 2 files chan

[PATCH net-next] net: Reduce queue allocation to one in kdump kernel

2016-06-08 Thread Hariprasad Shenai
When in kdump kernel, reduce memory usage by only using a single Queue Set for multiqueue devices. So make netif_get_num_default_rss_queues() return one, when in kdump kernel. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- net/core/dev.c | 4 +++- 1 file changed, 3 inse

[PATCH net] cxgb4: Add device id of T540-BT adapter

2016-06-08 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h b/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h index a2cdfc

[PATCH net-next] cxgb4: Reduce resource allocation in kdump kernel

2016-06-03 Thread Hariprasad Shenai
When is_kdump_kernel() is true, reduce our memory footprint by only using a single "Queue Set" and Forcing Master so we can reinitialize the Firmware/Chip. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 12

[PATCH net-next] cxgb4: Reset dcb state machine and tx queue prio only if dcb is enabled

2016-05-04 Thread Hariprasad Shenai
the queue priority and state machine whenever there is a link down, this patch fixes it by adding a check to reset only if cxgb4_dcb_enabled() returns true. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.

[PATCH net-next 0/2] cxgb4: mbox enhancements for cxgb4

2016-05-03 Thread Hariprasad Shenai
and includes patches on cxgb4 driver. We have included all the maintainers of respective drivers. Kindly review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (2): cxgb4: Don't sleep when mbox cmd is issued from interrupt context cxgb4: Check for firmware errors

[PATCH net-next 2/2] cxgb4: Check for firmware errors in the mailbox command loop

2016-05-03 Thread Hariprasad Shenai
Check for firmware errors in the mailbox command loop and report them differently rather than simply timing out when the firmware goes belly up. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 8 ++-- 1 file changed, 6 inse

[PATCH net-next 1/2] cxgb4: Don't sleep when mbox cmd is issued from interrupt context

2016-05-03 Thread Hariprasad Shenai
. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c index 49bcbf16c9ca..59f5e0b40286

[PATCH net-next 0/2] cxgb4/cxgb4vf: add support for mbox cmd logging

2016-04-28 Thread Hariprasad Shenai
. Kindly review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (2): cxgb4: Add support to enable logging of firmware mailbox commands cxgb4vf: Add support to enable logging of firmware mailbox commands for VF drivers/net/ethernet/chelsio/cxgb4/cxgb4.h

[PATCH net-next 2/2] cxgb4vf: Add support to enable logging of firmware mailbox commands for VF

2016-04-28 Thread Hariprasad Shenai
Add new /sys/kernel/debug/ support to dump firmware mailbox commands and replies for debugging purpose. Based on original work by Casey Leedom <lee...@chelsio.com> Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4vf/adapter.h |

[PATCH net-next 1/2] cxgb4: Add support to enable logging of firmware mailbox commands

2016-04-28 Thread Hariprasad Shenai
Add new /sys/kernel/debug/ support to dump a firmware mailbox command issued and replies for debugging purpose. Based on original work by Casey Leedom <lee...@chelsio.com> Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h

[PATCH net-next 6/8] cxgb4: DCB message handler needs to use correct portid to netdev mapping

2016-04-26 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c | 2 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c b/d

[PATCH net-next 2/8] cxgb4: Add llseek operation for flash debugfs entry

2016-04-26 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c index 0bb41e

[PATCH net-next 7/8] cxgb4: Don't assume FW_PORT_CMD reply is always port info msg

2016-04-26 Thread Hariprasad Shenai
Information messages and throws a warning if we don't understand what we've been given. Also refactor t4_handle_fw_rpl() so that core functionality performed by t4_handle_get_port_info() for a specified port. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/et

[PATCH net-next 3/8] cxgb4: Avoids race and deadlock while freeing tx descriptor

2016-04-26 Thread Hariprasad Shenai
the deadlock between xmit and driver unload. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/sge.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/sge.c b/drivers/net/ethernet/chelsio/cxgb4/sge.c index 6278e5

[PATCH net-next 4/8] cxgb4: Properly decode port module type

2016-04-26 Thread Hariprasad Shenai
Decode and log port module error, unknown modules and unsupported modules. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/ethernet/chelsio

[PATCH net-next 1/8] cxgb4: add new routine to get adapter info

2016-04-26 Thread Hariprasad Shenai
Add new routine to print out general adapter information (various version numbers, adapter name, part number, serial number, etc.) and remove redundant information dumped in the Port Information. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio

[PATCH net-next 8/8] cxgb4: Decode link down reason code obtained from firmware

2016-04-26 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h| 1 + drivers/net/ethernet/chelsio/cxgb4/t4_hw.c| 34 +++ drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h | 5 3 files changed, 40 insertions(+)

[PATCH net-next 5/8] cxgb4: Refactor t4_port_init function

2016-04-26 Thread Hariprasad Shenai
Refactor t4_port_init() so that the core functionality is done by t4_init_portinfo() for a particular port. Also rename variables to sensible ones. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 2 + drivers/net/ethernet/chelsio

[PATCH net-next 0/8] cxgb4: minor fixes, decode msgs and code refactor for few functions

2016-04-26 Thread Hariprasad Shenai
Hariprasad Shenai (8): cxgb4: add new routine to get adapter info cxgb4: Add llseek operation for flash debugfs entry cxgb4: Avoids race and deadlock while freeing tx descriptor cxgb4: Properly decode port module type cxgb4: Refactor t4_port_init function cxgb4: DCB message handler

[PATCH pci] pci: Add helper function to set VPD size

2016-04-14 Thread Hariprasad Shenai
quot;PCI: Determine actual VPD size on first access") Signed-off-by: Casey Leedom <lee...@chelsio.com> Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 10 +++ drivers/pci/access.c |

[REGRESSION, bisect] pci: cxgb4 probe fails after commit 104daa71b3961434 ("PCI: Determine actual VPD size on first access")

2016-04-11 Thread Hariprasad Shenai
Hi All, The following patch introduced a regression, causing cxgb4 driver to fail in PCIe probe. commit 104daa71b39614343929e1982170d5fcb0569bb5 Author: Hannes Reinecke Author: Hannes Reinecke Date: Mon Feb 15 09:42:01 2016 +0100 PCI: Determine actual VPD

[PATCH net] cxgb4: Stop Rx Queues before freeing it up

2016-04-10 Thread Hariprasad Shenai
s Queues were no longer being serviced. Based on original work by Casey Leedom <lee...@chelsio.com> Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 3 +++ drivers/net/ethernet/chelsio/cxgb4/sge.c | 20 +++--- dri

[PATCHv2 net-next] cxgb4/cxgb4vf: Deprecate module parameter dflt_msg_enable

2016-04-04 Thread Hariprasad Shenai
Message level can be set through ethtool, so deprecate module parameter which is used to set the same. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- V2: Fix grammar in module param description, based on review comment by Sergei Shtylyov <sergei.shtyl...@cogentemb

[PATCH net-next] cxgb4/cxgb4vf: Deprecate module parameter dflt_msg_enable

2016-04-03 Thread Hariprasad Shenai
Message level can be set through ethtool, so deprecate module parameter which is used to set the same. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 3 ++- drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 3 ++- 2

[PATCH net] cxgb4: Add pci device id for chelsio t520-cr adapter

2016-04-03 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h b/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h index 06bc2d

Re: [target-pending 00/12] cxgb4 patch series for cxgbit.ko

2016-03-15 Thread Hariprasad Shenai
, I'm still OK to merge via target-pending to enable post v4.6 > iscsi-target developments, as long as DaveM doesn't have an objection or > if he'd prefer to pick them up. > > As-is, they still need Acked-by's from the cxgb4 driver maintainer. > > Hariprasad, please give your review + ack. > The entire series looks good. Acked-by: Hariprasad Shenai <haripra...@chelsio.com>

[PATCH net-next 4/4] cxgb4vf: Set number of queues in pci probe only

2016-03-07 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- .../net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c|8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c b/drivers/net/ethernet/chelsio/c

[PATCH net-next 0/4] cxgb4vf: Interrupt and queue configuration changes

2016-03-07 Thread Hariprasad Shenai
. Thanks Hariprasad Shenai (4): cxgb4vf: Enable interrupts before we register our network devices cxgb4vf: Configure queue based on resource and interrupt type cxgb4vf: Add a couple more checks for invalid provisioning configurations cxgb4vf : Set number of queues in pci probe only

[PATCH net-next 2/4] cxgb4vf: Configure queue based on resource and interrupt type

2016-03-07 Thread Hariprasad Shenai
from MSI-X to MSI Interrupt Mode. This change fixes that problem. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- .../net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c| 165 +++- 1 files changed, 94 insertions(+), 71 deletions(-) diff --git a/drivers/net/et

[PATCH net-next 3/4] cxgb4vf: Add a couple more checks for invalid provisioning configurations

2016-03-07 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- .../net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c|5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_

[PATCH net-next 1/4] cxgb4vf: Enable interrupts before we register our network devices

2016-03-07 Thread Hariprasad Shenai
and never realizing that the links has actually come up. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- .../net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c| 51 ++-- 1 files changed, 26 insertions(+), 25 deletions(-) diff --git a/drivers/net/ethernet/chelsio/c

[PATCH net-next 3/5] cxgb4vf: Make sge init code more readable

2016-03-01 Thread Hariprasad Shenai
Adds a new function t4vf_fl_pkt_align() and use the same in SGE initialization code to find out freelist packet alignment Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4vf/sge.c | 40 ++-- drivers/net/ethernet/chelsio/c

[PATCH net-next 5/5] cxgb4vf: Remove dead functions collect_netdev_[um]c_list_addrs

2016-03-01 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- .../net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c| 46 -- 1 file changed, 46 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_

[PATCH net-next 2/5] cxgb4/cxgb4vf: For T6 adapter, set FBMIN to 64 bytes

2016-03-01 Thread Hariprasad Shenai
Fetch Requests rather than a single coallesced 128-byte Fetch Request. T6 fixes this. So, for T4/T5 we set the FBMIN value to 128 Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/sge.c | 12 +++- drivers/net/ethernet/chelsio

[PATCH net-next 4/5] cxgb4vf: Remove redundant adapter ready check during probe

2016-03-01 Thread Hariprasad Shenai
Function t4vf_wait_dev_ready() is already called in t4vf_prep_adapter(), no need to call it again in adap_init0(). Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 10 -- 1 file changed, 10 deletions(-) diff

[PATCH net-next 1/5] cxgb4/cxgb4vf: Use fl capacity to check if fl needs to be replenished

2016-03-01 Thread Hariprasad Shenai
Use freelist capacity instead of freelist size while checking, if freelist needs to be refilled Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/sge.c | 2 +- drivers/net/ethernet/chelsio/cxgb4vf/sge.c | 2 +- 2 files changed, 2 insertions

[PATCH net-next 0/5] cxgb4/cxgb4vf: Cleanup and minor fixes

2016-03-01 Thread Hariprasad Shenai
have included all the maintainers of respective drivers. Kindly review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (5): cxgb4/cxgb4vf: Use fl capacity to check if fl needs to be replenished cxgb4/cxgb4vf: For T6 adapter, set FBMIN to 64 bytes cxgb4vf

[PATCH net-next 0/2] cxgb4: Use __dev_[um]c_[un]sync for MAC address syncing

2016-02-15 Thread Hariprasad Shenai
of respective drivers. Kindly review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (2): cxgb4: Use __dev_uc_sync/__dev_mc_sync to sync MAC address cxgb4vf: Use __dev_uc_sync/__dev_mc_sync to sync MAC address drivers/net/ethernet/chelsio/cxgb4/cxgb4.h

[PATCH net-next 2/2] cxgb4vf: Use __dev_uc_sync/__dev_mc_sync to sync MAC address

2016-02-15 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4vf/adapter.h | 8 ++ .../net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c| 116 + drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h | 20 drivers/net/ethernet/c

[PATCH net-next 1/2] cxgb4: Use __dev_uc_sync/__dev_mc_sync to sync MAC address

2016-02-15 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 27 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 138 ++-- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 92 +--- 3 files change

[PATCH] cxgb4: Add pci device id for chelsio t540 lom adapter

2016-02-09 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h b/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h index a8dda6

[PATCH for-next 3/3] cxgb4/iw_cxgb4: TOS support

2016-02-04 Thread Hariprasad Shenai
-off-by: Steve Wise <sw...@opengridcomputing.com> Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/infiniband/hw/cxgb4/cm.c | 51 ++- drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 2 ++ drivers/net/ethernet/chelsio/cxgb4/t4f

[PATCH for-next 0/3] Add TOS support and some cleanup

2016-02-04 Thread Hariprasad Shenai
know in case of any review comments. Thanks Hariprasad Shenai (3): iw_cxgb4: make queue allocation code more readable iw_cxgb4: remove false error log entry cxgb4/iw_cxgb4: TOS support drivers/infiniband/hw/cxgb4/cm.c | 54 +++--- drivers/infiniband/hw/cxgb4/qp.c

  1   2   3   >