[PATCH net] MAINTAINERS: update cxgb4 and cxgb3 maintainer

2018-12-20 Thread Ganesh Goudar
Arjun Vynipadath will be taking over as maintainer from now. Signed-off-by: Ganesh Goudar --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index f6d08b3..bcd633c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4046,7 +4046,7 @@ S

[PATCH net] net/tls: allocate tls context using GFP_ATOMIC

2018-12-19 Thread Ganesh Goudar
] entry_SYSCALL_64_after_hwframe+0x49/0xbe Fixes: df9d4a178022 ("net/tls: sleeping function from invalid context") Signed-off-by: Ganesh Goudar --- net/tls/tls_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/tls/tls_main.c b/net/tls/tls_main.c index 1428bd7..28887cf 100644 ---

[PATCH v2 net-next] cxgb4: number of VFs supported is not always 16

2018-11-27 Thread Ganesh Goudar
Total number of VFs supported by PF is used to determine the last byte of VF's mac address. Number of VFs supported is not always 16, use the variable nvfs to get the number of VFs supported rather than hard coding it to 16. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- V2:

[PATCH net-next] cxgb4: number of VFs supported is not always 16

2018-11-26 Thread Ganesh Goudar
Total number of VFs supported by PF is used determine the last byte of VF's mac address. Number of VFs supported is not always 16, use the variable nvfs to get the number of VFs supported rather than hard coding it to 16. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- driver

[PATCH net V2] cxgb4: fix thermal zone build error

2018-11-15 Thread Ganesh Goudar
(cxgb4: fix thermal configuration dependencies) Reported-by: Randy Dunlap Signed-off-by: Ganesh Goudar --- V2: Fixing spelling mistake and avoid preprocessor conditionals. --- drivers/net/ethernet/chelsio/Kconfig| 1 - drivers/net/ethernet/chelsio/cxgb4/Makefile | 4 +---

[PATCH net] cxgb4: fix thermal zone build error

2018-11-15 Thread Ganesh Goudar
(cxgb4: fix thermal configuration dependencies) Reported-by: Randy Dunlap Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/Kconfig| 1 - drivers/net/ethernet/chelsio/cxgb4/Makefile | 4 +--- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 12 ++--

[PATCH net-next] cxgb4: Add new T6 PCI device ids 0x608a

2018-11-08 Thread Ganesh Goudar
Signed-off-by: Ganesh Goudar --- 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 60df66f..bf7325f 100644 --- a/drivers/net

[PATCH net-next] cxgb4: Add thermal zone support

2018-10-09 Thread Ganesh Goudar
Add thermal zone support to monitor ASIC's temperature. Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/Makefile| 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 18 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c| 8 ++ drivers/net/eth

[PATCH net-next] cxgb4: use FW_PORT_ACTION_L1_CFG32 for 32 bit capability

2018-10-05 Thread Ganesh Goudar
when 32 bit port capability is in use, use FW_PORT_ACTION_L1_CFG32 rather than FW_PORT_ACTION_L1_CFG. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH net-next] cxgb4: remove the unneeded locks

2018-10-03 Thread Ganesh Goudar
cxgb_set_tx_maxrate will be called holding rtnl lock, hence remove all unneeded locks. Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/sched.c | 68 +++--- drivers/net/ethernet/chelsio/cxgb4/sched.h | 2 - 2 files changed, 15 insertions(+), 55

[PATCH net-next] cxgb4: update supported DCB version

2018-09-14 Thread Ganesh Goudar
- In CXGB4_DCB_STATE_FW_INCOMPLETE state check if the dcb version is changed and update the dcb supported version. - Also, fill the priority code point value for priority based flow control. Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c | 27

[PATCH net-next] cxgb4: add per rx-queue counter for packet errors

2018-09-14 Thread Ganesh Goudar
print per rx-queue packet errors in sge_qinfo Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 1 + drivers/net/ethernet/chelsio/cxgb4/sge.c | 4 3 files

[PATCH net-next] cxgb4: Fix endianness issue in t4_fwcache()

2018-09-14 Thread Ganesh Goudar
Do not put host-endian 0 or 1 into big endian feild. Reported-by: Al Viro Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio

[PATCH net-next] cxgb4: impose mandatory VLAN usage when non-zero TAG ID

2018-09-07 Thread Ganesh Goudar
From: Casey Leedom When a non-zero VLAN Tag ID is passed to t4_set_vlan_acl() then impose mandatory VLAN Usage with that VLAN ID. I.e any other VLAN ID should result in packets getting dropped. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4

[PATCH net-next] cxgb4: when max_tx_rate is 0 disable tx rate limiting

2018-09-03 Thread Ganesh Goudar
in ndo_set_vf_rate() when max_tx_rate is 0 disable tx rate limiting for that vf. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/drivers

Re: [endianness bug] cxgb4: mk_act_open_req() buggers ->{local,peer}_ip on big-endian hosts

2018-08-22 Thread Ganesh Goudar
Hi Al, All the issues you have mentioned make sense to me, I will fix them and try to have them tested on big endian machine. I got all the patches from net-endian.chelsio they all look good, But I am yet to go through (struct cxgb4_next_header .match_val/.match_mask/mask should be net-endian). r

Re: [endianness bug] cxgb4: mk_act_open_req() buggers ->{local,peer}_ip on big-endian hosts

2018-08-17 Thread Ganesh Goudar
Thanks, Al. The patch looks good to me but it does not seem to be showing up in patchwork, should I resend the patch on your behalf to net tree ? Ganesh

[PATCH net] cxgb4: Add new T5 PCI device ids 0x50af and 0x50b0

2018-08-14 Thread Ganesh Goudar
Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h | 2 ++ 1 file changed, 2 insertions(+) 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 e3adf43..60df66f 100644 --- a/drivers/net

[PATCH net-next] cxgb4: add support to display DCB info

2018-08-10 Thread Ganesh Goudar
display Data Center bridging information in debug fs. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c | 2 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 193

[PATCH net-next] cxgb4: update 1.20.8.0 as the latest firmware supported

2018-08-09 Thread Ganesh Goudar
Change t4fw_version.h to update latest firmware version number to 1.20.8.0. Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4fw_version.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4fw_version.h b

[PATCH net-next] net: Fix coding style in skb_push()

2018-08-02 Thread Ganesh Goudar
Signed-off-by: Ganesh Goudar --- net/core/skbuff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 266b954..51b0a912 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -1715,7 +1715,7 @@ void *skb_push(struct sk_buff *skb

[PATCH net-next] cxgb4: fix endian to test F_FW_PORT_CMD_DCBXDIS32

2018-08-01 Thread Ganesh Goudar
For FW_PORT_ACTION_GET_PORT_INFO32 messages, the u.info32.lstatus32_to_cbllen32 is 32-bit Big Endian. We need to translate that to CPU Endian in order to test F_FW_PORT_CMD_DCBXDIS32. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

[PATCH net-next] cxgb4: display number of rx and tx pages free

2018-07-18 Thread Ganesh Goudar
display free rx and tx page count in the meminfo of an adapter. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 22 +++--- drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | 14 ++ 2 files changed

[PATCH net-next] cxgb4: do not return DUPLEX_UNKNOWN when link is down

2018-07-13 Thread Ganesh Goudar
ded on the command line. Which results in us diving into set_link_ksettings() with DUPLEX_UNKNOWN which is not DUPLEX_FULL, so set_link_ksettings() throws an -EINVAL error. do not return DUPLEX_UNKNOWN to fix the issue. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethern

[PATCH net-next] cxgb4: specify IQTYPE in fw_iq_cmd

2018-07-09 Thread Ganesh Goudar
From: Arjun Vynipadath congestion argument passed to t4_sge_alloc_rxq() is used to differentiate between nic/ofld queues. Signed-off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/sge.c | 4 +++- drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h

[PATH net] cxgb4: assume flash part size to be 4MB, if it can't be determined

2018-07-07 Thread Ganesh Goudar
ts which are at least 4MB in size. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 35 +++--- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drive

[PATCH net-next] cxgb4: Fix the condition to check if the card is T5

2018-07-04 Thread Ganesh Goudar
Use 'chip_ver' rather than 'chip' to check if the card is T5. Fixes: e8d452923ae6 ("cxgb4: clean up init_one") Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driv

[PATCH net-next] cxgb4: Add support to read actual provisioned resources

2018-07-04 Thread Ganesh Goudar
Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 17 +++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 39 ++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c| 134 +++-- drivers/net/ethernet/chelsio/cxgb4/t4

[PATCH net-next V4 2/2] cxgb4: Support ethtool private flags

2018-06-26 Thread Ganesh Goudar
From: Arjun Vynipadath This is used to change TX workrequests, which helps in host->vf communication. Signed-off-by: Arjun Vynipadath Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- V4: No changes V3: No changes V2: No changes --- drivers/net/ethernet/chelsio/cx

[PATCH net-next V4 1/2] cxgb4: Add support for FW_ETH_TX_PKT_VM_WR

2018-06-26 Thread Ganesh Goudar
what WR to use for TX path. Support for setting this flags by user is added in next commit. Based on the original work by : Casey Leedom Signed-off-by: Casey Leedom Signed-off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar --- V4: Fixed build errors. V3: Made eth_flags type consistent acros

[PATCH net-next] cxgb4: Add new T5 PCI device id 0x50ae

2018-06-26 Thread Ganesh Goudar
Signed-off-by: Ganesh Goudar --- 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 c7f8d04..e3adf43 100644 --- a/drivers/net

[PATCH net-next] cxgb4: Add flag tc_flower_initialized

2018-06-26 Thread Ganesh Goudar
From: Casey Leedom Add flag tc_flower_initialized to indicate the completion if tc flower initialization. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c | 8

[PATCH net-next V3 2/2] cxgb4: Support ethtool private flags

2018-06-26 Thread Ganesh Goudar
From: Arjun Vynipadath This is used to change TX workrequests, which helps in host->vf communication. Signed-off-by: Arjun Vynipadath Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 42 ++ 1 file chan

[PATCH net-next V3 1/2] cxgb4: Add support for FW_ETH_TX_PKT_VM_WR

2018-06-26 Thread Ganesh Goudar
warning about conflicting definition in cxgb4vf driver Signed-off-by: Casey Leedom Signed-off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 13 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 +- drivers/net/ethernet/chelsio/cxg

[PATCH net] cxgb4: when disabling dcb set txq dcb priority to 0

2018-06-23 Thread Ganesh Goudar
When we are disabling DCB, store "0" in txq->dcb_prio since that's used for future TX Work Request "OVLAN_IDX" values. Setting non zero priority upon disabling DCB would halt the traffic. Reported-by: AMG Zollner Robert CC: David Ahern Signed-off-by: Casey Leedom

Re: [bug] cxgb4: vrf stopped working with cxgb4 card

2018-06-11 Thread Ganesh Goudar
r server SVR1.ens2f4d1 > > > > > > Bisect: > > Found this commit to be the problem after doing a git bisect between > > v4.13..v4.15: > > > > commit ba581f77df23c8ee70b372966e69cf10bc5453d8 > > Author: Ganesh Goudar > > Date:   Sat Sep 23 16

[PATCH net-next] cxgb4: Add FORCE_PAUSE bit to 32 bit port caps

2018-05-30 Thread Ganesh Goudar
Add FORCE_PAUSE bit to force local pause settings instead of using auto negotiated values. Signed-off-by: Santosh Rastapur Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c| 10 +- drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h

[PATCH net-next] cxgb4/cxgb4vf: Notify link changes to OS-dependent code

2018-05-24 Thread Ganesh Goudar
tifying the OS-dependent layer of the potential Link State change. Original Work by : Casey Leedom Signed-off-by: Santosh Rastapur Signed-off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 3 +++ drivers/net/ethernet/chelsio/cxgb4/cxg

[PATCH net-next] cxgb4: clean up init_one

2018-05-24 Thread Ganesh Goudar
clean up init_one and use chip_ver consistently throughout init_one() for chip version. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 47 +-- drivers/net/ethernet/chelsio/cxgb4/t4_chip_type.h | 2 + 2 files

[PATCH net-next v2] cxgb4/cxgb4vf: link management changes for new SFP

2018-05-24 Thread Ganesh Goudar
newer SFPs like SFP28 and QSFP28 Transceiver Modules present several new possibilities which we haven't faced before. Fix the assumptions in the code reflecting the more limited capabilities of previous Transceiver Module systems Original work by Casey Leedom Signed-off-by: Ganesh G

Re: [PATCH v6 0/5] PCI: Improve PCIe link status reporting

2018-05-24 Thread Ganesh Goudar
On Wednesday, May 05/23/18, 2018 at 16:46:51 -0500, Bjorn Helgaas wrote: > [+to Davem] > > On Thu, May 03, 2018 at 03:00:07PM -0500, Bjorn Helgaas wrote: > > This is based on Tal's recent work to unify the approach for reporting PCIe > > link speed/width and whether the device is being limited by

[PATCH net-next 2/2] cxgb4: do L1 config when module is inserted

2018-05-23 Thread Ganesh Goudar
trigger an L1 configure operation when a transceiver module is inserted in order to cause current "sticky" options like Requested Forward Error Correction to be reapplied. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h

[PATCH net-next 1/2] cxgb4: change the port capability bits definition

2018-05-23 Thread Ganesh Goudar
TRAIGHT" in order to get them to line up with the enum's. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 4 ++-- drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h | 8 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c

[PATCH net-next] cxgb4: Add new T6 device ids

2018-05-22 Thread Ganesh Goudar
Add 0x6088 and 0x6089 device ids for new T6 cards. Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h b/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h

[PATCH net-next] cxgb4: do L1 config when module is inserted

2018-05-21 Thread Ganesh Goudar
trigger an L1 configure operation when a transceiver module is inserted in order to cause current "sticky" options like Requested Forward Error Correction to be reapplied. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h

[PATCH net-next] cxgb4/cxgb4vf: link management changes for new SFP

2018-05-21 Thread Ganesh Goudar
newer SFPs like SFP28 and QSFP28 Transceiver Modules present several new possibilities which we haven't faced before. Fix the assumptions in the code reflecting the more limited capabilities of previous Transceiver Module systems Original work by Casey Leedom Signed-off-by: Ganesh G

[PACTH net-next] cxgb4: copy the length of cpl_tx_pkt_core to fw_wr

2018-05-20 Thread Ganesh Goudar
. Add the length of cpl_tx_pkt_core not WR_HDR's. This also fixes the lso cpl errors for udp tunnels Fixes: d0a1299c6bf7 ("cxgb4: add support for vxlan segmentation offload") Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/sge.c | 29 ++

[PATCH net-next V2 2/2] cxgb4: Support ethtool private flags

2018-05-16 Thread Ganesh Goudar
From: Arjun Vynipadath This is used to change TX workrequests, which helps in host->vf communication. Signed-off-by: Arjun Vynipadath Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- V2: no v2 changes in this patch --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c |

[PATCH net-next V2 1/2] cxgb4: Add support for FW_ETH_TX_PKT_VM_WR

2018-05-16 Thread Ganesh Goudar
what WR to use for TX path. Support for setting this flags by user is added in next commit. Based on the original work by : Casey Leedom Signed-off-by: Casey Leedom Signed-off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar --- V2: rename t4_eth_xmit() and t4vf_eth_xmit() to fix bui

[PATCH net-next] cxgb4: add tc flower match support for tunnel VNI

2018-05-14 Thread Ganesh Goudar
-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 9 +++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c | 91 -- .../net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c | 18 + drivers/net/ethernet/chelsio/cxgb4/l2t.c | 2 +- drivers

[PATCH net] cxgb4: Correct ntuple mask validation for hash filters

2018-05-14 Thread Ganesh Goudar
cxgb4: add support to create hash-filters via tc-flower offload") Signed-off-by: Kumar Sanghvi Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c | 88 --- 1 file changed, 30 insertions(+), 58 deletions(-) diff --git a/drivers/net/ethern

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

2018-05-14 Thread Ganesh Goudar
what WR to use for TX path. Support for setting this flags by user is added in next commit. Based on the original work by : Casey Leedom Signed-off-by: Casey Leedom Signed-off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 13 + dri

[PATCH net-next 2/2] cxgb4: Support ethtool private flags

2018-05-14 Thread Ganesh Goudar
From: Arjun Vynipadath This is used to change TX workrequests, which helps in host->vf communication. Signed-off-by: Arjun Vynipadath Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 42 ++ 1 file chan

[PATCH net-next] cxgb4: do not fail vf instatiation in slave mode

2018-05-14 Thread Ganesh Goudar
From: Arjun Vynipadath We no longer require a check for cxgb4 to be MASTER when configuring SRIOV, It was required when we had module parameter to instantiate vf. Signed-off-by: Arjun Vynipadath Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4

[PATCH net-next] cxgb4: Add new T5 device id

2018-05-11 Thread Ganesh Goudar
Add 0x50ad device id for new T5 card. Signed-off-by: Ganesh Goudar --- 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 90b5274

[PATCH net-next 3/3] cxgb4: avoid schedule while atomic

2018-05-11 Thread Ganesh Goudar
do not sleep while adding or deleting udp tunnel. Fixes: 846eac3fccec ("cxgb4: implement udp tunnel callbacks") Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethern

[PATCH net-next 2/3] cxgb4: enable inner header checksum calculation

2018-05-11 Thread Ganesh Goudar
set cntrl bits to indicate whether inner header checksum needs to be calculated whenever the packet is an encapsulated packet and enable supported encap features. Fixes: d0a1299c6bf7 ("cxgb4: add support for vxlan segmentation offload") Signed-off-by: Ganesh Goudar --- drivers/ne

[PATCH net-next 1/3] cxgb4: Fix {vxlan/geneve}_port initialization

2018-05-11 Thread Ganesh Goudar
off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 21 + drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h | 2 ++ 2 files changed, 23 insertions(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/eth

[PATCH net-next] cxgb4: fix the wrong conversion of Mbps to Kbps

2018-05-10 Thread Ganesh Goudar
fix the wrong conversion where 1 Mbps was converted to 1024 Kbps. Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet

[PATCH net] cxgb4: copy mbox log size to PF0-3 adap instances

2018-05-09 Thread Ganesh Goudar
copy mbox size to adapter instances of PF0-3 to avoid mbox log overflow. This fixes the possible protection fault. Fixes: baf5086840ab ("cxgb4: restructure VF mgmt code") Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

[PATCH net] cxgb4: zero the HMA memory

2018-05-09 Thread Ganesh Goudar
firmware expects HMA memory to be zeroed, use __GFP_ZERO for HMA memory allocation. Fixes: 8b4e6b3ca2ed ("cxgb4: Add HMA support") Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d

[PATCH net-next] cxgb4: update latest firmware version supported

2018-05-02 Thread Ganesh Goudar
Change t4fw_version.h to update latest firmware version number to 1.19.1.0. Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4fw_version.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4fw_version.h b

[PATCH net-next] cxgb4: add new T5 device id's

2018-05-01 Thread Ganesh Goudar
Add device id's 0x5019, 0x501a and 0x501b for T5 cards. Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h b/drivers/net/ethernet/chelsio/

[PATCH net-next] cxgb4vf: display pause settings

2018-04-17 Thread Ganesh Goudar
Add support to display pause settings Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c b/drivers/net/ethernet/chelsio/cxgb4vf

Re: [PATCH v14 net-next 08/12] crypto : chtls - CPL handler definition

2018-03-30 Thread Ganesh Goudar
On Friday, March 03/30/18, 2018 at 00:38:06 +0530, Atul Gupta wrote: > > > On 3/29/2018 9:56 PM, Sabrina Dubroca wrote: > > 2018-03-29, 21:27:50 +0530, Atul Gupta wrote: > > ... > >> +static void chtls_pass_accept_request(struct sock *sk, > >> +struct sk_buff *skb)

[PATCH net-next] cxgb4: support new ISSI flash parts

2018-03-23 Thread Ganesh Goudar
Add support for new 32MB and 64MB ISSI (Integrated Silicon Solution, Inc.) FLASH parts. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/net/ethernet/chelsio

[PATCH net-next] cxgb4: depend on firmware event for link status

2018-03-23 Thread Ganesh Goudar
Depend on the firmware sending us link status changes, rather than assuming that the link goes down upon L1 configuration. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net

[PATCH net-next] cxgb4: copy vlan_id in ndo_get_vf_config

2018-03-23 Thread Ganesh Goudar
From: Arjun Vynipadath Copy vlan_id to get it displayed in vf info. Signed-off-by: Arjun Vynipadath Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudhar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/driver

[PATCH net-next] cxgb4: Setup FW queues before registering netdev

2018-03-23 Thread Ganesh Goudar
register_netdev(). Fixes: 0fbc81b3ad51 ('chcr/cxgb4i/cxgbit/RDMA/cxgb4: Allocate resources dynamically for all cxgb4 ULD's') Signed-off-by: Arjun Vynipadath Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 11 ---

[PATCH net-next] cxgb4: notify fatal error to uld drivers

2018-03-16 Thread Ganesh Goudar
notify uld drivers if the adapter encounters fatal error. Signed-off-by: Ganesh Goudar --- drivers/infiniband/hw/cxgb4/device.c| 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 10 ++ drivers/net/ethernet

[PATCH net-next] cxgb4: Fix queue free path of ULD drivers

2018-03-15 Thread Ganesh Goudar
From: Arjun Vynipadath Setting sge_uld_rxq_info to NULL in free_queues_uld(). We are referencing sge_uld_rxq_info in cxgb_up(). This will fix a panic when interface is brought up after a ULDq creation failure. Fixes: 94cdb8bb993a (cxgb4: Add support for dynamic allocation of resources for

[PATCH net-next] cxgb4/cxgb4vf: check fw caps to set link mode mask

2018-03-10 Thread Ganesh Goudar
check firmware capabilities before setting ethtool link mode mask, also add few missing speeds. Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 24 -- .../net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c| 37 ++ 2 files

[PATCH net-next] cxgb4: do not display 50Gbps as unsupported speed

2018-03-10 Thread Ganesh Goudar
50Gbps is a supported speed, Stop reporting it as unsupported speed. Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4

[PATCH net-next] cxgb4: increase max tx rate limit to 100 Gbps

2018-03-08 Thread Ganesh Goudar
T6 cards can support up to 100 G speeds. So, increase max programmable tx rate limit to 100 Gbps. Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 6 +++--- drivers/net/ethernet/chelsio/cxgb4/sched.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions

[PATCH net] cxgb4: do not set needs_free_netdev for mgmt dev's

2018-03-06 Thread Ganesh Goudar
Do not set 'needs_free_netdev' as we do call free_netdev for mgmt net devices, doing both hits BUG_ON. Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

[PATCH net] cxgb4: copy adap index to PF0-3 adapter instances

2018-03-06 Thread Ganesh Goudar
instantiation of VF's on different adapters fails, copy adapter index and chip type to PF0-3 adapter instances to fix the issue. Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/ch

[PATCH net-next] cxgb4: Add TP Congestion map entry for single-port

2018-03-02 Thread Ganesh Goudar
Add TP Congestion Map entry for single-port T6 cards. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4

[PATCH net-next] cxgb4: remove dead code when allocating filter

2018-03-02 Thread Ganesh Goudar
Error code is already returned earlier if filter exists at specified location. So, remove dead code trying to free existing filter. Reported-by: Dan Carpenter Signed-off-by: Ganesh Goudar Signed-off-by: Rahul Lakkireddy --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c | 6 -- 1 file

[PATCH net-next v2] cxgb4vf: Forcefully link up virtual interfaces

2018-03-01 Thread Ganesh Goudar
e original work by: Casey Leedom Signed-off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar --- V2: Doing force_link_up unconditionally --- drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/net/e

[PATCH net-next] cxgb4vf: Forcefully link up virtual interfaces

2018-02-23 Thread Ganesh Goudar
e original work by: Casey Leedom Signed-off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar --- .../net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c| 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c

[PATCH] PCI/cxgb4: Extend T3 PCI quirk to T4+ devices

2018-02-15 Thread Ganesh Goudar
to a Virtual Machine and everything should work. Fixes: 67e658794ca1 ("cxgb4: Set VPD size so we can read both VPD structures") Cc: # v4.9+ Signed-off-by: Casey Leedom Signed-off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c

[PATCH net] cxgb4: free up resources of pf 0-3

2018-02-15 Thread Ganesh Goudar
free pf 0-3 resources, commit baf5086840ab ("cxgb4: restructure VF mgmt code") erroneously removed the code which frees the pf 0-3 resources, causing the probe of pf 0-3 to fail in case of driver reload. Fixes: baf5086840ab ("cxgb4: restructure VF mgmt code") Signed-o

[PATCH net-next] cxgb4: fix possible deadlock

2018-01-25 Thread Ganesh Goudar
t4_wr_mbox_meat_timeout() can be called from both softirq context and process context, hence protect the mbox with spin_lock_bh() instead of simple spin_lock() Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 20 ++-- 1 file changed, 10 insertions

[PATCH net-next V2] cxgb4/cxgb4vf: add support for ndo_set_vf_vlan

2018-01-24 Thread Ganesh Goudar
implement ndo_set_vf_vlan for mgmt netdevice to configure the PCIe VF. Original work by: Casey Leedom Signed-off-by: Ganesh Goudar --- V2: changing htonl() to cpu_to_be32() to maintain consistency --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 3 ++ drivers/net/ethernet/chelsio

[PATCH net-next] cxgb4/cxgb4vf: add support for ndo_set_vf_vlan

2018-01-23 Thread Ganesh Goudar
implement ndo_set_vf_vlan for mgmt netdevice to configure the PCIe VF. Original work by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 3 ++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c| 26 +- drivers/net/ethernet

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

2018-01-23 Thread Ganesh Goudar
+Hannes Reinecke On Tuesday, January 01/23/18, 2018 at 17:59:09 +0530, Arjun Vynipadath wrote: > Sending on behalf of "Casey Leedom " > > Way back on April 11, 2016 we reported a regression in Linux kernel 4.6-rc2 > brought on by kernel.org commit 104daa71b396. This commit calculates the > size

[PATCH net-next] cxgb4: add geneve offload support for T6

2018-01-22 Thread Ganesh Goudar
Add geneve segmentation offload support of T6 cards. Original work by: Santosh Rastapur Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 2 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 71 - drivers/net/ethernet/chelsio/cxgb4

[PATCH net-next] cxgb3: assign port id to net_device->dev_port

2018-01-19 Thread Ganesh Goudar
From: Arjun Vynipadath T3 devices have different ports on same PCI function, so using dev_port to identify ports. Signed-off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net

[PATCH net-next] cxgb4: IPv6 filter takes 2 tids

2018-01-16 Thread Ganesh Goudar
on T6, IPv6 filter would occupy 2 tids instead of 4. Signed-off-by: Kumar Sanghvi Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c | 113 +++--- 1 file changed, 80 insertions(+), 33 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4

[PATCH net-next] cxgb4: restructure VF mgmt code

2018-01-16 Thread Ganesh Goudar
restructure the code which adds support for configuring PCIe VF via mgmt netdevice. which was added by commit 7829451c695e ("cxgb4: Add control net_device for configuring PCIe VF") Original work by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxg

[PATCH net-next 4/4] cxgb4: implement ndo_features_check

2018-01-10 Thread Ganesh Goudar
Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index d0e08f6..3293980 100644 --- a/drivers

[PATCH net-next 3/4] cxgb4: add support for vxlan segmentation offload

2018-01-10 Thread Ganesh Goudar
add changes to t4_eth_xmit to enable vxlan segmentation offload support. Original work by: Santosh Rastapur Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 4 + drivers/net/ethernet/chelsio/cxgb4

[PATCH net-next 2/4] cxgb4: implement udp tunnel callbacks

2018-01-10 Thread Ganesh Goudar
Implement ndo_udp_tunnel_add and ndo_udp_tunnel_del to support vxlan tunnelling. Original work by: Santosh Rastapur Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 15 +++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 130

[PATCH net-next 1/4] cxgb4: add data structures to support vxlan

2018-01-10 Thread Ganesh Goudar
Add data structures and macros to be used in vxlan offload. Original work by: Santosh Rastapur Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 164 ++ drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | 17 +++ drivers/net/ethernet/chelsio

[PATCH net-next] cxgb4vf: Fix SGE FL buffer initialization logic for 64K pages

2018-01-09 Thread Ganesh Goudar
Work by: Casey Leedom Signed-off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4vf/sge.c | 23 +-- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/sge.c b/drivers/net/ethernet/chelsi

[PATCH net v2] cxgb4: Fix FW flash errors

2018-01-02 Thread Ganesh Goudar
flash addresses. Fixes: 96ac18f14a5a ("cxgb4: Add support for new flash parts") Signed-off-by: Arjun Vynipadath Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- V2: Corrected the commit log --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 - drivers/net/ethernet/

[PATCH net] cxgb4: Fix FW flash errors

2017-12-29 Thread Ganesh Goudar
From: Arjun Vynipadath Initialize adapter->params.sf_fw_start to fix firmware flash issues. Use existing macros defined for FW flash addresses. Fixes: 96ac18f14a5a ("cxgb4: Add support for new flash parts") Signed-off-by: Arjun Vynipadath Signed-off-by: Casey Leedom Signed-o

[PATCH net-next] cxgb4: Check alignment constraint for T6

2017-12-28 Thread Ganesh Goudar
Update the check for setting IPV4 filters and align filter_id to multiple of 2, only for IPv6 filters in case of T6. Signed-off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c | 17 - 1 file changed, 12 insertions(+), 5

[PATCH net-next] cxgb4/cxgb4vf: support for XLAUI Port Type

2017-12-27 Thread Ganesh Goudar
Add support for new Backplane XLAUI port type. Signed-off-by: Casey Leedom Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 10 +- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 1 + drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h | 1

[PATCH net-next] cxgb4: display VNI correctly

2017-12-27 Thread Ganesh Goudar
Fix incorrect VNI display in mps_tcam Signed-off-by: Santosh Rastapur Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c b/drivers

  1   2   >