diff options
author | David Arinzon <darinzon@amazon.com> | 2022-12-29 07:30:07 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-12-30 07:43:43 +0000 |
commit | c7f5e34d906320fdc996afa616676161c029cc02 (patch) | |
tree | ecaf325cc2c6638c9716910f325d57e3b124b6f0 /drivers/net/ethernet/amazon | |
parent | 9c9e539956fa67efb8a65e32b72a853740b33445 (diff) | |
download | lwn-c7f5e34d906320fdc996afa616676161c029cc02.tar.gz lwn-c7f5e34d906320fdc996afa616676161c029cc02.zip |
net: ena: Account for the number of processed bytes in XDP
The size of packets that were forwarded or dropped by XDP wasn't added
to the total processed bytes statistic.
Fixes: 548c4940b9f1 ("net: ena: Implement XDP_TX action")
Signed-off-by: Shay Agroskin <shayagr@amazon.com>
Signed-off-by: David Arinzon <darinzon@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amazon')
-rw-r--r-- | drivers/net/ethernet/amazon/ena/ena_netdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.c b/drivers/net/ethernet/amazon/ena/ena_netdev.c index 6ba9b06719a0..9ae86bd3d457 100644 --- a/drivers/net/ethernet/amazon/ena/ena_netdev.c +++ b/drivers/net/ethernet/amazon/ena/ena_netdev.c @@ -1719,6 +1719,7 @@ static int ena_clean_rx_irq(struct ena_ring *rx_ring, struct napi_struct *napi, } if (xdp_verdict != XDP_PASS) { xdp_flags |= xdp_verdict; + total_len += ena_rx_ctx.ena_bufs[0].len; res_budget--; continue; } |