bnxt: add pause frame stats
authorJakub Kicinski <kuba@kernel.org>
Tue, 15 Sep 2020 00:11:56 +0000 (17:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Sep 2020 20:26:29 +0000 (13:26 -0700)
commit423cffcf6c70031cb2265d0476087450ed89db59
treeab49c2a448c2fcd43edd7ba8735d3cc18bba6c39
parent242aaf03dc9be30027d3159a13b935856dab3ba0
bnxt: add pause frame stats

These stats are already reported in ethtool -S.
Michael confirms they are equivalent to standard stats.

v2: - fix sparse warning about endian by using the macro
    - use u64 for pointer type

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c