Re: [PATCH v2 net-next] net: socionext: netsec: fix xdp stats accounting

2019-10-17 Thread David Miller
From: Lorenzo Bianconi Date: Thu, 17 Oct 2019 14:28:32 +0200 > Increment netdev rx counters even for XDP_DROP verdict. Report even > tx bytes for xdp buffers (TYPE_NETSEC_XDP_TX or TYPE_NETSEC_XDP_NDO). > Moreover account pending buffer length in netsec_xdp_queue_one as it is > done for skb count

Re: [PATCH v2 net-next] net: socionext: netsec: fix xdp stats accounting

2019-10-17 Thread Ilias Apalodimas
Thanks Lorenzo, On Thu, Oct 17, 2019 at 02:28:32PM +0200, Lorenzo Bianconi wrote: > Increment netdev rx counters even for XDP_DROP verdict. Report even > tx bytes for xdp buffers (TYPE_NETSEC_XDP_TX or TYPE_NETSEC_XDP_NDO). > Moreover account pending buffer length in netsec_xdp_queue_one as it is

[PATCH v2 net-next] net: socionext: netsec: fix xdp stats accounting

2019-10-17 Thread Lorenzo Bianconi
Increment netdev rx counters even for XDP_DROP verdict. Report even tx bytes for xdp buffers (TYPE_NETSEC_XDP_TX or TYPE_NETSEC_XDP_NDO). Moreover account pending buffer length in netsec_xdp_queue_one as it is done for skb counterpart Tested-by: Ilias Apalodimas Signed-off-by: Lorenzo Bianconi -