From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [58.251.152.64]) by dpdk.org (Postfix) with ESMTP id 7EB462934; Fri, 4 Nov 2016 03:51:39 +0100 (CET) Received: from 172.24.1.36 (EHLO nkgeml414-hub.china.huawei.com) ([172.24.1.36]) by szxrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DUN30275; Fri, 04 Nov 2016 10:51:34 +0800 (CST) Received: from NKGEML514-MBX.china.huawei.com ([fe80::40a8:f0d:c0f3:2ca5]) by nkgeml414-hub.china.huawei.com ([10.98.56.75]) with mapi id 14.03.0235.001; Fri, 4 Nov 2016 10:51:07 +0800 From: Caianning To: "users@dpdk.org" , "dev@dpdk.org" Thread-Topic: HOW to forward vlan pkt using DPDK loadbalancer and L2FD, with intel 82599ES Thread-Index: AdI2RQRYr/qTPuoYReakg0WBK4ABaw== Date: Fri, 4 Nov 2016 02:51:07 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.111.146.139] MIME-Version: 1.0 X-CFilter-Loop: Reflected Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] HOW to forward vlan pkt using DPDK loadbalancer and L2FD, with intel 82599ES 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: Fri, 04 Nov 2016 02:51:41 -0000 HI, I am using DPDK 16.07 example loadbalancer to as LB to forward vla= n pkt to applications. LB and applications are using VFs bound with DPDK ig= b_uio driver. But I found the packet can not be send from LB to application. Pkt input to= LB with vlan, after LB processing it is sent out to application using anot= her VF. As 82599 need vlan filters if we use VF to process vlan pkts, in the LB we = called rte api to add a vlan filter and enable vlan flilter. And set port_c= onf with vlan strip off. And for the application(L2FWD) we use the cmd: ip link set PFxxx VF yy vlan= VLANID. In the LB ,we can receive pkts with vlan, after processing(cut the head and= add another L2 head with same vlan tag, set destination MAC to application= VF), it is send out to the application VF. the result is: LB can still processing ,but all the pkt post. We also did an experiment using testPMD to forward vlan pkt to application = on the same VF used by LB, and it is OK. We tried kinds of different set of vlan filter, vlan strip, ip link set, bu= t found no solution. Does anyone meet the similar problem? And what factor casued the difference= ? Thx.