From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 2A2816890 for ; Tue, 4 Feb 2014 01:08:28 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 03 Feb 2014 16:05:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.95,775,1384329600"; d="scan'208";a="449227868" Received: from fmsmsx107.amr.corp.intel.com ([10.19.9.54]) by orsmga001.jf.intel.com with ESMTP; 03 Feb 2014 16:09:48 -0800 Received: from fmsmsx105.amr.corp.intel.com ([169.254.5.111]) by FMSMSX107.amr.corp.intel.com ([169.254.9.244]) with mapi id 14.03.0123.003; Mon, 3 Feb 2014 16:09:47 -0800 From: "Patel, Rashmin N" To: James Yu , Jose Gavine Cueto Thread-Topic: [dpdk-dev] multiple VLAN IDs for SR-IOV ports Thread-Index: AQHPIKybGwr6BrcHSUms+Lt91IWDopqkMtwQ Date: Tue, 4 Feb 2014 00:09:47 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.1.200.107] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] multiple VLAN IDs for SR-IOV ports X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Feb 2014 00:08:29 -0000 I haven't checked it with ip tool. But I just verified from the Niantic spe= cs, and I see PFVLVF[64] and PFVLVFB[128] - 32 bit register arrays to confi= gure 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 thr= ough 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 t= o 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 o= ne 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 wrote= : > hi, > > > On Thu, Jan 30, 2014 at 2:45 PM, James Yu wrote: > >> Any one know what commands to use on the KVM host to add multiple=20 >> 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=20 > 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. >