]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Fri, 22 Jan 2021 03:27:04 +0000 (20:27 -0700)
commit350cc0932b9324129ca696a29ccb90f41c067542
tree7e322459257c50656c85eafe287239b077937397
parent2473da3b1307f57be0c901950ebf6d1c1bddea77
net: ena: xdp: add queue counters for xdp actions

BugLink: https://bugs.launchpad.net/bugs/1910291
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>
(cherry picked from commit 4cd28b214d561e9882923919bfd4a73afb980ec9)
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Acked-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/ethernet/amazon/ena/ena_ethtool.c
drivers/net/ethernet/amazon/ena/ena_netdev.c
drivers/net/ethernet/amazon/ena/ena_netdev.h