> -----Original Message-----
> From: Shani Peretz <[email protected]>
> Sent: Tuesday, September 10, 2024 09:41
> To: [email protected]
> Cc: Shani Peretz <[email protected]>; Maayan Kashani
> <[email protected]>; Raslan Darawsheh <[email protected]>; Dariusz
> Sosnowski <[email protected]>; Slava Ovsiienko
> <[email protected]>; Bing Zhao <[email protected]>; Ori Kam
> <[email protected]>; Suanming Mou <[email protected]>; Matan
> Azrad <[email protected]>; Anatoly Burakov <[email protected]>
> Subject: [PATCH] net/mlx5: add hairpin counter per queue
> 
> Currently mlx5 PMD exposes hairpin_out_of_buffer counter that specifically
> tracks packets dropped when hairpin Rx queue is full.
> 
> This patch allows the user to choose whether they want to track packet drops
> at a per-port level or a per-queue level.
> 
> If the user chooses to have a counter per queue, HW objects will be created 
> for
> each individual queue, and each Rx queue will be assigned to its specific
> counter.
> 
> However, if the user has more hairpin Rx queues than available hardware
> counters, we will attach the first hairpin queues to the available counters, 
> and
> the remaining queues will not have their packet drops tracked by these
> counters.
> 
> This approach provides flexibility for users to monitor packet drops at 
> either a
> port-level or a queue-level granularity.
> 
> Signed-off-by: Shani Peretz <[email protected]>

Acked-by: Dariusz Sosnowski <[email protected]>

Best regards,
Dariusz Sosnowski

Reply via email to