[Intel-wired-lan] [PATCH net-next v3 03/12] ice: introduce VF port representor

Penigalapati, Sandeep sandeep.penigalapati at intel.com
Fri Aug 6 09:50:10 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 03/12] ice: introduce VF port
>representor
>
>Port representor is used to manage VF from host side. To allow it each created
>representor registers netdevice with random hw address. Also devlink port is
>created for all representors.
>
>Port representor name is created based on switch id or managed by devlink
>core if devlink port was registered with success.
>
>Open and stop ndo ops are implemented to allow managing the VF link state.
>Link state is tracked in VF struct.
>
>Struct ice_netdev_priv is extended by pointer to representor field. This is
>needed to get correct representor from netdev struct mostly used in ndo calls.
>
>Implement helper functions to check if given netdev is netdev of port
>representor (ice_is_port_repr_netdev) and to get representor from netdev
>(ice_netdev_to_repr).
>
>As driver mostly will create or destroy port representors on all VFs instead of
>on single one, write functions to add and remove representor for each VF.
>
>Representor struct contains pointer to source VSI, which is VSI configured on
>VF, backpointer to VF, backpointer to netdev, q_vector pointer and
>metadata_dst which will be used in data path.
>
>Co-developed-by: Grzegorz Nitka <grzegorz.nitka at intel.com>
>Signed-off-by: Grzegorz Nitka <grzegorz.nitka at intel.com>
>Signed-off-by: Michal Swiatkowski <michal.swiatkowski at linux.intel.com>
>---
> drivers/net/ethernet/intel/ice/Makefile       |   3 +-
> drivers/net/ethernet/intel/ice/ice.h          |   2 +
> drivers/net/ethernet/intel/ice/ice_repr.c     | 254 ++++++++++++++++++
> drivers/net/ethernet/intel/ice/ice_repr.h     |  22 ++
> .../net/ethernet/intel/ice/ice_virtchnl_pf.c  |   2 +-
> .../net/ethernet/intel/ice/ice_virtchnl_pf.h  |   4 +
> 6 files changed, 285 insertions(+), 2 deletions(-)  create mode 100644
>drivers/net/ethernet/intel/ice/ice_repr.c
> create mode 100644 drivers/net/ethernet/intel/ice/ice_repr.h
>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati at intel.com>


More information about the Intel-wired-lan mailing list