RE: [PATCH] net/mlx5: fix GRE item matching

2021-11-24 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Alexander Kozyrev > Sent: Wednesday, November 24, 2021 6:33 AM > To: dev@dpdk.org > Cc: sta...@dpdk.org; Raslan Darawsheh ; Slava > Ovsiienko ; Matan Azrad ; > Gregory Etelson > Subject: [PATCH] net/mlx5: fix GRE item matching &

RE: [PATCH] net/mlx5: fix GRE item matching

2021-11-24 Thread Slava Ovsiienko
> -Original Message- > From: Alexander Kozyrev > Sent: Wednesday, November 24, 2021 6:33 > To: dev@dpdk.org > Cc: sta...@dpdk.org; Raslan Darawsheh ; Slava > Ovsiienko ; Matan Azrad ; > Gregory Etelson > Subject: [PATCH] net/mlx5: fix GRE item matching &

[PATCH] net/mlx5: fix GRE item matching

2021-11-23 Thread Alexander Kozyrev
GRE protocol type is implicitly set in the matching translation in case an application doesn't specify any type explicitly in a flow rule. It is extracted from the inner header type, but this type may be absent. In this case, GRE item matching is broken. Check if we have the inner header type befor