From: "Samudrala, Sridhar" <sridhar.samudrala@intel.com>
To: Jeff Kirsher <jeffrey.t.kirsher@intel.com>,
alexander.h.duyck@intel.com, john.r.fastabend@intel.com,
anjali.singhai@intel.com, jakub.kicinski@netronome.com,
davem@davemloft.net, intel-wired-lan@lists.osuosl.org,
netdev@vger.kernel.org
Subject: Re: [Intel-wired-lan] [net-next PATCH v2 2/6] i40e: Introduce VF Port Representator(VFPR) netdevs.
Date: Thu, 05 Jan 2017 16:42:04 -0800 [thread overview]
Message-ID: <586EE7DC.4000204@intel.com> (raw)
In-Reply-To: <1483652771.25700.41.camel@intel.com>
On 1/5/2017 1:46 PM, Jeff Kirsher wrote:
> On Tue, 2017-01-03 at 10:07 -0800, Sridhar Samudrala wrote:
>> VF Port Representator netdevs are created for each VF if the switch mode
>> is set to 'switchdev'. These netdevs can be used to control and configure
>> VFs from PFs namespace. They enable exposing VF statistics, configure and
>> monitor link state, mtu, filters, fdb/vlan entries etc. of VFs.
>> Broadcast filters are not enabled in switchdev mode.
>>
>> Sample script to create VF port representors
>> # rmmod i40e; modprobe i40e
>> # devlink dev eswitch set pci/0000:05:00.0 mode switchdev
>> # echo 2 > /sys/class/net/enp5s0f0/device/sriov_numvfs
>> # ip l show
>> 297: enp5s0f0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop portid
>> 6805ca2e7268 state DOWN mode DEFAULT group default qlen 1000
>> link/ether 68:05:ca:2e:72:68 brd ff:ff:ff:ff:ff:ff
>> vf 0 MAC 00:00:00:00:00:00, spoof checking on, link-state auto,
>> trust off
>> vf 1 MAC 00:00:00:00:00:00, spoof checking on, link-state auto,
>> trust off
>> 299: enp5s0f0-vf0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
>> mode DEFAULT group default qlen 1000
>> link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
>> 300: enp5s0f0-vf1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
>> mode DEFAULT group default qlen 1000
>> link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
>>
>> Signed-off-by: Sridhar Samudrala <sridhar.samudrala@intel.com>
>> ---
>> drivers/net/ethernet/intel/i40e/i40e_main.c | 21 ++-
>> drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 154
>> ++++++++++++++++++++-
>> drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h | 14 ++
>> 3 files changed, 182 insertions(+), 7 deletions(-)
> This does not apply cleanly because it is based on an older version of
> i40e_virtchnl_pf.c file. It appears that i40e has been updated to use
> "i40e_add_filter()" yet your patch still uses "i40e_add_mac_filter()".
I am not using i40e_add_mac_filter() in my patches. I only i40e_add_filter()
These patches are against davem's net-next kernel
>
> We need to clarify what the "right way" is to add filters and use the
> correct function.
>
> Dropping this series and will await v3, please address the other feedback
> from Or Gerlitz and Jiri Pirko as well in your updated series.
Sure. I will be submitting a v3 soon addressing the review comments.
next prev parent reply other threads:[~2017-01-06 0:42 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-03 18:07 [net-next PATCH v2 0/6] i40e: Add VF Port representator support for SR-IOV VFs Sridhar Samudrala
2017-01-03 18:07 ` [net-next PATCH v2 1/6] i40e: Introduce devlink interface Sridhar Samudrala
2017-01-03 18:07 ` [net-next PATCH v2 2/6] i40e: Introduce VF Port Representator(VFPR) netdevs Sridhar Samudrala
2017-01-05 12:44 ` Jiri Pirko
2017-01-05 21:46 ` [Intel-wired-lan] " Jeff Kirsher
2017-01-06 0:42 ` Samudrala, Sridhar [this message]
2017-01-03 18:07 ` [net-next PATCH v2 3/6] i40e: Sync link state between VFs and VFPRs Sridhar Samudrala
2017-01-03 18:07 ` [net-next PATCH v2 5/6] i40e: Add TX and RX support in switchdev mode Sridhar Samudrala
2017-01-05 12:08 ` Or Gerlitz
2017-01-05 16:33 ` Jakub Kicinski
2017-01-05 12:56 ` Jiri Pirko
2017-01-06 0:27 ` Samudrala, Sridhar
2017-01-06 17:30 ` Jiri Pirko
2017-01-06 19:08 ` Jakub Kicinski
2017-01-07 8:27 ` Jiri Pirko
2017-01-03 18:07 ` [net-next PATCH v2 6/6] i40e: Add support for exposing VF port statistics via VFPR netdev on the host Sridhar Samudrala
2017-01-03 19:48 ` [net-next PATCH v2 0/6] i40e: Add VF Port representator support for SR-IOV VFs Or Gerlitz
2017-01-03 20:04 ` [Intel-wired-lan] " Alexander Duyck
2017-01-03 20:24 ` Samudrala, Sridhar
2017-01-03 20:45 ` Jakub Kicinski
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=586EE7DC.4000204@intel.com \
--to=sridhar.samudrala@intel.com \
--cc=alexander.h.duyck@intel.com \
--cc=anjali.singhai@intel.com \
--cc=davem@davemloft.net \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jakub.kicinski@netronome.com \
--cc=jeffrey.t.kirsher@intel.com \
--cc=john.r.fastabend@intel.com \
--cc=netdev@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).