Re: [PATCH net] geneve: Fix function matching VNI and tunnel ID on big-endian

2017-10-20 Thread David Miller
From: Stefano Brivio Date: Thu, 19 Oct 2017 13:31:28 +0200 > 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

Re: [PATCH net] geneve: Fix function matching VNI and tunnel ID on big-endian

2017-10-19 Thread Jakub Sitnicki
On Thu, 19 Oct 2017 13:31:28 +0200 Stefano Brivio wrote: > 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 MS

[PATCH net] geneve: Fix function matching VNI and tunnel ID on big-endian

2017-10-19 Thread Stefano Brivio
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