]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: xdp: add queue counters for xdp actions
authorSameeh Jubran <sameehj@amazon.com>
Thu, 10 Sep 2020 13:07:13 +0000 (13:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Sep 2020 22:12:27 +0000 (15:12 -0700)
commit18353358e621325d0140d6d60346646cfc4d456f
tree13b2338622ff910a6174837624fdfb3b4c772a67
parent6b27d388b0525ca19a972d69d786abaf4085975b
net: ena: xdp: add queue counters for xdp actions

When using XDP every ingress packet is passed to an eBPF (xdp) program
which returns an action for this packet.

This patch adds counters for the number of times each such action was
received. It also counts all the invalid actions received from the eBPF
program.

Signed-off-by: Shay Agroskin <shayagr@amazon.com>
Signed-off-by: Sameeh Jubran <sameehj@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_ethtool.c
drivers/net/ethernet/amazon/ena/ena_netdev.c
drivers/net/ethernet/amazon/ena/ena_netdev.h