Hi, > -----Original Message----- > From: Bing Zhao <bi...@nvidia.com> > Sent: Wednesday, February 21, 2024 5:23 AM > To: Suanming Mou <suanmi...@nvidia.com>; Raslan Darawsheh > <rasl...@nvidia.com>; dev@dpdk.org > Cc: Matan Azrad <ma...@nvidia.com>; Slava Ovsiienko > <viachesl...@nvidia.com>; Ori Kam <or...@nvidia.com>; Dariusz Sosnowski > <dsosnow...@nvidia.com>; sta...@dpdk.org; Michael Baum > <michae...@nvidia.com> > Subject: [PATCH] net/mlx5: prevent querying aged flows on uninit port > > In HWS template API, the aging mechanism doesn't support shared host mode > now. When the guest's counter is set to 0, the aging won't be initialized. > > The current implementation didn't prevent the user from querying the aged > flows on the uninitialized port. The access of invalid pointers would cause a > crash. > > With this commit, the flag of the per port aging initialization will be > checked. > This would help to get rid of the invalid accessing. > > Fixes: 04a4de756e14 ("net/mlx5: support flow age action with HWS") > Cc: michae...@nvidia.com > Cc: sta...@dpdk.org > > Signed-off-by: Bing Zhao <bi...@nvidia.com> > Acked-by: Suanming Mou <suanmi...@nvidia.com> > ---[Raslan Darawsheh]
Patch applied to next-net-mlx Kindest regards, Raslan Darawsheh