From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0078.outbound.protection.outlook.com [104.47.37.78]) by dpdk.org (Postfix) with ESMTP id 3B7156C9E for ; Sat, 20 Aug 2016 01:23:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=SonusNetworks.onmicrosoft.com; s=selector1-sonusnet-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=xLwEwTl2dpKlU8zYghrT6N1KwUS43KUH6uKLH4XErU8=; b=fHyp77SRm/fjT6uxDydZO9OduJJdJ5JtnQkGlopy83mGjeF50DIrjv1r2qzROBXmGGspwxUDBivt7CwmT18y4bUDJ7GFxIQquivFyLVE1fTvEg16OmdnX/P/JKcBBtiQcJH+gTExG4yjeTgbJ4JYr/CI1XboHe+DjIBt6srYN4w= Received: from BN3PR0301MB1202.namprd03.prod.outlook.com (10.161.207.155) by BN3PR0301MB1202.namprd03.prod.outlook.com (10.161.207.155) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.557.21; Fri, 19 Aug 2016 23:23:02 +0000 Received: from BN3PR0301MB1202.namprd03.prod.outlook.com ([10.161.207.155]) by BN3PR0301MB1202.namprd03.prod.outlook.com ([10.161.207.155]) with mapi id 15.01.0557.022; Fri, 19 Aug 2016 23:23:02 +0000 From: "Dey, Souvik" To: "Lu, Wenzhuo" , "dev@dpdk.org" Thread-Topic: VLAN with ixgbevf pmd Thread-Index: AdH5Xl4vmYNG2NRsT5KPeDgeMEN2CwAUiwEgAC/1/CA= Date: Fri, 19 Aug 2016 23:23:01 +0000 Message-ID: References: <6A0DE07E22DDAD4C9103DF62FEBC09090349C019@shsmsx102.ccr.corp.intel.com> In-Reply-To: <6A0DE07E22DDAD4C9103DF62FEBC09090349C019@shsmsx102.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=sodey@sonusnet.com; x-originating-ip: [73.114.32.127] x-ms-office365-filtering-correlation-id: 06a7a8a5-7720-4ee1-7bce-08d3c887c3f1 x-microsoft-exchange-diagnostics: 1; BN3PR0301MB1202; 6:DPYYItOxia8tcpioAAJ0CnlylGjYCSxhB1TfJpBVTCwFwEGpA9KgCgLDcScbAiwVXVZ5mMEFiBNb/AYwxyP+anEJBDWwD7rLAp7+0bgUHgUeNH3pWQE95c5RK9J1OJaT5aPX5z5eawbMXI0q4p0YhWcPXYlwWVrjtD+Q0SHNZ64PPNT+qSjjZz3Lubtz94MXtmWOMkPDSUZEx4KTJqGdg7sn3k8FyAZRYIraAdlF+Y/jAEmVqONUH5BxuhRtAbHGpeW8zLHfeyz1R2JY5ToXwiGr04sC8VQxbFsKD3xrGCc=; 5:3dNSDOkYi0OUL52FLKy1iKxlRf2ZiWC8ew2oxcKC83O87O3MDkbGWl3yt+SXaNDBrGrpzjP+qky9dLgn65ii+itEyjz73jHsbn3+Iy7bsKUuhI731JlIymCbfJMLho/SNIiT598mmzemzuH9h1vD1g==; 24:XSbLBL3MqpHgAPSFtb/QNauyjF+CW0l3qlUKwouFQoFZtbK34YopaDvbw+UAqrl2+Ueh3Zo3BGrmYdNtzKyB6oZZCRTUjmMAhH8jyzc1GbI=; 7:tvxmJHZnzrU59bUfuCwMa7pkEpIO1nL24vB+EIcSS2AlB9SlLXRNR/hWDP+f3JPGUHfeZj9tXnm05ZCG/auEQizrH+bWq/BiEheZ5NFfhQVnWcWBvh8r9p9fMRFc3e6lhhrbFahCQf3A5QkO55zGIRCJdUqjIcCwRd6S5CWdTMa1753As/dvPtt6UGzJVyfpPaRai7taaXd+kuhh/dWukRT4JHKvZgEVu0VGYyS5JcabZJW9ewpDfrn/RgBUOT6+ x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB1202; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(158342451672863)(21748063052155)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:BN3PR0301MB1202; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0301MB1202; x-forefront-prvs: 0039C6E5C5 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(7916002)(57704003)(13464003)(199003)(377454003)(189002)(2906002)(81156014)(106356001)(105586002)(5001770100001)(107886002)(99286002)(101416001)(19300405004)(97736004)(9686002)(87936001)(76176999)(11100500001)(68736007)(5002640100001)(92566002)(3660700001)(54356999)(50986999)(33656002)(76576001)(86362001)(2900100001)(19580395003)(2950100001)(8676002)(19580405001)(81166006)(16236675004)(19625215002)(3280700002)(586003)(3846002)(10400500002)(102836003)(6116002)(790700001)(7736002)(8936002)(7846002)(189998001)(7696003)(74316002)(9326002)(3480700004)(77096005)(2501003)(15975445007)(122556002)(66066001)(5660300001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0301MB1202; H:BN3PR0301MB1202.namprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: sonusnet.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: sonusnet.com X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Aug 2016 23:23:01.8922 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 29a671dc-ed7e-4a54-b1e5-8da1eb495dc3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0301MB1202 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] VLAN with ixgbevf pmd 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, 19 Aug 2016 23:23:05 -0000 Hi Lu, I already have the hw_vlan_filter set to 0 to disable it in t= he port_conf . struct rte_eth_conf port_conf =3D { .rxmode =3D { .split_hdr_size =3D 0, .header_split =3D 0, /**< Header Split disabled */ .hw_ip_checksum =3D 0, /**< IP checksum offload disabled */ .hw_vlan_filter =3D 0, /**< VLAN filtering disabled */ .jumbo_frame =3D 0, /**< Jumbo Frame Support disabled */ .hw_strip_crc =3D 0, /**< CRC stripped by hardware */ }, .txmode =3D { .mq_mode =3D ETH_MQ_TX_NONE, }, .intr_conf =3D { .lsc =3D 0, /**< lsc interrupt feature enabled */ }, #if 0 .rx_adv_conf =3D { .rss_conf =3D { .rss_key =3D NULL, .rss_hf =3D ETH_RSS_IPV4 | ETH_RSS_IPV6, }, } #endif }; Interestingly the same setup works fine with vlan without Dpdk. Any other s= uggestions ? -- Regards, Souvik -----Original Message----- From: Lu, Wenzhuo [mailto:wenzhuo.lu@intel.com] Sent: Thursday, August 18, 2016 8:33 PM To: Dey, Souvik ; dev@dpdk.org Subject: RE: VLAN with ixgbevf pmd Hi Souvik, Take testpmd for example, normally we should disable HW vlan filter by addi= ng parameter " --disable-hw-vlan-filter " or CLI " port config all hw-vlan-= filter off". Hope it can help :) Best regards Wenzhuo Lu > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Dey, Souvik > Sent: Thursday, August 18, 2016 10:47 PM > To: dev@dpdk.org > Subject: [dpdk-dev] VLAN with ixgbevf pmd > > Hi, > > > > I am trying to get tagged packets to work in SRIOV mode. I am using > dpdk 2.1 version with an application on KVM. > > The setup is as below: The same configuration works for untagged packets= . > > Guest VM (Virtual Function/Created tagged kni interfaces)--- > KVM > host (PF/no tag on the VF ) -->Client server > > When the packet is tagged (vlan tag/id) the packet is sent from kni > interface to the application is it received with the tag and is also > sent out to the pmd. But the packets does not go out of the host. > Neither any tagged packets are coming in from out to the application. The= ol_flags is set to 0 in my application. > > Can someone let me know what I am missing? Do we need to do some > specific configuration on the rx or tx ports for this ? Does the vlan > id configured on the kni gets peculated down to the vf of the host too wh= ich is causing the issue ? > > > > Any help would be highly appreciated! > > > > -- > > Regards, > > Souvik