diff options
author | 2017-12-21 09:00:26 +0000 | |
---|---|---|
committer | 2017-12-21 15:14:26 -0500 | |
commit | c1be48214543c4e5267c43d2c00ac2d9bb671381 (patch) | |
tree | 6c7e91d27b02742e0615d799a338e0bc3bd811ff /tools/perf/scripts/python | |
parent | sfc: update MCDI protocol headers (diff) | |
download | linux-dev-c1be48214543c4e5267c43d2c00ac2d9bb671381.tar.xz linux-dev-c1be48214543c4e5267c43d2c00ac2d9bb671381.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions