]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: net: tcp_mmap: fix SO_RCVLOWAT setting
authorEric Dumazet <edumazet@google.com>
Wed, 6 May 2020 16:21:15 +0000 (09:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 May 2020 22:01:30 +0000 (15:01 -0700)
commita32c28b1788458d609bf0cce74d40b9d01d7bc9d
tree785e03e9831197f6be9ae736575127951ee83fb7
parent8307f245b2b2ad6135c4ebb4c3c80c583be7becf
selftests: net: tcp_mmap: fix SO_RCVLOWAT setting

Since chunk_size is no longer an integer, we can not
use it directly as an argument of setsockopt().

This patch should fix tcp_mmap for Big Endian kernels.

Fixes: adcc5e556eae ("selftests: net: avoid ptl lock contention in tcp_mmap")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Soheil Hassas Yeganeh <soheil@google.com>
Cc: Arjun Roy <arjunroy@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/tcp_mmap.c