Re: [PATCH] powerpc: fix csum_ipv6_magic() on little endian platforms

2018-09-17 Thread Christophe LEROY
Hi Michael, Le 10/09/2018 à 16:28, Xin Long a écrit : On Mon, Sep 10, 2018 at 2:09 PM Christophe Leroy wrote: On little endian platforms, csum_ipv6_magic() keeps len and proto in CPU byte order. This generates a bad results leading to ICMPv6 packets from other hosts being dropped by powerpc64

Re: [PATCH] powerpc: fix csum_ipv6_magic() on little endian platforms

2018-09-10 Thread Xin Long
On Mon, Sep 10, 2018 at 2:09 PM Christophe Leroy wrote: > > On little endian platforms, csum_ipv6_magic() keeps len and proto in > CPU byte order. This generates a bad results leading to ICMPv6 packets > from other hosts being dropped by powerpc64le platforms. > > In order to fix this, len and pro

[PATCH] powerpc: fix csum_ipv6_magic() on little endian platforms

2018-09-09 Thread Christophe Leroy
On little endian platforms, csum_ipv6_magic() keeps len and proto in CPU byte order. This generates a bad results leading to ICMPv6 packets from other hosts being dropped by powerpc64le platforms. In order to fix this, len and proto should be converted to network byte order ie bigendian byte order