net/sfc/base: retrieve number of MAC stats from NIC
authorAndy Moreton <amoreton@solarflare.com>
Tue, 20 Feb 2018 07:33:55 +0000 (07:33 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:42 +0000 (14:08 +0200)
commit96cab03ded0a71224cdda9a16708554ae48cc6d4
treeaf6a86b57b0074fd0bb2371b1aad3e1e8c58895d
parent4aab7f07a6457b05594995c263cddc237c0d3b38
net/sfc/base: retrieve number of MAC stats from NIC

This reports the number of stats (and hence the DMA buffer size)
for MAC stats. If MC_GET_CAPABABILITIES_V4 is not supported then
use the legacy Siena-compatible MC_CMD_MAC_NSTATS value.

Signed-off-by: Andy Moreton <amoreton@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/ef10_nic.c
drivers/net/sfc/base/efx.h
drivers/net/sfc/base/siena_nic.c