DPDK usage discussions
 help / color / mirror / Atom feed
From: "changchun.zhang@oracle.com" <changchun.zhang@oracle.com>
To: users@dpdk.org, cingular.alex@gmail.com
Subject: [dpdk-users] How does Intel I350 support RSS for double VLAN (QinQ)?
Date: Fri, 1 May 2020 21:20:30 +0000 (UTC)	[thread overview]
Message-ID: <174fe8bd-4b66-7e6b-c45e-32326f9b2b4a@oracle.com> (raw)

Hi,

Does anyone know how to support the RSS for receiving packets with 
double VLAN or QinQ vlan (0x88A8), for I350 NIC card?
In the I350 datasheet, it is mentioned:

7.4.5
A packet is defined as a VLAN/802.1q packet if its type field matches 
the VET.
Double VLAN Support
The I350 supports a mode where most of the received and sent packet have 
at least one VLAN tag in
addition to the regular tagging which might optionally be added. This 
mode is used for systems where
the switches add an additional tag containing switching information.
Note:
The only packets that may not have the additional VLAN are local packets 
that will not have
any VLAN tag.
This mode is activated by setting CTRL_EXT.EXT_VLAN bit. The default 
value of this bit is set according
to the EXT_VLAN (bit 1) in the Initialization Control 3 EEPROM word for 
ports 0 to 3. See Section 6.2.26
for more information.
The type of the VLAN tag used for the additional VLAN is defined in the 
VET.VET_EXT field.

Based on above, I can use the
rte_eth_dev_set_vlan_offload(port_id, ETH_VLAN_EXTEND_OFFLOAD)
and
rte_eth_dev_set_vlan_ether_type(port_id, ETH_VLAN_TYPE_OUTER, 0x88A8)
to set the vlan extend offload and the corresponding eth type successfully.

But the RSS still does not work for QinQ traffic.

Can anyone have some input?

Thanks,

             reply	other threads:[~2020-05-04 17:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-01 21:20 changchun.zhang [this message]
2020-05-01 21:22 ` Alex Zhang

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=174fe8bd-4b66-7e6b-c45e-32326f9b2b4a@oracle.com \
    --to=changchun.zhang@oracle.com \
    --cc=cingular.alex@gmail.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).