Skip to content

Commit ef25090

Browse files
Michal Swiatkowskianguy11
authored andcommitted
ice: don't set target VSI for subfunction
Add check for subfunction before setting target VSI. It is needed for PF in switchdev mode but not for subfunction (even in switchdev mode). 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 977514f commit ef25090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2368,7 +2368,7 @@ ice_xmit_frame_ring(struct sk_buff *skb, struct ice_tx_ring *tx_ring)
23682368
ICE_TXD_CTX_QW1_CMD_S);
23692369

23702370
ice_tstamp(tx_ring, skb, first, &offload);
2371-
if (ice_is_switchdev_running(vsi->back))
2371+
if (ice_is_switchdev_running(vsi->back) && vsi->type != ICE_VSI_SF)
23722372
ice_eswitch_set_target_vsi(skb, &offload);
23732373

23742374
if (offload.cd_qw1 & ICE_TX_DESC_DTYPE_CTX) {

0 commit comments

Comments
 (0)