DPDK usage discussions
 help / color / mirror / Atom feed
From: Andrea Bigagli <andrea.bigagli@commprove.com>
To: users@dpdk.org
Subject: [dpdk-users] Device-agnostic VMDQ_DCB using only VLAN ID and PRIORITY, without MAC address tables
Date: Mon, 23 Oct 2017 16:30:42 +0200	[thread overview]
Message-ID: <9D0D360D-4828-4A0C-B3DE-36A59A400627@commprove.com> (raw)

Hi,
I’m in a non-virtualised environment where I have a dpdk-based receiver that needs to direct traffic to different RX queues based _ONLY_ on vlan’s VID and PCP (i.e. vlan_id and priority).
I can’t rely on any specific mac addresses/ranges that I know in advance to choose the RX queues and I cannot use VFs (max_vfs = 0 in the PMD).
If it makes any difference, I don’t need to TX anything, just receive traffic for monitoring purposes.

In the past (dpdk-16.11), since I was only working with ixgbe devices, I hacked my way around and invoked dev_ops->set_vf_rx_mode with "ETH_VMDQ_ACCEPT_HASH_UC | ETH_VMDQ_ACCEPT_BROADCAST | ETH_VMDQ_ACCEPT_MULTICAST” flags, which ultimately invoked ixgbe_set_pool_rx_mode in the PMD.

It seemed a bit of a kludge, but it has worked well.

Now I’m facing two problems: I’m going to start using also i40 devices and I’m going to upgrade to dpdk-17.08/17.11.

1) Latest DPDKs (since 17.02 IIRC) don’t have anymore a “set_vf_rx_mode” devop and the PMD has now a dedicated rte_pmd_ixgbe_set_vf_rxmode which would do what I want, but it now seems to force you to have VFs enabled, as it checks against max_vfs being > 0, which is not my case.

2) I’ve never used i40 before and I don’t even know where to start here.

I have seen a “rx_mode” flag variable inside the rte_eth_vmdq_rx_conf structure that is designed to be set with the ETH_VMDQ_ACCEPT_* flags that I was using when invoking directly the set_vf_rx_mode devop, but I can see it is only used when in VMDQ_ONLY and not in VMDQ_DCB.

So, to summarise, I don’t use VFs and I don’t have any control / prior knowledge on mac addresses, but I’d like to perform VMDQ_DCB multi queue RX using only vlan’s VID and PCP on at least ixgbe and i40 PMDs, with latest DPDK.
Is there a supported and device-agnostic way to do that?

                 reply	other threads:[~2017-10-23 14:30 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=9D0D360D-4828-4A0C-B3DE-36A59A400627@commprove.com \
    --to=andrea.bigagli@commprove.com \
    --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).