summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/ice/ice_lag.h
diff options
context:
space:
mode:
authorDave Ertman <david.m.ertman@intel.com>2023-06-21 01:18:54 +0300
committerTony Nguyen <anthony.l.nguyen@intel.com>2023-07-27 20:56:33 +0300
commit3579aa86fb4046a378f7d68583cfb7f62e0feabd (patch)
tree71a02715e412ae85d7d34febcda48170b92e835a /drivers/net/ethernet/intel/ice/ice_lag.h
parentab2ed5d77ab9c438d1ca8ebb230cf8eb699c163f (diff)
downloadlinux-3579aa86fb4046a378f7d68583cfb7f62e0feabd.tar.xz
ice: update reset path for SRIOV LAG support
Add code to rebuild the LAG resources when rebuilding the state of the interface after a reset. Also added in a function for building per-queue information into the buffer used to configure VF queues for LAG fail-over. This improves code reuse. Due to differences in timing per interface for recovering from a reset, add in the ability to retry on non-local dependencies where needed. Reviewed-by: Daniel Machon <daniel.machon@microchip.com> Signed-off-by: Dave Ertman <david.m.ertman@intel.com> Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lag.h')
-rw-r--r--drivers/net/ethernet/intel/ice/ice_lag.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_lag.h b/drivers/net/ethernet/intel/ice/ice_lag.h
index df4af5184a75..18075b82485a 100644
--- a/drivers/net/ethernet/intel/ice/ice_lag.h
+++ b/drivers/net/ethernet/intel/ice/ice_lag.h
@@ -16,6 +16,8 @@ enum ice_lag_role {
#define ICE_LAG_INVALID_PORT 0xFF
+#define ICE_LAG_RESET_RETRIES 5
+
struct ice_pf;
struct ice_vf;
@@ -59,4 +61,5 @@ struct ice_lag_work {
void ice_lag_move_new_vf_nodes(struct ice_vf *vf);
int ice_init_lag(struct ice_pf *pf);
void ice_deinit_lag(struct ice_pf *pf);
+void ice_lag_rebuild(struct ice_pf *pf);
#endif /* _ICE_LAG_H_ */