All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Szlosek, Marek" <marek.szlosek@intel.com>
To: "Wilczynski, Michal" <michal.wilczynski@intel.com>,
	"intel-wired-lan@lists.osuosl.org"
	<intel-wired-lan@lists.osuosl.org>
Cc: "Wilczynski, Michal" <michal.wilczynski@intel.com>
Subject: Re: [Intel-wired-lan] [PATCH net v3 1/2] ice: Introduce enabling promiscuous mode on multiple VF's
Date: Fri, 22 Jul 2022 10:27:56 +0000	[thread overview]
Message-ID: <CY4PR11MB162405ABC9BEC5454D266A41E6909@CY4PR11MB1624.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20220704131227.2966160-2-michal.wilczynski@intel.com>



> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of
> Michal Wilczynski
> Sent: poniedziałek, 4 lipca 2022 15:12
> To: intel-wired-lan@lists.osuosl.org
> Cc: Wilczynski, Michal <michal.wilczynski@intel.com>
> Subject: [Intel-wired-lan] [PATCH net v3 1/2] ice: Introduce enabling
> promiscuous mode on multiple VF's
> 
> In current implementation default VSI switch filter is only able to forward
> traffic to a single VSI. This limits promiscuous mode with private flag 'vf-true-
> promisc-support' to a single VF. Enabling it on the second VF won't work. Also
> allmulticast support doesn't seem to be properly implemented when vf-true-
> promisc-support is true.
> 
> Use standard ice_add_rule_internal() function that already implements
> forwarding to multiple VSI's instead of constructing AQ call manually.
> 
> Add switch filter for allmulticast mode when vf-true-promisc-support is
> enabled. The same filter is added regardless of the flag - it doesn't matter for
> this case.
> 
> Remove unnecessary fields in switch structure. From now on book keeping
> will be done by ice_add_rule_internal().
> 
> Refactor unnecessarily passed function arguments.
> 
> To test:
> 1) Create 2 VM's, and two VF's. Attach VF's to VM's.
> 2) Enable promiscuous mode on both of them and check if
>    traffic is seen on both of them.
> 
> Fixes: 01b5e89aab49 ("ice: Add VF promiscuous support")
> Signed-off-by: Michal Wilczynski <michal.wilczynski@intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice.h          |   2 -
>  drivers/net/ethernet/intel/ice/ice_eswitch.c  |   8 +-
>  drivers/net/ethernet/intel/ice/ice_ethtool.c  |   2 +-
>  drivers/net/ethernet/intel/ice/ice_lib.c      |  67 ++++-----
>  drivers/net/ethernet/intel/ice/ice_lib.h      |   9 +-
>  drivers/net/ethernet/intel/ice/ice_main.c     |  14 +-
>  drivers/net/ethernet/intel/ice/ice_switch.c   | 134 +++++++++---------
>  drivers/net/ethernet/intel/ice/ice_switch.h   |   6 +-
>  drivers/net/ethernet/intel/ice/ice_type.h     |   4 -
>  drivers/net/ethernet/intel/ice/ice_vf_lib.c   |  10 +-
>  drivers/net/ethernet/intel/ice/ice_vf_lib.h   |   4 +-
>  drivers/net/ethernet/intel/ice/ice_virtchnl.c |  58 ++++----
>  12 files changed, 151 insertions(+), 167 deletions(-)
> 
> diff --git a/drivers/net/ethernet/intel/ice/ice.h
> b/drivers/net/ethernet/intel/ice/ice.h
> index 60453b3b8d23..d8d64914e413 100644
> --- a/drivers/net/ethernet/intel/ice/ice.h
> +++ b/drivers/net/ethernet/intel/ice/ice.h

Tested-by: Marek Szlosek <marek.szlosek@intel.com>


_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan@osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

  reply	other threads:[~2022-07-22 10:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-04 13:12 [Intel-wired-lan] [PATCH net v3 0/2] Improvements for default VSI filter handling Michal Wilczynski
2022-07-04 13:12 ` [Intel-wired-lan] [PATCH net v3 1/2] ice: Introduce enabling promiscuous mode on multiple VF's Michal Wilczynski
2022-07-22 10:27   ` Szlosek, Marek [this message]
2022-07-04 13:12 ` [Intel-wired-lan] [PATCH net v3 2/2] ice: Fix promiscuous mode not turning off Michal Wilczynski
2022-07-22 10:29   ` Szlosek, Marek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CY4PR11MB162405ABC9BEC5454D266A41E6909@CY4PR11MB1624.namprd11.prod.outlook.com \
    --to=marek.szlosek@intel.com \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=michal.wilczynski@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.