]> git.baikalelectronics.ru Git - kernel.git/commit
mellanox: fix the dport endianness in call of __inet6_lookup_established()
authorAl Viro <viro@ZenIV.linux.org.uk>
Sat, 4 Aug 2018 20:41:27 +0000 (21:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Aug 2018 17:30:50 +0000 (10:30 -0700)
commit6587a841ada85c7f0ae5836e9ca2c28a1916547d
treed5924ee304f71f951942aa8b096c565afa92e9b7
parent155e912bd8789d37c0534e3e6746ea1e6f679b0f
mellanox: fix the dport endianness in call of __inet6_lookup_established()

__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 <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c