selftests: tls: swap the TX and RX sockets in some tests
authorSabrina Dubroca <sd@queasysnail.net>
Tue, 12 Sep 2023 14:16:25 +0000 (16:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Sep 2023 06:41:39 +0000 (07:41 +0100)
commitc326ca98446e0ae4fee43a40acf79412b74cfedb
tree0b0cadabe1a803cf7cb8c4c7ea513d16eb821a58
parent63a2de8d16b3ecd607c077c98f8d6cd0147ec099
selftests: tls: swap the TX and RX sockets in some tests

tls.sendmsg_large and tls.sendmsg_multiple are trying to send through
the self->cfd socket (only configured with TLS_RX) and to receive through
the self->fd socket (only configured with TLS_TX), so they're not using
kTLS at all. Swap the sockets.

Fixes: 7f657d5bf507 ("selftests: tls: add selftests for TLS sockets")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/tls.c