]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/tls: Add MSG_WAITALL in recv() syscall
authorVakul Garg <vakul.garg@nxp.com>
Sun, 16 Sep 2018 04:34:28 +0000 (10:04 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Sep 2018 15:15:03 +0000 (08:15 -0700)
commit99623cbcec17b7b263eb38cb56af8a72026de8ab
tree228109b9280f689f509ce0fd5bb9a69a0186efce
parentba9745a04f5444cd0244dd2330a1223619bc17b1
selftests/tls: Add MSG_WAITALL in recv() syscall

A number of tls selftests rely upon recv() to return an exact number of
data bytes. When tls record crypto is done using an async accelerator,
it is possible that recv() returns lesser than expected number bytes.
This leads to failure of many test cases. To fix it, MSG_WAITALL has
been used in flags passed to recv() syscall.

Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/tls.c