Re: [PATCH net] fou: fix some member types in guehdr

2017-12-11 Thread David Miller
From: Xin Long Date: Sun, 10 Dec 2017 16:56:00 +0800 > guehdr struct is used to build or parse gue packets, which > are always in big endian. It's better to define all guehdr > members as __beXX types. > > Also, in validate_gue_flags it's not good to use a __be32 > variable for both Standard fla

[PATCH net] fou: fix some member types in guehdr

2017-12-10 Thread Xin Long
guehdr struct is used to build or parse gue packets, which are always in big endian. It's better to define all guehdr members as __beXX types. Also, in validate_gue_flags it's not good to use a __be32 variable for both Standard flags(__be16) and Private flags (__be32), and pass it to other funcion