Re: [PATCH net] powerpc: use big endian to hash len and proto in csum_ipv6_magic

2018-09-11 Thread Xin Long
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 fou

Re: [PATCH net] powerpc: use big endian to hash len and proto in csum_ipv6_magic

2018-09-11 Thread Christophe LEROY
Le 12/09/2018 à 08:01, David Miller a écrit : 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 fr

Re: [PATCH net] powerpc: use big endian to hash len and proto in csum_ipv6_magic

2018-09-11 Thread David Miller
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 powe

Re: [PATCH net] powerpc: use big endian to hash len and proto in csum_ipv6_magic

2018-09-08 Thread LEROY Christophe
Xin Long a écrit : 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 us

[PATCH net] powerpc: use big endian to hash len and proto in csum_ipv6_magic

2018-09-08 Thread Xin Long
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'