Thread (2 messages) 2 messages, 2 authors, 2021-02-03

Re: [dpdk-dev] [PATCH] net/mlx5: fix validation for counter and age

From: Raslan Darawsheh <hidden>
Date: 2021-02-03 14:29:12

Hi,
-----Original Message-----
From: Jiawei Wang <redacted>
Sent: Tuesday, February 2, 2021 6:43 PM
To: Matan Azrad <redacted>; Slava Ovsiienko
[off-list ref]; Ori Kam [off-list ref]; NBU-Contact-
Thomas Monjalon [off-list ref]
Cc: dev@dpdk.org; Raslan Darawsheh <redacted>;
stable@dpdk.org
Subject: [PATCH] net/mlx5: fix validation for counter and age

Currently old age action was implemented by flow counter and only one
counter index was maintained in each flow. While there was old age
action and share count action in one flow, and the same share count
action in the another flow, the counter was updated if second flow
was hit, so it may cause the first flow didn't aged out since the
counter was updated by second flow.

This patch updates the validation function for count and old age action:
  - Old age and shared count action combination is not supported.
  - Old age and count(not shared) action could work in the same sub flow.

Fixes: e7138997e07d ("net/mlx5: make shared counters thread safe")
Cc: stable@dpdk.org
Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help