]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Don't show port statistics for VFs
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Sun, 23 Mar 2014 16:12:26 +0000 (18:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Mar 2014 01:07:04 +0000 (21:07 -0400)
commit5861dc028e99378df4a489bf169c5f6c2668f8ec
tree11b17d4b7f0dba5c7f67f0bb1529924c4c47f4e8
parentad294d17341261a22a990386447246b09d2c415a
bnx2x: Don't show port statistics for VFs

VFs are currently showing port statistics, although they can't really access
those - thus all such statistics will always show a value of 0.

This patch removes said statistics from the VF's view as to not confuse the
user.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c