Thread (27 messages) 27 messages, 8 authors, 2019-06-21

Re: [PATCH net] virtio_net: Account for tx bytes and packets on sending xdp_frames

From: David Ahern <hidden>
Date: 2019-02-02 21:28:15

On 1/31/19 1:15 PM, Jesper Dangaard Brouer wrote:
quoted
David, Jesper, care to chime in where we ended up in that last thread
discussion this?
IHMO packets RX and TX on a device need to be accounted, in standard
counters, regardless of XDP.  For XDP RX the packet is counted as RX,
regardless if XDP choose to XDP_DROP.  On XDP TX which is via
XDP_REDIRECT or XDP_TX, the driver that transmit the packet need to
account the packet in a TX counter (this if often delayed to DMA TX
completion handling).  We cannot break the expectation that RX and TX
counter are visible to userspace stats tools. XDP should not make these
packets invisible.
Agreed. What I was pushing on that last thread was Rx, Tx and dropped
are all accounted by the driver in standard stats. Basically if the
driver touched it, the driver's counters should indicate that.

The push back was on dropped packets and whether that counter should be
bumped on XDP_DROP.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help