Skip to content

Commit 747967b

Browse files
Michal Swiatkowskianguy11
authored andcommitted
ice: treat subfunction VSI the same as PF VSI
When subfunction VSI is open the same code as for PF VSI should be executed. Also when up is complete. Reflect that in code by adding subfunction VSI to consideration. In case of stopping, PF doesn't have additional tasks, so the same is with subfunction VSI. Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Michal Swiatkowski <[email protected]> Tested-by: Rafal Romanowski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent eda69d6 commit 747967b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6754,7 +6754,8 @@ static int ice_up_complete(struct ice_vsi *vsi)
67546754

67556755
if (vsi->port_info &&
67566756
(vsi->port_info->phy.link_info.link_info & ICE_AQ_LINK_UP) &&
6757-
vsi->netdev && vsi->type == ICE_VSI_PF) {
6757+
((vsi->netdev && (vsi->type == ICE_VSI_PF ||
6758+
vsi->type == ICE_VSI_SF)))) {
67586759
ice_print_link_msg(vsi, true);
67596760
netif_tx_start_all_queues(vsi->netdev);
67606761
netif_carrier_on(vsi->netdev);
@@ -7452,7 +7453,7 @@ int ice_vsi_open(struct ice_vsi *vsi)
74527453

74537454
ice_vsi_cfg_netdev_tc(vsi, vsi->tc_cfg.ena_tc);
74547455

7455-
if (vsi->type == ICE_VSI_PF) {
7456+
if (vsi->type == ICE_VSI_PF || vsi->type == ICE_VSI_SF) {
74567457
/* Notify the stack of the actual queue counts. */
74577458
err = netif_set_real_num_tx_queues(vsi->netdev, vsi->num_txq);
74587459
if (err)

0 commit comments

Comments
 (0)