summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/en_accel
diff options
context:
space:
mode:
authorAl Viro2018-08-04 22:41:27 +0200
committerDavid S. Miller2018-08-06 19:30:50 +0200
commitbe1459de2eea3619dbbb8f1f9a420e103a85986a (patch)
treed5924ee304f71f951942aa8b096c565afa92e9b7 /drivers/net/ethernet/mellanox/mlx5/core/en_accel
parenttc-testing: remove duplicate spaces in skbedit match patterns (diff)
downloadkernel-qcow2-linux-be1459de2eea3619dbbb8f1f9a420e103a85986a.tar.gz
kernel-qcow2-linux-be1459de2eea3619dbbb8f1f9a420e103a85986a.tar.xz
kernel-qcow2-linux-be1459de2eea3619dbbb8f1f9a420e103a85986a.zip
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_accel')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c
index 92d37459850e..be137d4a9169 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c
@@ -328,7 +328,7 @@ static int tls_update_resync_sn(struct net_device *netdev,
sk = __inet6_lookup_established(dev_net(netdev), &tcp_hashinfo,
&ipv6h->saddr, th->source,
- &ipv6h->daddr, th->dest,
+ &ipv6h->daddr, ntohs(th->dest),
netdev->ifindex, 0);
#endif
}