diff options
| author | Michal Swiatkowski <[email protected]> | 2024-03-01 11:54:13 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2024-03-25 20:08:47 +0000 |
| commit | 44ba608db50970dbb7eae1dca13ebcbf9485b4e7 (patch) | |
| tree | 8d1e57fcd08618e9bc6327a3427efb41c77c5deb /drivers/net/ethernet/intel/ice/ice_dcb_lib.c | |
| parent | ice: change repr::id values (diff) | |
| download | kernel-44ba608db50970dbb7eae1dca13ebcbf9485b4e7.tar.gz kernel-44ba608db50970dbb7eae1dca13ebcbf9485b4e7.zip | |
ice: do switchdev slow-path Rx using PF VSI
Add an ICE_RX_FLAG_MULTIDEV flag to Rx ring.
If it is set try to find correct port representor. Do it based on
src_vsi value stored in flex descriptor. Ids of representor pointers
stored in xarray are equal to corresponding src_vsi value. Thanks to
that we can directly get correct representor if we have src_vsi value.
Set multidev flag during ring configuration.
If the mode is switchdev, change the ring descriptor to the one that
contains src_vsi value.
PF netdev should be reconfigured, do it by calling ice_down() and
ice_up() if the netdev was up before configuring switchdev.
Reviewed-by: Marcin Szycik <[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_dcb_lib.c')
0 files changed, 0 insertions, 0 deletions
