Hi, > -----Original Message----- > From: Shun Hao <[email protected]> > Sent: Wednesday, April 6, 2022 11:54 AM > To: Slava Ovsiienko <[email protected]>; Matan Azrad > <[email protected]>; Ori Kam <[email protected]> > Cc: [email protected]; Raslan Darawsheh <[email protected]>; > [email protected] > Subject: [PATCH v1] net/mlx5: fix wrong counter in non-termination meter > > In RTE flow, if a counter action is before a meter which has > non-termination policy, the counter value only includes packets not > being dropped. > > This patch fixes this issue by differentiating the order of counter and > non-termination meter: > 1. counter + meter, counts all packets hitting this flow. > 2. meter + counter, only counts packets not being dropped. > > Fixes: 51ec04dc7bcf ("net/mlx5: connect meter policy to created flows") > Cc: [email protected] > > Signed-off-by: Shun Hao <[email protected]> > Acked-by: Matan Azrad <[email protected]>
Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh

