Commit 81b4a0cc authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

sock: fix error in sock_setsockopt()

Some tests are failing, John bisected the issue to a recent commit.

sock_set_timestamp() parameters should be :

1) sk
2) optname
3) valbool

Fixes: 371087aa ("sock: expose so_timestamp options for mptcp")
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Bisected-by: default avatarJohn Sperbeck <jsperbeck@google.com>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: Florian Westphal <fw@strlen.de>
Cc: Mat Martineau <mathew.j.martineau@linux.intel.com>
Reviewed-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 561022ac
...@@ -1116,7 +1116,7 @@ int sock_setsockopt(struct socket *sock, int level, int optname, ...@@ -1116,7 +1116,7 @@ int sock_setsockopt(struct socket *sock, int level, int optname,
case SO_TIMESTAMP_NEW: case SO_TIMESTAMP_NEW:
case SO_TIMESTAMPNS_OLD: case SO_TIMESTAMPNS_OLD:
case SO_TIMESTAMPNS_NEW: case SO_TIMESTAMPNS_NEW:
sock_set_timestamp(sk, valbool, optname); sock_set_timestamp(sk, optname, valbool);
break; break;
case SO_TIMESTAMPING_NEW: case SO_TIMESTAMPING_NEW:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment