From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by dpdk.org (Postfix) with ESMTP id 6DB4C9A8 for ; Sun, 30 Nov 2014 16:56:10 +0100 (CET) Received: by mail-oi0-f45.google.com with SMTP id a141so6406119oig.18 for ; Sun, 30 Nov 2014 07:55:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=oznHJ+AL+FGy1AxGO1suL8yfLaiFXoCHT1+1UWpy3xg=; b=E2KA9x414vfoIg8LPRnofHxpxPvhxC8QpqMLkKuocVwznWfsVXyVFXNHr/e5V1KXmu UlJpgsV2jFM5O0wYmQLjCgzJkHWQDwGlXgm3Nj7Ozh4Q1qrWus9eH2Yg7zlD/4Nd8NCe Kycn3CS4zooLUfNRi3apG3ktC8oKcWhKFQ2Ik5lYj/YCtYnAjoWgm00sFQywqP3u7DdX ZxJrwa+iJxxkmQ3+otUt+ESx1fhtddpgNHk8rNZEhHwvg5p2zM5DOAVhXUmKACkIygN9 q/C9NwTEdlfqfFgLHqEAIY/xVMOejgs/y5TN11qIwDcSpvwS55rlB3mlujqfNDyFuNSC WSyw== X-Gm-Message-State: ALoCoQnVCiGVTbX53Xb0VMF1RDOtvLJPJg8CHzjVlikQ5GDtucg3AeM7SBIEZUHkEKh1/YE+91WD MIME-Version: 1.0 X-Received: by 10.182.66.72 with SMTP id d8mr22494385obt.43.1417362954633; Sun, 30 Nov 2014 07:55:54 -0800 (PST) Received: by 10.76.123.81 with HTTP; Sun, 30 Nov 2014 07:55:54 -0800 (PST) Date: Sun, 30 Nov 2014 07:55:54 -0800 Message-ID: From: Shian-Tung Wong To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Avoid vlan tag stripped with I350 VF on 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: Sun, 30 Nov 2014 15:56:10 -0000 My application 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 - 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