[Intel-wired-lan] [PATCH] [v2, dev-queue]i40e: Add support for switchdev API for Switch ID
Bowers, AndrewX
andrewx.bowers at intel.com
Mon Aug 29 22:26:56 UTC 2016
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Amritha Nambiar
> Sent: Monday, August 29, 2016 1:44 PM
> To: Samudrala, Sridhar <sridhar.samudrala at intel.com>; intel-wired-
> lan at lists.osuosl.org; Nambiar, Amritha <amritha.nambiar at intel.com>
> Subject: [Intel-wired-lan] [PATCH] [v2, dev-queue]i40e: Add support for
> switchdev API for Switch ID
>
> This patch adds support for switchdev ops on the VF Port representors and
> the PF uplink, the only operation implemented is the port attribute API to get
> the port parent ID or the switch ID. The switch ID is used to identify the
> net_devices attached to the same HW switch.
>
> The switch ID returned for the VF Port representors and the PF uplink is the
> phys_port_id.
>
> # ip -d a
> 102: enp9s0f0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN
> group default qlen 1000
> link/ether 68:05:ca:35:77:50 brd ff:ff:ff:ff:ff:ff promiscuity 0 numtxqueues
> 64 numrxqueues 64 portid 6805ca357750 switchid 6805ca357750
> vf 0 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
> vf 1 MAC 00:00:00:00:00:00, spoof checking on, link-state auto
> 103: enp9s0f1: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN
> group default qlen 1000
> link/ether 68:05:ca:35:77:51 brd ff:ff:ff:ff:ff:ff promiscuity 0 numtxqueues
> 64 numrxqueues 64 portid 6805ca357751 switchid 6805ca357751
> 104: enp9s0f0-vf0: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel state
> DOWN group default qlen 1000
> link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff promiscuity 0 numtxqueues 1
> numrxqueues 1 switchid 6805ca357750
> 105: enp9s0f0-vf1: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel state
> DOWN group default qlen 1000
> link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff promiscuity 0 numtxqueues 1
> numrxqueues 1 switchid 6805ca357750
> inet6 fe80::200:ff:fe00:0/64 scope link tentative
> valid_lft forever preferred_lft forever
>
> Signed-off-by: Amritha Nambiar <amritha.nambiar at intel.com>
>
> v2: Resubmitting this patch to base on top of v3 of Sridhar's patch series for
> VF Port representor support for SR-IOV VFs on i40e.
> There are no changes from the previous version of patch submitted for this.
> ---
> drivers/net/ethernet/intel/i40e/i40e.h | 1
> drivers/net/ethernet/intel/i40e/i40e_main.c | 17 ++++++
> drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 57
> ++++++++++++++++++++
> drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h | 2 +
> 4 files changed, 77 insertions(+)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list