From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] mellanox: fix the dport endianness in call of __inet6_lookup_established() Date: Mon, 06 Aug 2018 10:32:58 -0700 (PDT) Message-ID: <20180806.103258.2021871359763559506.davem@davemloft.net> References: <20180804204127.GC15082@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: borisp@mellanox.com, netdev@vger.kernel.org To: viro@ZenIV.linux.org.uk Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:55004 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729749AbeHFTnJ (ORCPT ); Mon, 6 Aug 2018 15:43:09 -0400 In-Reply-To: <20180804204127.GC15082@ZenIV.linux.org.uk> Sender: netdev-owner@vger.kernel.org List-ID: From: Al Viro Date: Sat, 4 Aug 2018 21:41:27 +0100 > __inet6_lookup_established() expect th->dport passed in host-endian, > not net-endian. The reason is microoptimization in __inet6_lookup(), > but if you use the lower-level helpers, you have to play by their > rules... > > Signed-off-by: Al Viro Applied to net-next, thanks Al.