diff options
author | Dave Ertman <david.m.ertman@intel.com> | 2024-02-13 10:39:55 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-02-14 17:58:45 -0800 |
commit | dadd1701ae11a204dd4bea8086905a9576c4b63c (patch) | |
tree | 366153073fbc1cc357c4dbd71578c0721087fcb3 /drivers/net/ethernet/intel/ice/ice_lag.h | |
parent | 63a3dd6e62c8c4e7a80d8531da2a7faa94772178 (diff) | |
download | linux-dadd1701ae11a204dd4bea8086905a9576c4b63c.tar.gz linux-dadd1701ae11a204dd4bea8086905a9576c4b63c.tar.bz2 linux-dadd1701ae11a204dd4bea8086905a9576c4b63c.zip |
ice: Add check for lport extraction to LAG init
To fully support initializing the LAG support code, a DDP package that
extracts the logical port from the metadata is required. If such a
package is not present, there could be difficulties in supporting some
bond types.
Add a check into the initialization flow that will bypass the new paths
if any of the support pieces are missing.
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Fixes: df006dd4b1dc ("ice: Add initial support framework for LAG")
Signed-off-by: Dave Ertman <david.m.ertman@intel.com>
Reviewed-by: Marcin Szycik <marcin.szycik@linux.intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://lore.kernel.org/r/20240213183957.1483857-1-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lag.h')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_lag.h | 3 |
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 ede833dfa658..183b38792ef2 100644 --- a/drivers/net/ethernet/intel/ice/ice_lag.h +++ b/drivers/net/ethernet/intel/ice/ice_lag.h @@ -17,6 +17,9 @@ enum ice_lag_role { #define ICE_LAG_INVALID_PORT 0xFF #define ICE_LAG_RESET_RETRIES 5 +#define ICE_SW_DEFAULT_PROFILE 0 +#define ICE_FV_PROT_MDID 255 +#define ICE_LP_EXT_BUF_OFFSET 32 struct ice_pf; struct ice_vf; |