]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit863483c970e968efd6a119a2118f57977d04cefe
treee9dcc36a9c3220ad76a48b1af92adaced19e2402
parentf5a64d64b5f5f42999f029f6c04f6dda19339566
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