DPDK usage discussions
 help / color / Atom feed
* [dpdk-users] How does Intel I350 support RSS for double VLAN (QinQ)?
@ 2020-05-01 21:20 changchun.zhang
  2020-05-01 21:22 ` Alex Zhang
  0 siblings, 1 reply; 2+ messages in thread
From: changchun.zhang @ 2020-05-01 21:20 UTC (permalink / raw)
  To: users, cingular.alex

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,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-users] How does Intel I350 support RSS for double VLAN (QinQ)?
  2020-05-01 21:20 [dpdk-users] How does Intel I350 support RSS for double VLAN (QinQ)? changchun.zhang
@ 2020-05-01 21:22 ` Alex Zhang
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Zhang @ 2020-05-01 21:22 UTC (permalink / raw)
  To: changchun.zhang; +Cc: users

> 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,
>


-- 

Alex,

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-01 21:20 [dpdk-users] How does Intel I350 support RSS for double VLAN (QinQ)? changchun.zhang
2020-05-01 21:22 ` Alex Zhang

DPDK usage discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


AGPL code for this site: git clone https://public-inbox.org/ public-inbox