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)
commita84724178bd7081cf3bd5b558616dd6a9a4ca63b
tree785e03e9831197f6be9ae736575127951ee83fb7
parentf5dda315b63775fe00f5470687d40ce801ddfb38
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: 597b01edafac ("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