fou: fix some member types in guehdr
authorXin Long <lucien.xin@gmail.com>
Sun, 10 Dec 2017 08:56:00 +0000 (16:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Dec 2017 19:10:06 +0000 (14:10 -0500)
commit200809716aed1cac586fcac4c0551a688439be1f
treefb2ee0b811b8cf511f1d42bab3ab34b5f9d0d825
parent2342b8d95bcae5946e1b9b8d58645f37500ef2e7
fou: fix some member types in guehdr

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 funcions.

This patch could fix a bunch of sparse warnings from fou.

Fixes: 5024c33ac354 ("gue: Add infrastructure for flags and options")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/gue.h