summaryrefslogtreecommitdiffstats
path: root/net/sched/act_bpf.c
diff options
context:
space:
mode:
authorBaowen Zheng <baowen.zheng@corigine.com>2021-12-17 19:16:17 +0100
committerDavid S. Miller <davem@davemloft.net>2021-12-19 14:08:47 +0000
commit40bd094d65fc9f83941b024cde7c24516f036879 (patch)
tree39faa16da7f25c708d32a4b6b5ecab06b5acd48a /net/sched/act_bpf.c
parentf85b244ee395c774a0039c176f46fc0d3747a0ae (diff)
downloadlinux-stable-40bd094d65fc9f83941b024cde7c24516f036879.tar.gz
linux-stable-40bd094d65fc9f83941b024cde7c24516f036879.tar.bz2
linux-stable-40bd094d65fc9f83941b024cde7c24516f036879.zip
flow_offload: fill flags to action structure
Fill flags to action structure to allow user control if the action should be offloaded to hardware or not. 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>
Diffstat (limited to 'net/sched/act_bpf.c')
-rw-r--r--net/sched/act_bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/act_bpf.c b/net/sched/act_bpf.c
index f2bf896331a5..a77d8908e737 100644
--- a/net/sched/act_bpf.c
+++ b/net/sched/act_bpf.c
@@ -305,7 +305,7 @@ static int tcf_bpf_init(struct net *net, struct nlattr *nla,
ret = tcf_idr_check_alloc(tn, &index, act, bind);
if (!ret) {
ret = tcf_idr_create(tn, index, est, act,
- &act_bpf_ops, bind, true, 0);
+ &act_bpf_ops, bind, true, flags);
if (ret < 0) {
tcf_idr_cleanup(tn, index);
return ret;