From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] fou: fix some member types in guehdr Date: Mon, 11 Dec 2017 14:10:20 -0500 (EST) Message-ID: <20171211.141020.2190669621502949227.davem@davemloft.net> References: <5e022d6a50c6a9f8de5e12bbd2018217475ba6c3.1512896160.git.lucien.xin@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, therbert@google.com To: lucien.xin@gmail.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:38662 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751759AbdLKTKV (ORCPT ); Mon, 11 Dec 2017 14:10:21 -0500 In-Reply-To: <5e022d6a50c6a9f8de5e12bbd2018217475ba6c3.1512896160.git.lucien.xin@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: 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 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 Looks good, applied, thanks.