diff options
author | Oz Shlomo <ozsh@nvidia.com> | 2023-02-12 15:25:19 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-02-14 11:00:01 +0100 |
commit | d13674b1d14c68339173db5dd39c4ab0949234e7 (patch) | |
tree | fa148aa2a40ddad746fa514691fe921ab917412c /init/main.c | |
parent | cca7eac13856e75306bbdefb1673bcd0310d9abc (diff) | |
download | linux-stable-d13674b1d14c68339173db5dd39c4ab0949234e7.tar.gz linux-stable-d13674b1d14c68339173db5dd39c4ab0949234e7.tar.bz2 linux-stable-d13674b1d14c68339173db5dd39c4ab0949234e7.zip |
net/mlx5e: TC, map tc action cookie to a hw counter
Currently a hardware counter is associated with a flow cookie.
This does not apply to flows using branching action which are required to
return per action stats.
A single counter may apply to multiple actions.
Scan the flow actions in reverse (from the last to the first action) while
caching the last counter.
Associate all the flow attribute tc action cookies with the current
cached counter.
Signed-off-by: Oz Shlomo <ozsh@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'init/main.c')
0 files changed, 0 insertions, 0 deletions