summaryrefslogtreecommitdiffstats
path: root/drivers/net/vxlan.c
diff options
context:
space:
mode:
authorLance Richardson <lrichard@redhat.com>2017-01-18 15:24:57 -0500
committerDavid S. Miller <davem@davemloft.net>2017-01-20 12:12:14 -0500
commit1f6cc07e170364212b6d81321f79f166089a60d9 (patch)
treef95a5345da5464cbe5fe725fe382192ae11b05c4 /drivers/net/vxlan.c
parent22fbece133b71895ca6bb66890b2d9b1ddaa908c (diff)
downloadlinux-1f6cc07e170364212b6d81321f79f166089a60d9.tar.gz
linux-1f6cc07e170364212b6d81321f79f166089a60d9.tar.xz
vxlan: preserve type of dst_port parm for encap_bypass_if_local()
Eliminate sparse warning by maintaining type of dst_port as __be16. Signed-off-by: Lance Richardson <lrichard@redhat.com> Acked-by: Jiri Benc <jbenc@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxlan.c')
-rw-r--r--drivers/net/vxlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index ca7196c40060..19b1653e1bd6 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -1951,7 +1951,7 @@ static void vxlan_encap_bypass(struct sk_buff *skb, struct vxlan_dev *src_vxlan,
static int encap_bypass_if_local(struct sk_buff *skb, struct net_device *dev,
struct vxlan_dev *vxlan, union vxlan_addr *daddr,
- __be32 dst_port, __be32 vni, struct dst_entry *dst,
+ __be16 dst_port, __be32 vni, struct dst_entry *dst,
u32 rt_flags)
{
#if IS_ENABLED(CONFIG_IPV6)