diff options
| author | Michal Swiatkowski <[email protected]> | 2023-10-24 11:09:22 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2023-11-13 19:42:14 +0000 |
| commit | 604283e95eb0b2f4f38238e7acec4f1d68e00e2e (patch) | |
| tree | 84df68e7faa9d480583636614829dc743b11ca2e /drivers/net/ethernet/intel/ice/ice_vf_lib.c | |
| parent | ice: remove VF pointer reference in eswitch code (diff) | |
| download | kernel-604283e95eb0b2f4f38238e7acec4f1d68e00e2e.tar.gz kernel-604283e95eb0b2f4f38238e7acec4f1d68e00e2e.zip | |
ice: make representor code generic
Representor code needs to be independent from specific device type, like
in this case VF. Make generic add / remove representor function and
specific add VF / rem VF function. New device types will follow this
scheme.
In bridge offload code there is a need to get representor pointer based
on VSI. Implement helper function to achieve that.
Reviewed-by: Piotr Raczynski <[email protected]>
Reviewed-by: Wojciech Drewek <[email protected]>
Signed-off-by: Michal Swiatkowski <[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 462ee9fdf815..68f9de0a7a8f 100644 --- a/drivers/net/ethernet/intel/ice/ice_vf_lib.c +++ b/drivers/net/ethernet/intel/ice/ice_vf_lib.c @@ -928,7 +928,7 @@ int ice_reset_vf(struct ice_vf *vf, u32 flags) goto out_unlock; } - ice_eswitch_update_repr(vf->repr, 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); |
