From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by dpdk.org (Postfix) with ESMTP id ABE03DE0 for ; Mon, 1 Dec 2014 23:07:15 +0100 (CET) Received: by mail-vc0-f180.google.com with SMTP id im6so5076421vcb.25 for ; Mon, 01 Dec 2014 14:07:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UBwOZB77bdTLK06kv11cAV3flF1SMyibTFhgumw4Hzs=; b=W8MeTExCIJA799yhTJoc+hdvutIostYr0AzQznqjpP2AJ1Z4+2qiQzhTwWVGSN78Q9 qDBcTWg405jDzI7g+Lm7KDrd5iDoBQgxlDYWfoJxjMNu1o2dJZ6VV3aEJ0EsFYeKSXDj UP/r6CDPw2Lp8TvTIdvDdupsAlqPuP6ZIFitSgDqEahCrFpBFl6ZfpokWYrBFMyB82JL gog2mc+SZRAEHk7gbpU5AR17SWCvr3KTDY/buPLtZLrfsjvohbqpKyvSUwPDM1uIMmL/ KHqi6b9guz1ctrp7aC01FCkWgfsRu9ZF/iKwE40EzYsNIbCZjIazHGIgF9ej8YMUS/Gq LF0Q== MIME-Version: 1.0 X-Received: by 10.220.187.8 with SMTP id cu8mr29841609vcb.31.1417471634826; Mon, 01 Dec 2014 14:07:14 -0800 (PST) Received: by 10.52.121.74 with HTTP; Mon, 1 Dec 2014 14:07:14 -0800 (PST) In-Reply-To: References: Date: Mon, 1 Dec 2014 14:07:14 -0800 Message-ID: From: Shiantung Wong To: "Zhu, Heqing" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Avoid stripping vlan tag with I350 VF on a VM 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: Mon, 01 Dec 2014 22:07:16 -0000 How do I do this on PF? On my VM, isn't only VF interface is visible, correct? Thanks for your reply, Shian-Tung On Mon, Dec 1, 2014 at 12:17 PM, Zhu, Heqing wrote: > Did you try to remove the VLAN strip on the PF side? > > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Shiantung Wong > Sent: Monday, December 01, 2014 11:29 AM > To: dev@dpdk.org > Subject: [dpdk-dev] Avoid stripping vlan tag with I350 VF on a VM > > My application running on a VM needs to deal with multiple VLANS on > packets received over I350 using Virtual Function. But I always see the > received packets without vlan tag. > This is my setup: > - host: 3.13.6-031306-generic > - QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1.7) > - guest: 2.6.32-358.el6.x86_64 > - dpdk: 1.6 > > And this is how I set up in the VM: > ------- > memset(&port_conf, 0, sizeof(port_conf)); > if (vlanCnt > 0) > port_conf.rxmode.hw_vlan_filter = 1; > > port_conf.rxmode.jumbo_frame = 1; > port_conf.rxmode.max_rx_pkt_len = 9018; > > ret = rte_eth_dev_configure(port, 1, 1, &port_conf); > if (ret < 0) { > rte_log(RTE_LOG_CRIT, RTE_LOGTYPE_EAL, "Error on config port%u, > ret=%d\n", > (unsigned)port, ret); > return -1; > } > > for(i = 0; i < vlanCnt; i++) { > ret = rte_eth_dev_vlan_filter(port, vlan[i], 1); > if (ret < 0) { > rte_log(RTE_LOG_CRIT, RTE_LOGTYPE_EAL, "Error on config > port%u, vlan%d ret=%d\n", > (unsigned)port, vlan[i], ret); > return -1; > } > } > ----- > > If I also try to explicitly disable the stripping with next, but get an > error return -ENOSUP. > > ret = rte_eth_dev_set_vlan_strip_on_queue(port, 0, 0); > > I appreciate anyone can help. on how to set it up. > > Thanks, > Shian Wong >