[Intel-wired-lan] [PATCH S8 10/16] ice: Fix the bytecount sent to netdev_tx_sent_queue
Bowers, AndrewX
andrewx.bowers at intel.com
Tue Oct 30 21:59:24 UTC 2018
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Anirudh Venkataramanan
> Sent: Friday, October 26, 2018 10:41 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S8 10/16] ice: Fix the bytecount sent to
> netdev_tx_sent_queue
>
> From: Brett Creeley <brett.creeley at intel.com>
>
> Currently if the driver does a TSO offload the bytecount sent to
> netdev_tx_sent_queue will be incorrect. This is because in ice_tso we
> overwrite the initial value that we set in ice_tx_map. This creates a mismatch
> between the Tx and Tx clean flow. In the Tx clean flow we calculate the
> bytecount (called total_bytes) as we clean the descriptors so the value used
> in the Tx clean path is correct. Fix this by using += in ice_tso instead of =. This
> fixes the mismatch in bytecount mentioned above.
>
> Signed-off-by: Brett Creeley <brett.creeley at intel.com>
> Signed-off-by: Anirudh Venkataramanan
> <anirudh.venkataramanan at intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice_txrx.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list