Commit df5e87f1 authored by Gavin Li's avatar Gavin Li Committed by Jakub Kicinski

vxlan: Remove unused argument from vxlan_build_gbp_hdr( ) and vxlan_build_gpe_hdr( )

Remove unused argument (i.e. u32 vxflags) in vxlan_build_gbp_hdr( ) and
vxlan_build_gpe_hdr( ) function arguments.
Signed-off-by: default avatarGavin Li <gavinl@nvidia.com>
Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 36bd28c1
...@@ -2093,8 +2093,7 @@ static bool route_shortcircuit(struct net_device *dev, struct sk_buff *skb) ...@@ -2093,8 +2093,7 @@ static bool route_shortcircuit(struct net_device *dev, struct sk_buff *skb)
return false; return false;
} }
static void vxlan_build_gbp_hdr(struct vxlanhdr *vxh, u32 vxflags, static void vxlan_build_gbp_hdr(struct vxlanhdr *vxh, struct vxlan_metadata *md)
struct vxlan_metadata *md)
{ {
struct vxlanhdr_gbp *gbp; struct vxlanhdr_gbp *gbp;
...@@ -2113,8 +2112,7 @@ static void vxlan_build_gbp_hdr(struct vxlanhdr *vxh, u32 vxflags, ...@@ -2113,8 +2112,7 @@ static void vxlan_build_gbp_hdr(struct vxlanhdr *vxh, u32 vxflags,
gbp->policy_id = htons(md->gbp & VXLAN_GBP_ID_MASK); gbp->policy_id = htons(md->gbp & VXLAN_GBP_ID_MASK);
} }
static int vxlan_build_gpe_hdr(struct vxlanhdr *vxh, u32 vxflags, static int vxlan_build_gpe_hdr(struct vxlanhdr *vxh, __be16 protocol)
__be16 protocol)
{ {
struct vxlanhdr_gpe *gpe = (struct vxlanhdr_gpe *)vxh; struct vxlanhdr_gpe *gpe = (struct vxlanhdr_gpe *)vxh;
...@@ -2177,9 +2175,9 @@ static int vxlan_build_skb(struct sk_buff *skb, struct dst_entry *dst, ...@@ -2177,9 +2175,9 @@ static int vxlan_build_skb(struct sk_buff *skb, struct dst_entry *dst,
} }
if (vxflags & VXLAN_F_GBP) if (vxflags & VXLAN_F_GBP)
vxlan_build_gbp_hdr(vxh, vxflags, md); vxlan_build_gbp_hdr(vxh, md);
if (vxflags & VXLAN_F_GPE) { if (vxflags & VXLAN_F_GPE) {
err = vxlan_build_gpe_hdr(vxh, vxflags, skb->protocol); err = vxlan_build_gpe_hdr(vxh, skb->protocol);
if (err < 0) if (err < 0)
return err; return err;
inner_protocol = skb->protocol; inner_protocol = skb->protocol;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment