[dpdk-dev] [PATCH v2] doc: refine ethernet and VLAN flow rule items

Ori Kam orika at mellanox.com
Sun May 3 16:57:43 CEST 2020



> -----Original Message-----
> From: Andrew Rybchenko <arybchenko at solarflare.com>
> 
> On 5/3/20 10:17 AM, Dekel Peled wrote:
> > Specified pattern may be translated in different manner.
> > For example the pattern "eth / ipv4" can be translated to match
> > untagged packets only, since the pattern doesn't specify a VLAN item.
> > It can also be translated to match both tagged and untagged packets,
> > for the same reason.
> > This patch updates the rte_flow documentation to clearly specify the
> > required pattern to use.
> > For example:
> > To match tagged ipv4 packets, the pattern "eth / vlan / ipv4 / end"
> > should be used.
> > To match untagged ipv4 packets, the pattern "eth / ipv4 / end"
> > should be used.
> > To match all IPV4 packets, both tagged and untagged, need to apply
> > two rules with the patterns above.
> > To match both tagged and untagged packets of any type, the pattern
> > "eth / end" should be used.
> >
> > Signed-off-by: Dekel Peled <dekelp at mellanox.com>
> 
> Acked-by: Andrew Rybchenko <arybchenko at solarflare.com>
Acked-by: Ori Kam <orika at mellanox.com>
Thanks,
Ori



More information about the dev mailing list