* [dpdk-dev] multiple VLAN IDs for SR-IOV ports
@ 2014-01-30 6:45 James Yu
2014-02-01 17:13 ` Jose Gavine Cueto
0 siblings, 1 reply; 4+ messages in thread
From: James Yu @ 2014-01-30 6:45 UTC (permalink / raw)
To: dev
Any one know what commands to use on the KVM host to add multiple VLAN IDs
to a SR-IOV port ?
I could only add one VLAN ID using
ip link set ethN vf NUM vlan VLANID
Also do I have to call any routine on the DPDK side to add those VIDs ?
James
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] multiple VLAN IDs for SR-IOV ports
2014-01-30 6:45 [dpdk-dev] multiple VLAN IDs for SR-IOV ports James Yu
@ 2014-02-01 17:13 ` Jose Gavine Cueto
2014-02-03 6:53 ` James Yu
0 siblings, 1 reply; 4+ messages in thread
From: Jose Gavine Cueto @ 2014-02-01 17:13 UTC (permalink / raw)
To: James Yu; +Cc: dev
hi,
On Thu, Jan 30, 2014 at 2:45 PM, James Yu <ypyu2011@gmail.com> wrote:
> Any one know what commands to use on the KVM host to add multiple VLAN IDs
> to a SR-IOV port ?
>
> I could only add one VLAN ID using
>
> ip link set ethN vf NUM vlan VLANID
>
What do you mean by "multiple VLAN IDs" ? ethN and vf NUM here let's you
add more than one vlan id.
>
> Also do I have to call any routine on the DPDK side to add those VIDs ?
>
> James
>
--
To stop learning is like to stop loving.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] multiple VLAN IDs for SR-IOV ports
2014-02-01 17:13 ` Jose Gavine Cueto
@ 2014-02-03 6:53 ` James Yu
2014-02-04 0:09 ` Patel, Rashmin N
0 siblings, 1 reply; 4+ messages in thread
From: James Yu @ 2014-02-03 6:53 UTC (permalink / raw)
To: Jose Gavine Cueto; +Cc: dev
Patel,
I can use the following command to add one VLAN with VID of 3 to VF 0 of
eth6
ip link set eth6 vf 0 vlan 3
Could you show me an example of adding 2 VLAN IDs such as VID of 3 and 13
to the same VF 0 ? I want VF 0 to pass traffic from VLAN 3 and 13. How do I
do that ?
>From the man page of ip, I do not see it describes about adding more than
one VLAN IDs to the same VF port.
Can I use this ?
ip link set eth6 vf0 vlan 3,13
Thanks
James
On Sat, Feb 1, 2014 at 9:13 AM, Jose Gavine Cueto <pepedocs@gmail.com>wrote:
> hi,
>
>
> On Thu, Jan 30, 2014 at 2:45 PM, James Yu <ypyu2011@gmail.com> wrote:
>
>> Any one know what commands to use on the KVM host to add multiple VLAN IDs
>> to a SR-IOV port ?
>>
>> I could only add one VLAN ID using
>>
>> ip link set ethN vf NUM vlan VLANID
>>
>
> What do you mean by "multiple VLAN IDs" ? ethN and vf NUM here let's you
> add more than one vlan id.
>
>
>>
>> Also do I have to call any routine on the DPDK side to add those VIDs ?
>>
>> James
>>
>
>
>
> --
> To stop learning is like to stop loving.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dpdk-dev] multiple VLAN IDs for SR-IOV ports
2014-02-03 6:53 ` James Yu
@ 2014-02-04 0:09 ` Patel, Rashmin N
0 siblings, 0 replies; 4+ messages in thread
From: Patel, Rashmin N @ 2014-02-04 0:09 UTC (permalink / raw)
To: James Yu, Jose Gavine Cueto; +Cc: dev
I haven't checked it with ip tool. But I just verified from the Niantic specs, and I see PFVLVF[64] and PFVLVFB[128] - 32 bit register arrays to configure VLAN-Pool/VF mapping.
PFVLVF[i] holds a vlan_id need to be mapped
PFVLVFB[2i] and PFVLVFB[2i+1] holds bitmap for max possible pools (64 bits) to map any of those pools to the PFVLVF[i].vlan_id
So technically you should be able to map it, the only thing I'm not sure if it's supported with ip tool or not.
If you quickly want to check it out, you can just write those registers through PCI bar.
Thanks,
Rashmin
-----Original Message-----
From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of James Yu
Sent: Sunday, February 02, 2014 11:53 PM
To: Jose Gavine Cueto
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] multiple VLAN IDs for SR-IOV ports
Patel,
I can use the following command to add one VLAN with VID of 3 to VF 0 of
eth6
ip link set eth6 vf 0 vlan 3
Could you show me an example of adding 2 VLAN IDs such as VID of 3 and 13 to the same VF 0 ? I want VF 0 to pass traffic from VLAN 3 and 13. How do I do that ?
>From the man page of ip, I do not see it describes about adding more than one VLAN IDs to the same VF port.
Can I use this ?
ip link set eth6 vf0 vlan 3,13
Thanks
James
On Sat, Feb 1, 2014 at 9:13 AM, Jose Gavine Cueto <pepedocs@gmail.com>wrote:
> hi,
>
>
> On Thu, Jan 30, 2014 at 2:45 PM, James Yu <ypyu2011@gmail.com> wrote:
>
>> Any one know what commands to use on the KVM host to add multiple
>> VLAN IDs to a SR-IOV port ?
>>
>> I could only add one VLAN ID using
>>
>> ip link set ethN vf NUM vlan VLANID
>>
>
> What do you mean by "multiple VLAN IDs" ? ethN and vf NUM here let's
> you add more than one vlan id.
>
>
>>
>> Also do I have to call any routine on the DPDK side to add those VIDs ?
>>
>> James
>>
>
>
>
> --
> To stop learning is like to stop loving.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-02-04 0:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-30 6:45 [dpdk-dev] multiple VLAN IDs for SR-IOV ports James Yu
2014-02-01 17:13 ` Jose Gavine Cueto
2014-02-03 6:53 ` James Yu
2014-02-04 0:09 ` Patel, Rashmin N
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).