]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
bnxt_en: Save ring statistics before reset.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 16 Dec 2018 23:46:29 +0000 (18:46 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Dec 2018 07:08:53 +0000 (23:08 -0800)
commitb8875ca356f1c0b17ec68be6666269373a62288e
tree3614d664904602c62808933d3627e33812f20219
parent7c675421afef18253a86ffc383f57bc15ef32ea8
bnxt_en: Save ring statistics before reset.

With the current driver, the statistics reported by .ndo_get_stats64()
are reset when the device goes down.  Store a snapshot of the
rtnl_link_stats64 before shutdown.  This snapshot is added to the
current counters in .ndo_get_stats64() so that the counters will not
get reset when the device is down.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h