vxlan: preserve type of dst_port parm for encap_bypass_if_local()
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/net/vxlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/vxlan.c +1 -1
@@ -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 )
Signature · 1 line
2.5.5
Quoted 2 lines · Lance Richardson
Eliminate sparse warning by maintaining type of
dst_portas__be16.
Fixes fee1fad7c73d ("vxlan: simplify RTF_LOCAL handling.")
Quoted 1 line
Signed-off-by Lance Richardson <[email protected]>
Acked-by Jiri Benc <[email protected]>
From: Lance Richardson <[email protected]>
Date: Wed, 18 Jan 2017 15:24:57 -0500
Quoted 4 lines
Eliminate sparse warning by maintaining type of
dst_portas__be16.Signed-off-by Lance Richardson <[email protected]>
Applied.