]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: act_police: allow 'continue' action offload
authorVlad Buslov <vladbu@nvidia.com>
Mon, 4 Jul 2022 20:44:04 +0000 (22:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jul 2022 11:44:39 +0000 (12:44 +0100)
commita0b6934c9f93c65bb24e12773729c897c95a0db3
tree18a1cf2fed15368627c3673e0e2cf5dd5a761502
parente3792cae7511b96bb3d2905baee58369bac69e4e
net/sched: act_police: allow 'continue' action offload

Offloading police with action TC_ACT_UNSPEC was erroneously disabled even
though it was supported by mlx5 matchall offload implementation, which
didn't verify the action type but instead assumed that any single police
action attached to matchall classifier is a 'continue' action. Lack of
action type check made it non-obvious what mlx5 matchall implementation
actually supports and caused implementers and reviewers of referenced
commits to disallow it as a part of improved validation code.

Fixes: e261130e9075 ("net: flow_offload: add tc police action parameters")
Fixes: 7d8f08e22631 ("net/sched: act_police: Add extack messages for offload failure")
Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow_offload.h
net/sched/act_police.c