Re: [dpdk-dev] [PATCH] net/mlx5: fix GRE key handle before GRE header issue

2019-11-26 Thread Raslan Darawsheh
Hi, > -Original Message- > From: Suanming Mou > Sent: Tuesday, November 26, 2019 4:09 PM > To: Slava Ovsiienko ; Matan Azrad > > Cc: Ori Kam ; Raslan Darawsheh > ; dev@dpdk.org; Jack Min > > Subject: [PATCH] net/mlx5: fix GRE key handle before GRE header issue > > When set the GRE item

[dpdk-dev] [PATCH] net/mlx5: fix GRE key handle before GRE header issue

2019-11-26 Thread Suanming Mou
When set the GRE item, GRE key should follow after GRE header, or the header gre_item pointer used by the key will be invalid. Currently in the mlx5_flow_validate_item_gre_key() function, the header gre_item pointer is access before checking if the key is after the header or not. Once the key item