summaryrefslogtreecommitdiffstats
path: root/net/sched/cls_api.c
diff options
context:
space:
mode:
authorAlexander Aring2018-01-18 17:20:51 +0100
committerDavid S. Miller2018-01-19 21:52:51 +0100
commit7306db38a67cf6b8e1ca354b1d0c0117b7b880d5 (patch)
tree61955b0d0434a5edc5fc233648093929d111f257 /net/sched/cls_api.c
parentnet: sched: cls_api: handle generic cls errors (diff)
downloadkernel-qcow2-linux-7306db38a67cf6b8e1ca354b1d0c0117b7b880d5.tar.gz
kernel-qcow2-linux-7306db38a67cf6b8e1ca354b1d0c0117b7b880d5.tar.xz
kernel-qcow2-linux-7306db38a67cf6b8e1ca354b1d0c0117b7b880d5.zip
net: sched: cls: add extack support for change callback
This patch adds extack support for classifier change callback api. This prepares to handle extack support inside each specific classifier implementation. Cc: David Ahern <dsahern@gmail.com> Signed-off-by: Alexander Aring <aring@mojatatu.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_api.c')
-rw-r--r--net/sched/cls_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index 3e3841adbd5c..06797c2e8102 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -1231,7 +1231,8 @@ replay:
}
err = tp->ops->change(net, skb, tp, cl, t->tcm_handle, tca, &fh,
- n->nlmsg_flags & NLM_F_CREATE ? TCA_ACT_NOREPLACE : TCA_ACT_REPLACE);
+ n->nlmsg_flags & NLM_F_CREATE ? TCA_ACT_NOREPLACE : TCA_ACT_REPLACE,
+ extack);
if (err == 0) {
if (tp_created)
tcf_chain_tp_insert(chain, &chain_info, tp);