Message ID | 20240111150334.760997-3-robert.malz@canonical.com |
---|---|
State | New |
Headers | show |
Series | Intel E810 transmit hang with bonding enabled | expand |
diff --git a/drivers/net/ethernet/intel/ice/ice_lag.c b/drivers/net/ethernet/intel/ice/ice_lag.c index d018e68f5a6d..584b069f2746 100644 --- a/drivers/net/ethernet/intel/ice/ice_lag.c +++ b/drivers/net/ethernet/intel/ice/ice_lag.c @@ -381,6 +381,8 @@ int ice_init_lag(struct ice_pf *pf) int err; ice_lag_init_feature_support_flag(pf); + if (!ice_is_feature_supported(pf, ICE_F_SRIOV_LAG)) + return 0; pf->lag = kzalloc(sizeof(*lag), GFP_KERNEL); if (!pf->lag)