diff options
author | Sameeh Jubran <sameehj@amazon.com> | 2020-09-10 13:07:13 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-10 15:12:27 -0700 |
commit | 4cd28b214d561e9882923919bfd4a73afb980ec9 (patch) | |
tree | 13b2338622ff910a6174837624fdfb3b4c772a67 /drivers/net/ethernet/amazon/ena/ena_ethtool.c | |
parent | net: ena: ethtool: add stats printing to XDP queues (diff) | |
download | linux-4cd28b214d561e9882923919bfd4a73afb980ec9.tar.xz linux-4cd28b214d561e9882923919bfd4a73afb980ec9.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/amazon/ena/ena_ethtool.c')
-rw-r--r-- | drivers/net/ethernet/amazon/ena/ena_ethtool.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_ethtool.c b/drivers/net/ethernet/amazon/ena/ena_ethtool.c index 137a36a6bd5f..1e6457dd662a 100644 --- a/drivers/net/ethernet/amazon/ena/ena_ethtool.c +++ b/drivers/net/ethernet/amazon/ena/ena_ethtool.c @@ -116,6 +116,11 @@ static const struct ena_stats ena_stats_rx_strings[] = { ENA_STAT_RX_ENTRY(bad_req_id), ENA_STAT_RX_ENTRY(empty_rx_ring), ENA_STAT_RX_ENTRY(csum_unchecked), + ENA_STAT_RX_ENTRY(xdp_aborted), + ENA_STAT_RX_ENTRY(xdp_drop), + ENA_STAT_RX_ENTRY(xdp_pass), + ENA_STAT_RX_ENTRY(xdp_tx), + ENA_STAT_RX_ENTRY(xdp_invalid), }; static const struct ena_stats ena_stats_ena_com_strings[] = { |