diff mbox

[net-next] vxlan: preserve type of dst_port parm for encap_bypass_if_local()

Message ID 1484771097-5692-1-git-send-email-lrichard@redhat.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Lance Richardson Jan. 18, 2017, 8:24 p.m. UTC
Eliminate sparse warning by maintaining type of dst_port
as __be16.

Signed-off-by: Lance Richardson <lrichard@redhat.com>
---
 drivers/net/vxlan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jiri Benc Jan. 19, 2017, 6:16 p.m. UTC | #1
On Wed, 18 Jan 2017 15:24:57 -0500, Lance Richardson wrote:
> Eliminate sparse warning by maintaining type of dst_port
> as __be16.

Fixes: fee1fad7c73d ("vxlan: simplify RTF_LOCAL handling.")

> Signed-off-by: Lance Richardson <lrichard@redhat.com>

Acked-by: Jiri Benc <jbenc@redhat.com>
David Miller Jan. 20, 2017, 5:12 p.m. UTC | #2
From: Lance Richardson <lrichard@redhat.com>
Date: Wed, 18 Jan 2017 15:24:57 -0500

> Eliminate sparse warning by maintaining type of dst_port
> as __be16.
> 
> Signed-off-by: Lance Richardson <lrichard@redhat.com>

Applied.
diff mbox

Patch

diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index ca7196c..19b1653 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)