From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [endianness bug] cxgb4: mk_act_open_req() buggers ->{local,peer}_ip on big-endian hosts Date: Tue, 07 Aug 2018 12:35:38 -0700 (PDT) Message-ID: <20180807.123538.1789071603383048283.davem@davemloft.net> References: <20180805172238.GH15082@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: kumaras@chelsio.com, rahul.lakkireddy@chelsio.com, netdev@vger.kernel.org To: viro@ZenIV.linux.org.uk Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:49218 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388581AbeHGVvd (ORCPT ); Tue, 7 Aug 2018 17:51:33 -0400 In-Reply-To: <20180805172238.GH15082@ZenIV.linux.org.uk> Sender: netdev-owner@vger.kernel.org List-ID: From: Al Viro Date: Sun, 5 Aug 2018 18:22:38 +0100 > Unlike fs.val.lport and fs.val.fport, cxgb4_process_flow_match() > sets fs.val.{l,f}ip to net-endian values without conversion - they come > straight from flow_dissector_key_ipv4_addrs ->dst and ->src resp. So > the assignment in mk_act_open_req() ought to be a straigh copy. > > As far as I know, T4 PCIe cards do exist, so it's not as if that > thing could only be found on little-endian systems... > > Signed-off-by: Al Viro Applied.