Re: [PATCH] mellanox: fix the dport endianness in call of __inet6_lookup_established()

2018-08-06 Thread David Miller
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:

Re: [PATCH] mellanox: fix the dport endianness in call of __inet6_lookup_established()

2018-08-06 Thread Boris Pismenny
On 8/6/2018 3:27 AM, David Miller wrote: 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

Re: [PATCH] mellanox: fix the dport endianness in call of __inet6_lookup_established()

2018-08-05 Thread David Miller
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:

[PATCH] mellanox: fix the dport endianness in call of __inet6_lookup_established()

2018-08-04 Thread Al Viro
__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 --- diff --git a/drivers/net/ethernet/mellanox/mlx5/core