]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Add bnxt_get_num_stats() to centrally get the number of ethtool stats.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 24 Jul 2017 16:34:23 +0000 (12:34 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 13 Sep 2017 04:42:03 +0000 (21:42 -0700)
commit84452700b6e61f926aa862b4ea56774f3a9a4de7
treecdd553e691ab03498b0ed997d5e18073efbd4733
parent19e6d4110b1a06e72cdf1c7057f92c75f6343032
bnxt_en: Add bnxt_get_num_stats() to centrally get the number of ethtool stats.

Orabug: 26726982

Instead of duplicating the logic multiple times.  Also, it is unnecessary
to zero the buffer in .get_ethtool_stats() because it is already zeroed
by the caller.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 5c8227d0d3b1eb1ad8f98d0b6dc619d70f2cfa04)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c