]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2x: simplify distinction between port and func stats
authorMichal Schmidt <mschmidt@redhat.com>
Fri, 4 Dec 2015 16:22:36 +0000 (17:22 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 02:28:36 +0000 (19:28 -0700)
commit4fc5278534657d330ce1dc4ff5d627d28e0d7c77
tree7c07e5e5d6ad2b476f01d50867c7c2a5b5226631
parentf0b406e3c1b9eb4af2ee2d9160aba1f88195a928
bnx2x: simplify distinction between port and func stats

The 'flags' field in bnx2x_stats_arr[] serves only one purpose - to tell
us if the statistic is a per-port stat and thus should not be shown for
virtual functions. It's strange that the field can have three different
values. A boolean will do just fine.

Also remove IS_FUNC_STAT(). It was used only once and it's in fact just
a negation of IS_PORT_STAT().

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Orabug: 23718192
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c