ixgbe: fix AF_XDP tx byte count
authorWilliam Tu <u9012063@gmail.com>
Thu, 4 Apr 2019 16:36:54 +0000 (09:36 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 5 Jun 2019 20:04:29 +0000 (13:04 -0700)
The tx bytecount is done twice.  When running
'./xdpsock -t -N -i eth3' and 'ip -s link show dev eth3'
The avg packet size is 120 instead of 60. So remove the
extra one.

Signed-off-by: William Tu <u9012063@gmail.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c

index f7cc13d7eb2c26a851bb03ba2739f1cf96f77d64..90aa5825f5006d159e5683ee0368ba6a9601b4fb 100644 (file)
@@ -654,7 +654,6 @@ bool ixgbe_clean_xdp_tx_irq(struct ixgbe_q_vector *q_vector,
                        xsk_frames++;
 
                tx_bi->xdpf = NULL;
-               total_bytes += tx_bi->bytecount;
 
                tx_bi++;
                tx_desc++;