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)
commit4cd28b214d561e9882923919bfd4a73afb980ec9
tree13b2338622ff910a6174837624fdfb3b4c772a67
parent0201bda10679267f98b776b4af73e081d55cb73e
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