DPDK usage discussions
 help / color / mirror / Atom feed
From: Cody Doucette <doucette@bu.edu>
To: users@dpdk.org
Subject: [dpdk-users] VLAN offload on e1000 NIC
Date: Sat, 28 May 2016 19:54:59 -0400	[thread overview]
Message-ID: <CAJjX64aEgrPXBmBgGa4Nyq6UfWN=2yGvQneL0BMfMrcVVy80KQ@mail.gmail.com> (raw)

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

                 reply	other threads:[~2016-05-28 23:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJjX64aEgrPXBmBgGa4Nyq6UfWN=2yGvQneL0BMfMrcVVy80KQ@mail.gmail.com' \
    --to=doucette@bu.edu \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).