Message ID | 1358458249.11051.6.camel@edumazet-glaptop |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Eric Dumazet <eric.dumazet@gmail.com> Date: Thu, 17 Jan 2013 13:30:49 -0800 > From: Eric Dumazet <edumazet@google.com> > > commit df8ef8f3aaa (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 <edumazet@google.com> > Cc: John Fastabend <john.r.fastabend@intel.com> Applied, thanks Eric. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 1047e58..7b44ebd 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c @@ -828,7 +828,10 @@ static int macvlan_changelink(struct net_device *dev, static size_t macvlan_get_size(const struct net_device *dev) { - return nla_total_size(4); + return (0 + + nla_total_size(4) /* IFLA_MACVLAN_MODE */ + + nla_total_size(2) /* IFLA_MACVLAN_FLAGS */ + ); } static int macvlan_fill_info(struct sk_buff *skb,