]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
vxlan: Fix big-endian declaration of VNI
authorBen Hutchings <ben@decadent.org.uk>
Tue, 7 May 2019 18:17:39 +0000 (19:17 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 11 May 2019 14:22:48 +0000 (15:22 +0100)
In this version of the driver, VNIs are consistently kept in host
order.  However vxlan_fdb_create() erroneously declares its vni
parameter as __be32, which sparse warns about.  Change it to __u32.

This was resolved upstream by commit 54bfd872bf16 "vxlan: keep flags
and vni in network byte order".

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/vxlan.c

index 31abf2e7b19994c29b57f8b74eb153f766f050e1..d7e4f83f8bf39403b514fc20d03300b3a5347391 100644 (file)
@@ -706,7 +706,7 @@ static struct vxlan_fdb *vxlan_fdb_alloc(struct vxlan_dev *vxlan,
 static int vxlan_fdb_create(struct vxlan_dev *vxlan,
                            const u8 *mac, union vxlan_addr *ip,
                            __u16 state, __be16 port,
-                           __be32 vni, __u32 ifindex, __u8 ndm_flags,
+                           __u32 vni, __u32 ifindex, __u8 ndm_flags,
                            struct vxlan_fdb **fdb)
 {
        struct vxlan_rdst *rd = NULL;