diff options
author | Vlad Buslov <vladbu@mellanox.com> | 2019-10-30 15:09:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-31 02:07:51 +0100 |
commit | e38226786022d2d8e5876ab7bc37e82b0eb57e65 (patch) | |
tree | bd7467ea5f747e37672228c41d99c3d64ee3995f /net/sched/act_skbedit.c | |
parent | net: sched: extend TCA_ACT space with TCA_ACT_FLAGS (diff) | |
download | linux-e38226786022d2d8e5876ab7bc37e82b0eb57e65.tar.xz linux-e38226786022d2d8e5876ab7bc37e82b0eb57e65.zip |
net: sched: update action implementations to support flags
Extend struct tc_action with new "tcfa_flags" field. Set the field in
tcf_idr_create() function and provide new helper
tcf_idr_create_from_flags() that derives 'cpustats' boolean from flags
value. Update individual hardware-offloaded actions init() to pass their
"flags" argument to new helper in order to skip percpu stats allocation
when user requested it through flags.
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_skbedit.c')
-rw-r--r-- | net/sched/act_skbedit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/act_skbedit.c b/net/sched/act_skbedit.c index 25f3b7b56bea..5f7ca7f89ca2 100644 --- a/net/sched/act_skbedit.c +++ b/net/sched/act_skbedit.c @@ -165,7 +165,7 @@ static int tcf_skbedit_init(struct net *net, struct nlattr *nla, if (!exists) { ret = tcf_idr_create(tn, index, est, a, - &act_skbedit_ops, bind, true); + &act_skbedit_ops, bind, true, 0); if (ret) { tcf_idr_cleanup(tn, index); return ret; |