diff options
author | Vlad Buslov <vladbu@mellanox.com> | 2019-10-30 17:09:05 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-31 04:07:50 +0300 |
commit | abbb0d33632ce931ca9c814813ee131351f6b92f (patch) | |
tree | ba4be7e10ae4a427ba79577a5899e572c8fc869d /net/sched/act_nat.c | |
parent | 5e174d5e73dfbfb2c4bc4804f58f2f2aa34c9281 (diff) | |
download | linux-abbb0d33632ce931ca9c814813ee131351f6b92f.tar.xz |
net: sched: extend TCA_ACT space with TCA_ACT_FLAGS
Extend TCA_ACT space with nla_bitfield32 flags. Add
TCA_ACT_FLAGS_NO_PERCPU_STATS as the only allowed flag. Parse the flags in
tcf_action_init_1() and pass resulting value as additional argument to
a_o->init().
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_nat.c')
-rw-r--r-- | net/sched/act_nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/act_nat.c b/net/sched/act_nat.c index ea4c5359e7df..51d631cef92c 100644 --- a/net/sched/act_nat.c +++ b/net/sched/act_nat.c @@ -36,7 +36,7 @@ static const struct nla_policy nat_policy[TCA_NAT_MAX + 1] = { static int tcf_nat_init(struct net *net, struct nlattr *nla, struct nlattr *est, struct tc_action **a, int ovr, int bind, bool rtnl_held, struct tcf_proto *tp, - struct netlink_ext_ack *extack) + u32 flags, struct netlink_ext_ack *extack) { struct tc_action_net *tn = net_generic(net, nat_net_id); struct nlattr *tb[TCA_NAT_MAX + 1]; |