sfc: only use vadaptor stats if firmware is capable
authorBert Kenward <bkenward@solarflare.com>
Wed, 26 Aug 2015 15:39:03 +0000 (16:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Aug 2015 18:27:01 +0000 (11:27 -0700)
commitfbe4307e9ffd9b9c9d4631a37c8f16080da8df85
treeec33ca0f7b99f06c3879acdc8f97b656babb0320
parent4b195360914583899070835a08ceb06ac7b848d6
sfc: only use vadaptor stats if firmware is capable

Some of the stats handling code differs based on SR-IOV support,
and SRIOV support is only available if full-featured firmware is
used.
Do not use vadaptor stats if firmware mode is not set to
full-featured.

Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c