summaryrefslogtreecommitdiffstats
path: root/drivers/net/vxlan.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2012-10-08 14:55:30 -0700
committerDavid S. Miller <davem@davemloft.net>2012-10-08 17:57:57 -0400
commit7c41c42c5d9db9efd8caab4764e912458a1a1a79 (patch)
treea59bf933b50cb2707c4842cd6966fb347e476633 /drivers/net/vxlan.c
parentad4d3ef8b7eb527cca478dc08c02c10936e64115 (diff)
downloadop-kernel-dev-7c41c42c5d9db9efd8caab4764e912458a1a1a79.zip
op-kernel-dev-7c41c42c5d9db9efd8caab4764e912458a1a1a79.tar.gz
vxlan: fix more sparse warnings
Fix a couple harmless sparse warnings reported by Fengguang Wu. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxlan.c')
-rw-r--r--drivers/net/vxlan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 6f95580..8be9bf0 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -1083,13 +1083,13 @@ static int vxlan_fill_info(struct sk_buff *skb, const struct net_device *dev)
if (nla_put_u32(skb, IFLA_VXLAN_ID, vxlan->vni))
goto nla_put_failure;
- if (vxlan->gaddr && nla_put_u32(skb, IFLA_VXLAN_GROUP, vxlan->gaddr))
+ if (vxlan->gaddr && nla_put_be32(skb, IFLA_VXLAN_GROUP, vxlan->gaddr))
goto nla_put_failure;
if (vxlan->link && nla_put_u32(skb, IFLA_VXLAN_LINK, vxlan->link))
goto nla_put_failure;
- if (vxlan->saddr && nla_put_u32(skb, IFLA_VXLAN_LOCAL, vxlan->saddr))
+ if (vxlan->saddr && nla_put_be32(skb, IFLA_VXLAN_LOCAL, vxlan->saddr))
goto nla_put_failure;
if (nla_put_u8(skb, IFLA_VXLAN_TTL, vxlan->ttl) ||
OpenPOWER on IntegriCloud