Files
android_kernel_xiaomi_sm8450/drivers/net/ethernet/sfc
Edward Cree c1be482145 sfc: support variable number of MAC stats
Medford2 NICs support more than MC_CMD_MAC_NSTATS stats, and report the new
 count in a field of MC_CMD_GET_CAPABILITIES_V4.  This also means that the
 end generation count moves (it is, as before, the last 64 bits of the DMA
 buffer, but that is no longer MC_CMD_MAC_GENERATION_END).
So read num_mac_stats from the GET_CAPABILITIES response, if present;
 otherwise assume MC_CMD_MAC_NSTATS; and always use num_mac_stats - 1 rather
 than MC_CMD_MAC_GENERATION_END.

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>
2017-12-21 15:14:26 -05:00
..
2016-12-01 15:39:38 -05:00
2013-08-29 23:34:51 +01:00
2017-12-18 13:07:49 -05:00
2017-12-21 15:14:26 -05:00
2017-12-18 13:07:49 -05:00
2013-08-29 23:34:51 +01:00
2017-12-18 13:07:49 -05:00
2017-11-15 19:42:40 -08:00
2016-11-18 11:55:38 -05:00