summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorYajun Deng <yajun.deng@linux.dev>2021-07-22 05:23:43 +0200
committerDavid S. Miller <davem@davemloft.net>2021-07-22 09:48:03 +0200
commit9d85a6f44bd5585761947f40f7821c9cd78a1bbe (patch)
tree0d9eecd04e1fc3100cc89cbc2e78c99771537399 /net
parentnet: sparx5: fix unmet dependencies warning (diff)
downloadlinux-9d85a6f44bd5585761947f40f7821c9cd78a1bbe.tar.xz
linux-9d85a6f44bd5585761947f40f7821c9cd78a1bbe.zip
net: sched: cls_api: Fix the the wrong parameter
The 4th parameter in tc_chain_notify() should be flags rather than seq. Let's change it back correctly. Fixes: 32a4f5ecd738 ("net: sched: introduce chain object to uapi") Signed-off-by: Yajun Deng <yajun.deng@linux.dev> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/sched/cls_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index d73b5c5514a9..e3e79e9bd706 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -2904,7 +2904,7 @@ replay:
break;
case RTM_GETCHAIN:
err = tc_chain_notify(chain, skb, n->nlmsg_seq,
- n->nlmsg_seq, n->nlmsg_type, true);
+ n->nlmsg_flags, n->nlmsg_type, true);
if (err < 0)
NL_SET_ERR_MSG(extack, "Failed to send chain notify message");
break;