question about eth and vlan item in flow pattern
Jie Hai
haijie1 at huawei.com
Wed Apr 10 13:37:08 CEST 2024
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?
More information about the dev
mailing list