aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-01-24 15:54:18 -0500
committerDavid S. Miller <davem@davemloft.net>2018-01-24 16:01:10 -0500
commit93da52b567c24ce31938181fd55755b908cd0a5a (patch)
tree39c82cba10efa1cbf52e1f28b217e3cb1b7523ad
parent0e908a450ad6a8445b04ec49807ca5fdc94956dd (diff)
cls_matchall: pass offload flags to tc_cls_common_offload_init()
Pass offload flags to the new implementation of tc_cls_common_offload_init(). Extack will now only be set if user requested skip_sw. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/sched/cls_matchall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/cls_matchall.c b/net/sched/cls_matchall.c
index a9a535a7a431..b0b8627b53d2 100644
--- a/net/sched/cls_matchall.c
+++ b/net/sched/cls_matchall.c
@@ -76,7 +76,7 @@ static void mall_destroy_hw_filter(struct tcf_proto *tp,
76 struct tc_cls_matchall_offload cls_mall = {}; 76 struct tc_cls_matchall_offload cls_mall = {};
77 struct tcf_block *block = tp->chain->block; 77 struct tcf_block *block = tp->chain->block;
78 78
79 tc_cls_common_offload_init_deprecated(&cls_mall.common, tp, NULL); 79 tc_cls_common_offload_init(&cls_mall.common, tp, head->flags, NULL);
80 cls_mall.command = TC_CLSMATCHALL_DESTROY; 80 cls_mall.command = TC_CLSMATCHALL_DESTROY;
81 cls_mall.cookie = cookie; 81 cls_mall.cookie = cookie;
82 82
@@ -94,7 +94,7 @@ static int mall_replace_hw_filter(struct tcf_proto *tp,
94 bool skip_sw = tc_skip_sw(head->flags); 94 bool skip_sw = tc_skip_sw(head->flags);
95 int err; 95 int err;
96 96
97 tc_cls_common_offload_init_deprecated(&cls_mall.common, tp, extack); 97 tc_cls_common_offload_init(&cls_mall.common, tp, head->flags, extack);
98 cls_mall.command = TC_CLSMATCHALL_REPLACE; 98 cls_mall.command = TC_CLSMATCHALL_REPLACE;
99 cls_mall.exts = &head->exts; 99 cls_mall.exts = &head->exts;
100 cls_mall.cookie = cookie; 100 cls_mall.cookie = cookie;