Patch "geneve: Fix function matching VNI and tunnel ID on big-endian" has been added to the 4.13-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
geneve: Fix function matching VNI and tunnel ID on big-endian
to the 4.13-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
geneve-fix-function-matching-vni-and-tunnel-id-on-big-endian.patch
and it can be found in the queue-4.13 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Wed Nov 15 17:25:34 CET 2017
From: Stefano Brivio <[email protected]>
Date: Thu, 19 Oct 2017 13:31:28 +0200
Subject: geneve: Fix function matching VNI and tunnel ID on big-endian
From: Stefano Brivio <[email protected]>
[ Upstream commit 772e97b57a4aa00170ad505a40ffad31d987ce1d ]
On big-endian machines, functions converting between tunnel ID and VNI use the three LSBs of tunnel ID storage to map VNI.
The comparison function eq_tun_id_and_vni(), on the other hand, attempted to map the VNI from the three MSBs. Fix it by using the same check implemented on LE, which maps VNI from the three LSBs of tunnel ID.
--- drivers/net/geneve.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/net/geneve.c +0 -6
@@ -113,13 +113,7 @@ static void tunnel_id_to_vni(__be64 tun_static bool eq_tun_id_and_vni (u8 *tun_id,u8 *vni) { -#ifdef __BIG_ENDIAN -return (vni[0 ] == tun_id[2 ]) && - (vni[1 ] == tun_id[1 ]) && - (vni[2 ] == tun_id[0 ]); -#else return !memcmp (vni, &tun_id[5 ],3 ); -#endif }static sa_family_t geneve_get_sk_family (struct geneve_sock *gs)
Patches currently in stable-queue which might be from [email protected] are
queue-4.13/geneve-fix-function-matching-vni-and-tunnel-id-on-big-endian.patch