Skip to content

Commit 01fe944

Browse files
edumazetdavem330
authored andcommitted
macvlan: fix macvlan_get_size()
commit df8ef8f (macvlan: add FDB bridge ops and macvlan flags) forgot to update macvlan_get_size() after the addition of IFLA_MACVLAN_FLAGS Signed-off-by: Eric Dumazet <[email protected]> Cc: John Fastabend <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c3745ea commit 01fe944

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/net/macvlan.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,10 @@ static int macvlan_changelink(struct net_device *dev,
822822

823823
static size_t macvlan_get_size(const struct net_device *dev)
824824
{
825-
return nla_total_size(4);
825+
return (0
826+
+ nla_total_size(4) /* IFLA_MACVLAN_MODE */
827+
+ nla_total_size(2) /* IFLA_MACVLAN_FLAGS */
828+
);
826829
}
827830

828831
static int macvlan_fill_info(struct sk_buff *skb,

0 commit comments

Comments
 (0)