summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/nic.h
diff options
context:
space:
mode:
authorBen Hutchings2013-09-05 23:51:55 +0200
committerBen Hutchings2013-09-11 16:29:53 +0200
commita915ccc9f2c80aa4c329262d89f93ea16d8792c9 (patch)
tree8a19eba0de4f51b43af6a4e746b30ce2913d3157 /drivers/net/ethernet/sfc/nic.h
parentsfc: Clean up validation of datapath capabilities (diff)
downloadkernel-qcow2-linux-a915ccc9f2c80aa4c329262d89f93ea16d8792c9.tar.gz
kernel-qcow2-linux-a915ccc9f2c80aa4c329262d89f93ea16d8792c9.tar.xz
kernel-qcow2-linux-a915ccc9f2c80aa4c329262d89f93ea16d8792c9.zip
sfc: Reinitialise and re-validate datapath caps after MC reboot
After an MC reboot, the datapath may be running a different firmware variant and have different capabilities. It is critical that we know the current capabilities so that we can pass valid flags to MC_CMD_INIT_EVQ. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/nic.h')
-rw-r--r--drivers/net/ethernet/sfc/nic.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/nic.h b/drivers/net/ethernet/sfc/nic.h
index 4b1e188f7a2f..fda29d39032f 100644
--- a/drivers/net/ethernet/sfc/nic.h
+++ b/drivers/net/ethernet/sfc/nic.h
@@ -400,6 +400,8 @@ enum {
* @rx_rss_context: Firmware handle for our RSS context
* @stats: Hardware statistics
* @workaround_35388: Flag: firmware supports workaround for bug 35388
+ * @must_check_datapath_caps: Flag: @datapath_caps needs to be revalidated
+ * after MC reboot
* @datapath_caps: Capabilities of datapath firmware (FLAGS1 field of
* %MC_CMD_GET_CAPABILITIES response)
*/
@@ -413,6 +415,7 @@ struct efx_ef10_nic_data {
u32 rx_rss_context;
u64 stats[EF10_STAT_COUNT];
bool workaround_35388;
+ bool must_check_datapath_caps;
u32 datapath_caps;
};