From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay54.bu.edu (relay54.bu.edu [128.197.228.14]) by dpdk.org (Postfix) with ESMTP id EDE692C31 for ; Sun, 29 May 2016 01:55:33 +0200 (CEST) X-Envelope-From: doucette@bu.edu Received: from mail-yw0-f200.google.com (mail-yw0-f200.google.com [209.85.161.200]) by relay54.bu.edu (8.14.3/8.14.3) with ESMTP id u4SNsxI4031643 for ; Sat, 28 May 2016 19:54:59 -0400 Received: by mail-yw0-f200.google.com with SMTP id y6so355804354ywe.0 for ; Sat, 28 May 2016 16:54:59 -0700 (PDT) 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; bh=/QhPVzkdejzf5kGazgm5xKn/WywxcHwFJ2CWdVbeEyI=; b=YQeBAlmo0ASFqfdUothG2r6EHh+XnRazb1cqLWr/hYhx8ik4d4G2Kxj5528CyGyTGT R3Ocn0IkTArd03cabWDhoAI633h2azjsYMiFcCnNt0lxn+ZKDUKWMosUVJIGWAEjrzv+ IZsNRuiiSNOMidXV7RtuyB2/+8jGn5BRh3P279bi8FL18Mf/18h+DvLz/ELvgy/nAWUj vtgXarwYUFLePSPasbHgv322vpBNXLV2WIlHPF/Q5XPOnaAh4ZcoMNUuGKy+H2bk+bo9 i4KPJ/JKp2aMZhnaUuGWXIZOfvRa5ILvT3o5YfT4TUngubmivkJzNuUsMm3vSQ5NTfmw Tdpw== X-Gm-Message-State: ALyK8tIe3vd5NoNNneJIsVWHDZJroQF8CkQAMnjdSigfgmP/cy1emwm9mDPrwvot/IYBbuEa4qQ9OmW07hc9aDD3Q55oVMIHKUgEnaOzssBvz1K4suWJqsfSn+ZZPA4xaroxNeFT6Xm3DmpbIQ== X-Received: by 10.31.51.11 with SMTP id z11mr11785997vkz.150.1464479699516; Sat, 28 May 2016 16:54:59 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.31.51.11 with SMTP id z11mr11785989vkz.150.1464479699211; Sat, 28 May 2016 16:54:59 -0700 (PDT) Received: by 10.103.122.6 with HTTP; Sat, 28 May 2016 16:54:59 -0700 (PDT) Date: Sat, 28 May 2016 19:54:59 -0400 Message-ID: From: Cody Doucette To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] VLAN offload on e1000 NIC X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 May 2016 23:55:34 -0000 I'm trying to use DPDK to disable VLAN (802.1q) hardware offloading on an Intel PRO/1000 MT Desktop (82540EM) adapter, but haven't been able to do so. My setup is an Ubuntu 16.04 host running an Ubuntu 14.04 VM (using Vagrant/VirtualBox). I have three host-only adapters that connect the host and the VM, and on the VM eth1 and eth2 are DPDK-bound and eth3 is kernel-bound. All are using separate 82540EM adapters. I'm generating VLAN packets on the host using ostinato and sending them to the VM. The kernel-bound interface receives the packet with the VLAN header intact, but the DPDK interfaces seem to strip the VLAN. I've tried disabling the VLAN stripping with the rxmode configuration in a call to rte_eth_dev_configure(), and I've also tried disabling it with a call to rte_eth_dev_set_vlan_offload(). Neither seem to work. When I call rte_eth_dev_get_vlan_offload() to see how the device is configured, I always get the value 0 -- before trying to disable offloading and after trying to disable it. Something's not adding up for me here -- why is the VLAN offload status 0 (instead of one of the ETH_VLAN_*_OFFLOAD flags), but the VLAN tag is removed? Perhaps I have misunderstood something about this kind of NIC or how to configure it. Thanks in advance for any help! Best, Cody