Skip to content

Commit 1521a67

Browse files
jpirkodavem330
authored andcommitted
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: e382267 ("net: sched: update action implementations to support flags") Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2eb51c7 commit 1521a67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/sched/act_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ static size_t tcf_action_shared_attrs_size(const struct tc_action *act)
186186
+ nla_total_size(IFNAMSIZ) /* TCA_ACT_KIND */
187187
+ cookie_len /* TCA_ACT_COOKIE */
188188
+ nla_total_size(0) /* TCA_ACT_STATS nested */
189+
+ nla_total_size(sizeof(struct nla_bitfield32)) /* TCA_ACT_FLAGS */
189190
/* TCA_STATS_BASIC */
190191
+ nla_total_size_64bit(sizeof(struct gnet_stats_basic))
191192
/* TCA_STATS_PKT64 */

0 commit comments

Comments
 (0)