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>
                tx_bi = &xdp_ring->tx_buffer_info[xdp_ring->next_to_use];
                tx_bi->bytecount = len;
                tx_bi->xdpf = NULL;
+               tx_bi->gso_segs = 1;
 
                tx_desc = IXGBE_TX_DESC(xdp_ring, xdp_ring->next_to_use);
                tx_desc->read.buffer_addr = cpu_to_le64(dma);