vxlan: use __be32 type for the param vni in __vxlan_fdb_delete
authorXin Long <lucien.xin@gmail.com>
Sun, 26 Nov 2017 13:19:05 +0000 (21:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Nov 2017 20:57:12 +0000 (15:57 -0500)
All callers of __vxlan_fdb_delete pass vni with __be32 type, and
this param should be declared as __be32 type.

Fixes: 3ad7a4b141eb ("vxlan: support fdb and learning in COLLECT_METADATA mode")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c

index 7ac487031b4bca89b13f6c6fa5312651e1901661..19b9cc51079e75346af766c91786d66eaa92c3f2 100644 (file)
@@ -874,8 +874,8 @@ static int vxlan_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
 
 static int __vxlan_fdb_delete(struct vxlan_dev *vxlan,
                              const unsigned char *addr, union vxlan_addr ip,
-                             __be16 port, __be32 src_vni, u32 vni, u32 ifindex,
-                             u16 vid)
+                             __be16 port, __be32 src_vni, __be32 vni,
+                             u32 ifindex, u16 vid)
 {
        struct vxlan_fdb *f;
        struct vxlan_rdst *rd = NULL;