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: Sun, 05 Aug 2018 17:27:28 -0700 (PDT) Message-ID: <20180805.172728.867034375923011963.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]:42650 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726870AbeHFCd5 (ORCPT ); Sun, 5 Aug 2018 22:33:57 -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 Mellanox folks, please review.