]> 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)
commitdf71b17ac49a2f9f0073297eb1dfbf3b162ce285
tree13b2338622ff910a6174837624fdfb3b4c772a67
parent974e62f7209a99de2a986c9e9e258de1cec6bd70
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