mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
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: e382267860
("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>
This commit is contained in:
parent
2eb51c75dc
commit
1521a67e60
1 changed files with 1 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue