]> git.baikalelectronics.ru Git - kernel.git/commit
qede: Don't expose self-test for VFs
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Thu, 26 May 2016 08:01:19 +0000 (11:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 May 2016 19:27:32 +0000 (12:27 -0700)
commit9167fa982b0890abf42b897cd5b574c964c235b4
tree8b6ed2709d3b8d9839dc4ae73a59b41038bc1922
parente08b864b97adade2f10ed43278f4d8e2966eaefd
qede: Don't expose self-test for VFs

PFs and VFs differ in their registered ethtool operations,
but they're using a common function for get_sset_count().
As a result, `ethtool -i' for a VF would indicate it supports
selftest, although that's not the case.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qede/qede_ethtool.c