selftests: tls: fix chacha+bidir tests
authorJakub Kicinski <kuba@kernel.org>
Fri, 18 Jun 2021 20:25:04 +0000 (13:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jun 2021 19:11:31 +0000 (12:11 -0700)
commit291c53e4dacd3a2cc3152d8af37f07f8496c594a
treef1b7aa8b3be7cc406b3dbba25ea8b8f74597f914
parentbaa00119d69e3318da8d99867fc1170ebddf09ce
selftests: tls: fix chacha+bidir tests

ChaCha support did not adjust the bidirectional test.
We need to set up KTLS in reverse direction correctly,
otherwise these two cases will fail:

  tls.12_chacha.bidir
  tls.13_chacha.bidir

Fixes: 4f336e88a870 ("selftests/tls: add CHACHA20-POLY1305 to tls selftests")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Vadim Fedorenko <vfedorenko@novek.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/tls.c