From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xin Long Subject: Re: [PATCH net] powerpc: use big endian to hash len and proto in csum_ipv6_magic Date: Wed, 12 Sep 2018 14:27:38 +0800 Message-ID: References: <9183876a4a8ff0099686521d60f395a5230b67ed.1536401712.git.lucien.xin@gmail.com> <20180911.230105.563027666901362955.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: network dev , linuxppc-dev@lists.ozlabs.org, Christophe Leroy , Michael Ellerman , Roopa Prabhu To: davem Return-path: Received: from mail-it0-f67.google.com ([209.85.214.67]:54938 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725910AbeILLat (ORCPT ); Wed, 12 Sep 2018 07:30:49 -0400 Received: by mail-it0-f67.google.com with SMTP id f14-v6so1532127ita.4 for ; Tue, 11 Sep 2018 23:27:49 -0700 (PDT) In-Reply-To: <20180911.230105.563027666901362955.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Sep 12, 2018 at 2:01 PM David Miller wrote: > > From: Xin Long > Date: Sat, 8 Sep 2018 18:15:12 +0800 > > > The function csum_ipv6_magic doesn't convert len and proto to big > > endian before doing ipv6 csum hash, which is not consistent with > > RFC and other arches. > > > > Jianlin found it when ICMPv6 packets from other hosts were dropped > > in the powerpc64 system. > > > > This patch is to fix it by using instruction 'lwbrx' to do this > > conversion in powerpc32/64 csum_ipv6_magic. > > > > Fixes: e9c4943a107b ("powerpc: Implement csum_ipv6_magic in assembly") > > Reported-by: Jianlin Shi > > Signed-off-by: Xin Long > > Xin, please address the feedback you were given. Christophe posted another one, https://lore.kernel.org/patchwork/patch/983905/ Sorry, I didn't notice netdev wasn't in its CC-list.