Skip to content

Commit b414020

Browse files
author
Paolo Abeni
committed
Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue
Tony Nguyen says: ==================== Intel Wired LAN Driver Updates 2023-12-18 (ice) This series contains updates to ice driver only. Jakes stops clearing of needed aggregator information. Dave adds a check for LAG device support before initializing the associated event handler. Larysa restores accounting of XDP queues in TC configurations. * '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue: ice: Fix PF with enabled XDP going no-carrier after reset ice: alter feature support check for SRIOV and LAG ice: stop trashing VF VSI aggregator node ID information ==================== Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
2 parents d6e5794 + f5728a4 commit b414020

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

drivers/net/ethernet/intel/ice/ice_lag.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,6 +1981,8 @@ int ice_init_lag(struct ice_pf *pf)
19811981
int n, err;
19821982

19831983
ice_lag_init_feature_support_flag(pf);
1984+
if (!ice_is_feature_supported(pf, ICE_F_SRIOV_LAG))
1985+
return 0;
19841986

19851987
pf->lag = kzalloc(sizeof(*lag), GFP_KERNEL);
19861988
if (!pf->lag)

drivers/net/ethernet/intel/ice/ice_lib.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2371,6 +2371,9 @@ static int ice_vsi_cfg_tc_lan(struct ice_pf *pf, struct ice_vsi *vsi)
23712371
} else {
23722372
max_txqs[i] = vsi->alloc_txq;
23732373
}
2374+
2375+
if (vsi->type == ICE_VSI_PF)
2376+
max_txqs[i] += vsi->num_xdp_txq;
23742377
}
23752378

23762379
dev_dbg(dev, "vsi->tc_cfg.ena_tc = %d\n", vsi->tc_cfg.ena_tc);
@@ -2620,10 +2623,6 @@ void ice_vsi_decfg(struct ice_vsi *vsi)
26202623
if (vsi->type == ICE_VSI_VF &&
26212624
vsi->agg_node && vsi->agg_node->valid)
26222625
vsi->agg_node->num_vsis--;
2623-
if (vsi->agg_node) {
2624-
vsi->agg_node->valid = false;
2625-
vsi->agg_node->agg_id = 0;
2626-
}
26272626
}
26282627

26292628
/**

0 commit comments

Comments
 (0)