]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: Fix work request size calculation for loopback test
authorGanji Aravind <ganji.aravind@chelsio.com>
Tue, 18 Aug 2020 15:40:57 +0000 (21:10 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Aug 2020 20:02:51 +0000 (13:02 -0700)
commit9c86b019a9726d81d97c929b38a385230a05af96
tree7a44c3df415d6d1ec63a32d6868d60762e998377
parent6f177f8a9afa343c2f590eb1d6a6cdad91007554
cxgb4: Fix work request size calculation for loopback test

Work request used for sending loopback packet needs to add
the firmware work request only once. So, fix by using
correct structure size.

Fixes: bc2b707d39dd ("cxgb4: add loopback ethtool self-test")
Signed-off-by: Ganji Aravind <ganji.aravind@chelsio.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/sge.c