diff options
Diffstat (limited to 'drivers/net/vxlan.c')
-rw-r--r-- | drivers/net/vxlan.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index ababba37d735..2b8da2b7e721 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c | |||
@@ -3539,6 +3539,7 @@ static size_t vxlan_get_size(const struct net_device *dev) | |||
3539 | nla_total_size(sizeof(__u32)) + /* IFLA_VXLAN_LINK */ | 3539 | nla_total_size(sizeof(__u32)) + /* IFLA_VXLAN_LINK */ |
3540 | nla_total_size(sizeof(struct in6_addr)) + /* IFLA_VXLAN_LOCAL{6} */ | 3540 | nla_total_size(sizeof(struct in6_addr)) + /* IFLA_VXLAN_LOCAL{6} */ |
3541 | nla_total_size(sizeof(__u8)) + /* IFLA_VXLAN_TTL */ | 3541 | nla_total_size(sizeof(__u8)) + /* IFLA_VXLAN_TTL */ |
3542 | nla_total_size(sizeof(__u8)) + /* IFLA_VXLAN_TTL_INHERIT */ | ||
3542 | nla_total_size(sizeof(__u8)) + /* IFLA_VXLAN_TOS */ | 3543 | nla_total_size(sizeof(__u8)) + /* IFLA_VXLAN_TOS */ |
3543 | nla_total_size(sizeof(__be32)) + /* IFLA_VXLAN_LABEL */ | 3544 | nla_total_size(sizeof(__be32)) + /* IFLA_VXLAN_LABEL */ |
3544 | nla_total_size(sizeof(__u8)) + /* IFLA_VXLAN_LEARNING */ | 3545 | nla_total_size(sizeof(__u8)) + /* IFLA_VXLAN_LEARNING */ |
@@ -3603,6 +3604,8 @@ static int vxlan_fill_info(struct sk_buff *skb, const struct net_device *dev) | |||
3603 | } | 3604 | } |
3604 | 3605 | ||
3605 | if (nla_put_u8(skb, IFLA_VXLAN_TTL, vxlan->cfg.ttl) || | 3606 | if (nla_put_u8(skb, IFLA_VXLAN_TTL, vxlan->cfg.ttl) || |
3607 | nla_put_u8(skb, IFLA_VXLAN_TTL_INHERIT, | ||
3608 | !!(vxlan->cfg.flags & VXLAN_F_TTL_INHERIT)) || | ||
3606 | nla_put_u8(skb, IFLA_VXLAN_TOS, vxlan->cfg.tos) || | 3609 | nla_put_u8(skb, IFLA_VXLAN_TOS, vxlan->cfg.tos) || |
3607 | nla_put_be32(skb, IFLA_VXLAN_LABEL, vxlan->cfg.label) || | 3610 | nla_put_be32(skb, IFLA_VXLAN_LABEL, vxlan->cfg.label) || |
3608 | nla_put_u8(skb, IFLA_VXLAN_LEARNING, | 3611 | nla_put_u8(skb, IFLA_VXLAN_LEARNING, |