[PATCH net] cxgb4: Fix offset when clearing filter byte counters

2020-09-04 Thread Ganji Aravind
Pass the correct offset to clear the stale filter hit bytes counter. Otherwise, the counter starts incrementing from the stale information, instead of 0. Fixes: 12b276fbf6e0 ("cxgb4: add support to create hash filters") Signed-off-by: Ganji Aravind --- drivers/net/ethernet/che

[PATCH net 1/2] cxgb4: Fix work request size calculation for loopback test

2020-08-18 Thread Ganji Aravind
Work request used for sending loopback packet needs to add the firmware work request only once. So, fix by using correct structure size. Fixes: 7235ffae3d2c ("cxgb4: add loopback ethtool self-test") Signed-off-by: Ganji Aravind --- drivers/net/ethernet/chelsio/cxgb4/sge.c | 4 ++

[PATCH net 0/2]cxgb4: Fix ethtool selftest flits calculation

2020-08-18 Thread Ganji Aravind
Patch 1 will fix work request size calculation for loopback selftest. Patch 2 will fix race between loopback selftest and normal Tx handler. Thanks, Ganji Aravind. Ganji Aravind (2): cxgb4: Fix work request size calculation for loopback test cxgb4: Fix race between loopback and normal Tx

[PATCH net 2/2] cxgb4: Fix race between loopback and normal Tx path

2020-08-18 Thread Ganji Aravind
("cxgb4: add loopback ethtool self-test") Signed-off-by: Ganji Aravind --- drivers/net/ethernet/chelsio/cxgb4/sge.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/sge.c b/drivers/net/ethernet/chelsio/cxgb4/sge.c index 7c

Re: [PATCH net-next] cxgb4: Add support to flash firmware config image

2020-07-31 Thread Ganji Aravind
On Thursday, July 07/30/20, 2020 at 16:23:35 -0700, Jakub Kicinski wrote: > On Thu, 30 Jul 2020 20:41:38 +0530 Ganji Aravind wrote: > > Update set_flash to flash firmware configuration image > > to flash region. > > And the reason why you need to flash some .ini files sep

[PATCH net-next] cxgb4: Add support to flash firmware config image

2020-07-30 Thread Ganji Aravind
Update set_flash to flash firmware configuration image to flash region. Signed-off-by: Ganji Aravind --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h| 3 +- .../ethernet/chelsio/cxgb4/cxgb4_ethtool.c| 93 +++ drivers/net/ethernet/chelsio/cxgb4/t4_hw.c| 13 ++- 3 files