[dpdk-stable] [PATCH] net/mlx5: fix flow META item validation

Matan Azrad matan at mellanox.com
Wed Jul 1 20:02:31 CEST 2020



From: Shy Shyman
> When flow is inserted with meta match item it requires a certain register
> support.
> As part of the flow validation of such flows, the validation function is missing
> a check that the mlx5 driver is not in legacy mode in terms of extended meta
> data support (MLX5_XMETA_MODE_LEGACY flag).
> If the driver is in legacy mode it will cause downstream function that allocates
> needed register for meta data.
> 
> The fix checks explicitly the conditions for support of meta data in FDB mode.
> if the conditions are not met an error message will be issued.
> 
> Fixes: 9bf26e1318 ("ethdev: move egress metadata to dynamic field")
> Cc: viacheslavo at mellanox.com
> Cc: stable at dpdk.org
> 
> Signed-off-by: Shy Shyman <shys at mellanox.com>
Acked-by: Matan Azrad <matan at mellanox.com>


More information about the stable mailing list