提交 c7f5e34d 编写于 作者: D David Arinzon 提交者: David S. Miller

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: 548c4940 ("net: ena: Implement XDP_TX action")
Signed-off-by: NShay Agroskin <shayagr@amazon.com>
Signed-off-by: NDavid Arinzon <darinzon@amazon.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 9c9e5399
...@@ -1719,6 +1719,7 @@ static int ena_clean_rx_irq(struct ena_ring *rx_ring, struct napi_struct *napi, ...@@ -1719,6 +1719,7 @@ static int ena_clean_rx_irq(struct ena_ring *rx_ring, struct napi_struct *napi,
} }
if (xdp_verdict != XDP_PASS) { if (xdp_verdict != XDP_PASS) {
xdp_flags |= xdp_verdict; xdp_flags |= xdp_verdict;
total_len += ena_rx_ctx.ena_bufs[0].len;
res_budget--; res_budget--;
continue; continue;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册