diff --git a/sys/dev/ice/ice_lib.c b/sys/dev/ice/ice_lib.c index 8253f39f6d95..24685c896997 100644 --- a/sys/dev/ice/ice_lib.c +++ b/sys/dev/ice/ice_lib.c @@ -775,7 +775,8 @@ ice_initialize_vsi(struct ice_vsi *vsi) #ifdef PCI_IOV case ICE_VSI_VF: ctx.flags = ICE_AQ_VSI_TYPE_VF; - ctx.vf_num = vsi->vf_num; + /* Add VSI requires the absolute VF number. */ + ctx.vf_num = hw->func_caps.vf_base_id + vsi->vf_num; break; #endif default: