Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc39c38b authored by Xin Long's avatar Xin Long Committed by David S. Miller
Browse files

vxlan: use __be32 type for the param vni in __vxlan_fdb_delete



All callers of __vxlan_fdb_delete pass vni with __be32 type, and
this param should be declared as __be32 type.

Fixes: 3ad7a4b1 ("vxlan: support fdb and learning in COLLECT_METADATA mode")
Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5eb3d22a
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -874,8 +874,8 @@ static int vxlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],


static int __vxlan_fdb_delete(struct vxlan_dev *vxlan,
static int __vxlan_fdb_delete(struct vxlan_dev *vxlan,
			      const unsigned char *addr, union vxlan_addr ip,
			      const unsigned char *addr, union vxlan_addr ip,
			      __be16 port, __be32 src_vni, u32 vni, u32 ifindex,
			      __be16 port, __be32 src_vni, __be32 vni,
			      u16 vid)
			      u32 ifindex, u16 vid)
{
{
	struct vxlan_fdb *f;
	struct vxlan_fdb *f;
	struct vxlan_rdst *rd = NULL;
	struct vxlan_rdst *rd = NULL;