sfc: Record [rt]x_dpcpu_fw_id in EF10 nic_data
authorDaniel Pieczko <dpieczko@solarflare.com>
Tue, 5 May 2015 23:56:55 +0000 (00:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 May 2015 20:16:47 +0000 (16:16 -0400)
commit8d9f9dd4487e4792601759b4376441bcc9e54f95
tree75d78610bfa86e9679bf5e60bc468151efe8137a
parente3d3629387e5f613dea3a6231f138a4471ffe61e
sfc: Record [rt]x_dpcpu_fw_id in EF10 nic_data

The (future) code to add/remove vswitches and vports will be
dependent on the firmware variant.
To simplify the checking of the firmware variant, record
values for rx_dpcpu_fw_id and tx_dpcpu_fw_id in EF10 nic_data.

There was only one place where this was previously used:
efx_mcdi_print_fwver() in ethtool.c.
The MC_CMD_GET_CAPABILITIES can be replaced and the values from
nic_data used instead.

Note that the printing of "?" if the MC command fails or if the
outlength is incorrect no longer apply, because errors are returned
in efx_ef10_init_datapath_caps() in both of these cases.

Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/mcdi.c
drivers/net/ethernet/sfc/nic.h
This page took 0.025929 seconds and 5 git commands to generate.