diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2019-05-07 19:17:39 +0100 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2019-05-11 15:22:48 +0100 |
commit | 142dcb12448f4e0826d6bb0b5a4e870270f5458a (patch) | |
tree | 045ed29c1a6e99b350026b3637e8b4002fa7b200 | |
parent | 4534e6e7ffd81ec5ceb782d44e45f295391568d4 (diff) |
vxlan: Fix big-endian declaration of VNI
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>
-rw-r--r-- | drivers/net/vxlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 31abf2e7b199..d7e4f83f8bf3 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -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; |