]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: fix AF_XDP tx packet count
authorWilliam Tu <u9012063@gmail.com>
Thu, 4 Apr 2019 16:36:55 +0000 (09:36 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 5 Jun 2019 20:04:29 +0000 (13:04 -0700)
commit77113138b699fde0a88ad1055e32bb5da39026ba
tree98f26bbd69685f40ceb8f1a1a2d8b6339ad71ea7
parent658fd34157e39502b33f307ed66360b39d3a5ff6
ixgbe: fix AF_XDP tx packet count

The total_packets count at ixgbe_clean_xdp_tx_irq is
always zero when testing with xdpsock -t -N. Set the gso_segs
to 1 to make the tx packet count correct.

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