DPDK patches and discussions
 help / color / mirror / Atom feed
* question about eth and vlan item in flow pattern
@ 2024-04-10 11:37 Jie Hai
  2024-04-10 12:33 ` Thomas Monjalon
  2024-04-10 13:19 ` Ivan Malov
  0 siblings, 2 replies; 8+ messages in thread
From: Jie Hai @ 2024-04-10 11:37 UTC (permalink / raw)
  To: Yuying Zhang, Aman Singh, Thomas Monjalon,
	ferruh.yigit@amd.com >> Ferruh Yigit, andrew.rybchenko,
	ivan.malov, dekelp, psatheesh, adrien.mazarguil, fengchengwen,
	Huisong Li, Dengdui Huang
  Cc: dev

Hi, all,

I have some questions about the sub-options for ``VLAN`` and ``ETH`` item.

According to the documentation, ``has_vlan`` is sub-option of ``ETH``
item and it means that the pattern contains at least one vlan.
The ``VLAN`` item is used to match tagged packets and have some
sub-options such as ``vid``, ``tci``, etc.

If we combine them, what should the effect be?
For instance,

rule-0: flow create 0 ingress pattern  eth  has_vlan is 1 / vlan  / end 
actions queue index 2 / end
rule-1: flow create 0 ingress pattern  eth  has_vlan is 1 / vlan vid is 
10 / end actions queue index 2 / end

For rule-0, should it match single-tagged packets only or multi-tagged 
only or both?
That is to say, which one will take effect, `has_vlan is 1`  or `vlan` 
or both?

For rule-2, which packets should it match, with inner VLAN id 10, or 
outer VLAN id 10, or both 10?

The hns3 driver supports only the exact matching of VLAN numer.
And it is planned to adapt ``has_vlan`` and ``has_more_vlan`` to the
meaning of one VLAN for hns3 driver. Therefore, if the preceding 
combinations are supported, we need to confirm the exact meanings.

So, what are your views on the above question?




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

end of thread, other threads:[~2024-05-13  1:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-10 11:37 question about eth and vlan item in flow pattern Jie Hai
2024-04-10 12:33 ` Thomas Monjalon
2024-04-10 13:19 ` Ivan Malov
2024-04-23  9:34   ` Jie Hai
2024-04-23 11:44     ` Ivan Malov
2024-04-24 20:21       ` Dariusz Sosnowski
2024-04-24 21:46         ` Ivan Malov
2024-05-13  1:45           ` Jie Hai

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).