diff options
author | 2023-04-26 11:55:27 +0530 | |
---|---|---|
committer | 2023-04-27 12:38:11 +0200 | |
commit | 9bdfe61054fb2b989eb58df20bf99c0cf67e3038 (patch) | |
tree | 79adda268783406f2cb469a3f4a9a5c10ac23600 /net/sched/cls_api.c | |
parent | octeontx2-pf: mcs: Clear stats before freeing resource (diff) | |
download | wireguard-linux-9bdfe61054fb2b989eb58df20bf99c0cf67e3038.tar.xz wireguard-linux-9bdfe61054fb2b989eb58df20bf99c0cf67e3038.zip |
octeontx2-pf: mcs: Fix shared counters logic
Macsec stats like InPktsLate and InPktsDelayed share
same counter in hardware. If SecY replay_protect is true
then counter represents InPktsLate otherwise InPktsDelayed.
This mode change was tracked based on protect_frames
instead of replay_protect mistakenly. Similarly InPktsUnchecked
and InPktsOk share same counter and mode change was tracked
based on validate_check instead of validate_disabled.
This patch fixes those problems.
Fixes: c54ffc73601c ("octeontx2-pf: mcs: Introduce MACSEC hardware offloading")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/sched/cls_api.c')
0 files changed, 0 insertions, 0 deletions