Hi, > -----Original Message----- > From: Bing Zhao <bi...@nvidia.com> > Sent: Friday, June 30, 2023 3:45 PM > To: Matan Azrad <ma...@nvidia.com>; Slava Ovsiienko > <viachesl...@nvidia.com>; Ori Kam <or...@nvidia.com>; Suanming Mou > <suanmi...@nvidia.com>; Raslan Darawsheh <rasl...@nvidia.com> > Cc: dev@dpdk.org; Alexander Kozyrev <akozy...@nvidia.com>; > sta...@dpdk.org > Subject: [PATCH] net/mlx5: fix the profile check of meter mark > > When creating a meter_mark action, the profile should be specified. > Or else there would be a crash if the pointer to the profile was not set > properly: > 1. creating an action template with only action mask set and using > this template to create a table > 2. creating a flow rule without setting the profile if the action > of meter_mark is not fixed > > The check should be done inside the action allocation and an error needs to be > returned immediately. > > Fixes: 48fbb0e93d06 ("net/mlx5: support flow meter mark indirect action > with HWS") > Cc: akozy...@nvidia.com > Cc: sta...@dpdk.org > > Signed-off-by: Bing Zhao <bi...@nvidia.com> > Acked-by: Viacheslav Ovsiienko <viachesl...@nvidia.com>
Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh