[Intel-wired-lan] [next-queue v4 04/12] ice: allow process VF opcodes in different ways

Penigalapati, Sandeep sandeep.penigalapati at intel.com
Wed Sep 1 10:43:25 UTC 2021


>-----Original Message-----
>From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
>Tony Nguyen
>Sent: Friday, August 20, 2021 5:39 AM
>To: intel-wired-lan at lists.osuosl.org
>Subject: [Intel-wired-lan] [next-queue v4 04/12] ice: allow process VF opcodes
>in different ways
>
>From: Michal Swiatkowski <michal.swiatkowski at linux.intel.com>
>
>In switchdev driver shouldn't add MAC, VLAN and promisc filters on iavf
>demand but should return success to not break normal iavf flow.
>
>Achieve that by creating table of functions pointer with default functions used
>to parse iavf command. While parse iavf command, call correct function from
>table instead of calling function direct.
>
>When port representors are being created change functions in table to new
>one that behaves correctly for switchdev puprose (ignoring new filters).
>
>Change back to default ops when representors are being removed.
>
>Co-developed-by: Wojciech Drewek <wojciech.drewek at intel.com>
>Signed-off-by: Wojciech Drewek <wojciech.drewek at intel.com>
>Signed-off-by: Michal Swiatkowski <michal.swiatkowski at linux.intel.com>
>---
> drivers/net/ethernet/intel/ice/ice_repr.c     |  23 +-
> .../net/ethernet/intel/ice/ice_virtchnl_pf.c  | 207 +++++++++++++++---
>.../net/ethernet/intel/ice/ice_virtchnl_pf.h  |  32 +++
> 3 files changed, 225 insertions(+), 37 deletions(-)
>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati at intel.com>


More information about the Intel-wired-lan mailing list