]> git.baikalelectronics.ru Git - kernel.git/commit
macsec: double accounting of dropped rx/tx packets
authorGirish Moodalbail <girish.moodalbail@oracle.com>
Fri, 19 May 2017 22:25:44 +0000 (15:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 May 2017 15:55:18 +0000 (11:55 -0400)
commit65d1b7fe188b7d827d21761e7def3c926d67dc4d
treee9dcc36a9c3220ad76a48b1af92adaced19e2402
parent4cda64a371d2d0f9bcb7b194b3eefde3689b022d
macsec: double accounting of dropped rx/tx packets

The macsec implementation shouldn't account for rx/tx packets that are
dropped in the netdev framework. The netdev framework itself accounts
for such packets by atomically updating struct net_device`rx_dropped and
struct net_device`tx_dropped fields. Later on when the stats for macsec
link is retrieved, the packets dropped in netdev framework will be
included in dev_get_stats() after calling macsec.c`macsec_get_stats64()

Signed-off-by: Girish Moodalbail <girish.moodalbail@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c