]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Dec 2015 00:00:03 +0000 (19:00 -0500)
commite206e59503425c2f3e9a55ce0df430ea9f51f9d2
treebc6221bc1d98708f8c6f7ad387d8077c91a761f7
parent1023cc361c83518c6f2bb94edacd0a6545f40c68
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>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c