[PATCH v2 net-next] cxgb4/cxgb4vf: Fix mac_hlist initialization and free

2018-11-19 Thread Arjun Vynipadath
Null pointer dereference seen when cxgb4vf driver is unloaded without bringing up any interfaces, moving mac_hlist initialization to driver probe and free the mac_hlist in remove to fix the issue. Fixes: 24357e06ba51 ("cxgb4vf: fix memleak in mac_hlist initialization") Signed-off

[PATCH net-next] cxgb4/cxgb4vf: Fix mac_hlist initialization and free

2018-11-19 Thread Arjun Vynipadath
Null pointer dereference seen when cxgb4vf driver is unloaded without bringing up any interfaces, moving mac_hlist initialization to driver probe and free the mac_hlist in remove to fix this. Fixes 'commit 24357e06ba51 ("cxgb4vf: fix memleak in mac_hlist initialization")' Signed-off

[PATCH net-next] cxgb4: Remove SGE_HOST_PAGE_SIZE dependency on page size

2018-11-15 Thread Arjun Vynipadath
Page Size in order to properly calculate BAR2 Offsets. Signed-off-by: Casey Leedom Signed-off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c

[PATCH net-next] cxgb4vf: free mac_hlist properly

2018-11-09 Thread Arjun Vynipadath
The locally maintained list for tracking hash mac table was not freed during driver remove. Signed-off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ethernet

[PATCH net-next] cxgb4vf: fix memleak in mac_hlist initialization

2018-11-09 Thread Arjun Vynipadath
that, move list init to the condition that performs initial one time adapter setup. Signed-off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet

[PATCH net-next] cxgb4: free mac_hlist properly

2018-11-09 Thread Arjun Vynipadath
The locally maintained list for tracking hash mac table was not freed during driver remove. Signed-off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/net/ethernet/chelsio

Re: [PATCH net-next] cxgb4vf: Add ethtool private flags for changing force_link_up

2018-09-21 Thread Arjun Vynipadath
On Tuesday, September 09/18/18, 2018 at 11:39:14 -0700, Jakub Kicinski wrote: > On Tue, 18 Sep 2018 18:37:23 +0530, Arjun Vynipadath wrote: > > Forcing link up of virtual interfaces even when physical link is down > > causes packet drops and ping failures during bonding failover. H

[PATCH net-next] cxgb4vf: Add ethtool private flags for changing force_link_up

2018-09-18 Thread Arjun Vynipadath
Forcing link up of virtual interfaces even when physical link is down causes packet drops and ping failures during bonding failover. Hence adding a ethtool private flag to toggle force_link_up whenever required. Signed-off-by: Arjun Vynipadath Signed-off-by: Casey Leedom Signed-off-by: Ganesh

[PATCH net] cxgb4: Added missing break in ndo_udp_tunnel_{add/del}

2018-07-25 Thread Arjun Vynipadath
Break statements were missing for Geneve case in ndo_udp_tunnel_{add/del}, thereby raw mac matchall entries were not getting added. Fixes: c746fc0e8b2d("cxgb4: add geneve offload support for T6") Signed-off-by: Arjun Vynipadath Signed-off-by: Ganesh Goudar --- drivers/net/ethern

[PATCH net-next] cxgb4: Add HMA support

2018-03-13 Thread Arjun Vynipadath
memory information via debugfs. Signed-off-by: Arjun Vynipadath <ar...@chelsio.com> Signed-off-by: Santosh Rastapur <sant...@chelsio.com> Signed-off-by: Michael Werner <wer...@chelsio.com> Signed-off-by: Ganesh GR <ganes...@chelsio.com> --- drivers/net/ethernet/chelsio/cxg

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

2018-01-23 Thread Arjun Vynipadath
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 of a PCI Device's VPD area by parsing the VPD Structure at offset 0x000, and