sfc: expose FEC stats on Medford2
authorEdward Cree <ecree@solarflare.com>
Thu, 21 Dec 2017 09:00:36 +0000 (09:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Dec 2017 20:14:26 +0000 (15:14 -0500)
commitf411b54d6b60f7db97190fa378de4c147fa055c5
treea74cc70344d03fd30f04147293365f867ec2f874
parentc1be48214543c4e5267c43d2c00ac2d9bb671381
sfc: expose FEC stats on Medford2

There's no explicit capability bit, so we just condition them on having
 efx->num_mac_stats >= MC_CMD_MAC_NSTATS_V2.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: Bert Kenward <bkenward@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/nic.h