[Intel-wired-lan] [PATCH net-next v3 10/12] ice: rebuild switchdev when resetting all VFs
Penigalapati, Sandeep
sandeep.penigalapati at intel.com
Wed Aug 11 05:25:11 UTC 2021
>-----Original Message-----
>From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
>Michal Swiatkowski
>Sent: Friday, June 25, 2021 8:15 AM
>To: intel-wired-lan at lists.osuosl.org
>Subject: [Intel-wired-lan] [PATCH net-next v3 10/12] ice: rebuild switchdev
>when resetting all VFs
>
>From: Grzegorz Nitka <grzegorz.nitka at intel.com>
>
>As resetting all VFs behaves mostly like creating new VFs also eswitch
>infrastructure has to be recreated. The easiest way to do that is to rebuild
>eswitch after resetting VFs.
>
>Implement helper functions to start and stop all representors queues. This is
>used to disable traffic on port representors.
>
>In rebuild path:
>- NAPI has to be disabled
>- eswitch environment has to be set up
>- new port representors have to be created, because the old one had pointer
>to not exsisting VFs
>- new control plane VSI ring should be remaped
>- NAPI hast to be enabled
>- rxdid has to be set to FLEX_NIC_2, because this descriptor id support
>source_vsi, which is needed on control plane VSI queues
>- port representors queues have to be started
>
>Signed-off-by: Grzegorz Nitka <grzegorz.nitka at intel.com>
>---
> drivers/net/ethernet/intel/ice/ice_eswitch.c | 83 +++++++++++++++++++
>drivers/net/ethernet/intel/ice/ice_eswitch.h | 10 +++
> drivers/net/ethernet/intel/ice/ice_main.c | 11 ++-
> drivers/net/ethernet/intel/ice/ice_repr.c | 20 +++++
> drivers/net/ethernet/intel/ice/ice_repr.h | 3 +
> .../net/ethernet/intel/ice/ice_virtchnl_pf.c | 4 +
> 6 files changed, 130 insertions(+), 1 deletion(-)
>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati at intel.com>
More information about the Intel-wired-lan
mailing list