]> git.baikalelectronics.ru Git - kernel.git/commit
flow_offload: validate flags of filter and actions
authorBaowen Zheng <baowen.zheng@corigine.com>
Fri, 17 Dec 2021 18:16:28 +0000 (19:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Dec 2021 14:08:48 +0000 (14:08 +0000)
commit1ddd15772a031a20c028ad57d2c799b49c41987d
treec1898a794730eb8eaf572ada61f5367bf4021e42
parentd82c438c2f40fa5d25cf6a854c17ab792436d35c
flow_offload: validate flags of filter and actions

Add process to validate flags of filter and actions when adding
a tc filter.

We need to prevent adding filter with flags conflicts with its actions.

Signed-off-by: Baowen Zheng <baowen.zheng@corigine.com>
Signed-off-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/act_api.h
include/net/pkt_cls.h
net/sched/act_api.c
net/sched/cls_api.c
net/sched/cls_flower.c
net/sched/cls_matchall.c
net/sched/cls_u32.c