diff options
| author | Michal Swiatkowski <[email protected]> | 2024-06-10 07:44:34 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2024-06-21 15:51:58 +0000 |
| commit | fff5cca345a66a341870512e58ca469042249f25 (patch) | |
| tree | 45db2bb32f57e78c282289b5a30f4e70e8c64830 /drivers/net/ethernet/intel/ice/ice_vf_lib.c | |
| parent | ice: move VSI configuration outside repr setup (diff) | |
| download | kernel-fff5cca345a66a341870512e58ca469042249f25.tar.gz kernel-fff5cca345a66a341870512e58ca469042249f25.zip | |
ice: update representor when VSI is ready
In case of reset of VF VSI can be reallocated. To handle this case it
should be properly updated.
Reload representor as vsi->vsi_num can be different than the one stored
when representor was created.
Instead of only changing antispoof do whole VSI configuration for
eswitch.
Signed-off-by: Michal Swiatkowski <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Tested-by: Sujai Buvaneswaran <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_vf_lib.c')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice_vf_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_vf_lib.c b/drivers/net/ethernet/intel/ice/ice_vf_lib.c index 48a8d462d76a..5635e9da2212 100644 --- a/drivers/net/ethernet/intel/ice/ice_vf_lib.c +++ b/drivers/net/ethernet/intel/ice/ice_vf_lib.c @@ -948,7 +948,7 @@ int ice_reset_vf(struct ice_vf *vf, u32 flags) goto out_unlock; } - ice_eswitch_update_repr(vf->repr_id, vsi); + ice_eswitch_update_repr(&vf->repr_id, vsi); /* if the VF has been reset allow it to come up again */ ice_mbx_clear_malvf(&vf->mbx_info); |
