diff options
author | Jiri Pirko <jiri@mellanox.com> | 2020-02-25 15:54:12 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-27 04:10:44 +0300 |
commit | 1521a67e6016664941f0917d50cb20053a8826a2 (patch) | |
tree | 692edd8f0b0997214f5d945870e357438088cdf4 | |
parent | 2eb51c75dcb354f8aef03d7648318b24630632e1 (diff) | |
download | linux-1521a67e6016664941f0917d50cb20053a8826a2.tar.xz |
sched: act: count in the size of action flags bitfield
The put of the flags was added by the commit referenced in fixes tag,
however the size of the message was not extended accordingly.
Fix this by adding size of the flags bitfield to the message size.
Fixes: e38226786022 ("net: sched: update action implementations to support flags")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/sched/act_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 90a31b15585f..8c466a712cda 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -186,6 +186,7 @@ static size_t tcf_action_shared_attrs_size(const struct tc_action *act) + nla_total_size(IFNAMSIZ) /* TCA_ACT_KIND */ + cookie_len /* TCA_ACT_COOKIE */ + nla_total_size(0) /* TCA_ACT_STATS nested */ + + nla_total_size(sizeof(struct nla_bitfield32)) /* TCA_ACT_FLAGS */ /* TCA_STATS_BASIC */ + nla_total_size_64bit(sizeof(struct gnet_stats_basic)) /* TCA_STATS_PKT64 */ |