diff options
| author | Michal Swiatkowski <[email protected]> | 2024-06-10 07:44:31 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2024-06-21 14:44:33 +0000 |
| commit | 639ac8ce8b65a44f176e3e831e39d5dde738ac71 (patch) | |
| tree | 24292755940c66da52f235e92853c06e735ac0c1 /drivers/net/ethernet/intel/ice/ice_repr.c | |
| parent | selftests: net: change shebang to bash in amt.sh (diff) | |
| download | kernel-639ac8ce8b65a44f176e3e831e39d5dde738ac71.tar.gz kernel-639ac8ce8b65a44f176e3e831e39d5dde738ac71.zip | |
ice: store representor ID in bridge port
It is used to get representor structure during cleaning.
Reviewed-by: Wojciech Drewek <[email protected]>
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_repr.c')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice_repr.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_repr.c b/drivers/net/ethernet/intel/ice/ice_repr.c index d367f4c66dcd..fe83f305cc7d 100644 --- a/drivers/net/ethernet/intel/ice/ice_repr.c +++ b/drivers/net/ethernet/intel/ice/ice_repr.c @@ -415,12 +415,9 @@ err_repr_add: return ERR_PTR(err); } -struct ice_repr *ice_repr_get_by_vsi(struct ice_vsi *vsi) +struct ice_repr *ice_repr_get(struct ice_pf *pf, u32 id) { - if (!vsi->vf) - return NULL; - - return xa_load(&vsi->back->eswitch.reprs, vsi->vf->repr_id); + return xa_load(&pf->eswitch.reprs, id); } /** |
