diff options
author | Shannon Nelson <snelson@pensando.io> | 2020-01-07 06:43:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-08 00:05:06 +0300 |
commit | 24cfa8c76278d48fe521a363b74e36861b4462d6 (patch) | |
tree | 5e11a92fc2fcc5a54fadb1e7f6cc7d47321852bc /drivers/net/ethernet/pensando/ionic/ionic_lif.h | |
parent | 3daca28f15f5e70ae54859abd66dcdb6be31ba91 (diff) | |
download | linux-24cfa8c76278d48fe521a363b74e36861b4462d6.tar.xz |
ionic: add Rx dropped packet counter
Add a counter for packets dropped by the driver, typically
for bad size or a receive error seen by the device.
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/pensando/ionic/ionic_lif.h')
-rw-r--r-- | drivers/net/ethernet/pensando/ionic/ionic_lif.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_lif.h b/drivers/net/ethernet/pensando/ionic/ionic_lif.h index a55fd1f8c31b..9c5a7dd45f9d 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_lif.h +++ b/drivers/net/ethernet/pensando/ionic/ionic_lif.h @@ -37,6 +37,7 @@ struct ionic_rx_stats { u64 csum_complete; u64 csum_error; u64 buffers_posted; + u64 dropped; }; #define IONIC_QCQ_F_INITED BIT(0) |