net: remove noblock parameter from recvmsg() entities
authorOliver Hartkopp <socketcan@hartkopp.net>
Mon, 11 Apr 2022 12:49:55 +0000 (14:49 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 12 Apr 2022 13:00:25 +0000 (15:00 +0200)
commitec095263a965720e1ca39db1d9c5cd47846c789b
treef88e25dfa22ee4da19c1cba18eac627aec42aebb
parentf01598090048f5f732ea7aa64b2f194131ce60d2
net: remove noblock parameter from recvmsg() entities

The internal recvmsg() functions have two parameters 'flags' and 'noblock'
that were merged inside skb_recv_datagram(). As a follow up patch to commit
f4b41f062c42 ("net: remove noblock parameter from skb_recv_datagram()")
this patch removes the separate 'noblock' parameter for recvmsg().

Analogue to the referenced patch for skb_recv_datagram() the 'flags' and
'noblock' parameters are unnecessarily split up with e.g.

err = sk->sk_prot->recvmsg(sk, msg, size, flags & MSG_DONTWAIT,
                           flags & ~MSG_DONTWAIT, &addr_len);

or in

err = INDIRECT_CALL_2(sk->sk_prot->recvmsg, tcp_recvmsg, udp_recvmsg,
                      sk, msg, size, flags & MSG_DONTWAIT,
                      flags & ~MSG_DONTWAIT, &addr_len);

instead of simply using only flags all the time and check for MSG_DONTWAIT
where needed (to preserve for the formerly separated no(n)block condition).

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Link: https://lore.kernel.org/r/20220411124955.154876-1-socketcan@hartkopp.net
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
37 files changed:
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls.h
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c
include/net/ping.h
include/net/sctp/sctp.h
include/net/sock.h
include/net/tcp.h
include/net/tls.h
include/net/udp.h
net/core/sock.c
net/dccp/dccp.h
net/dccp/proto.c
net/ieee802154/socket.c
net/ipv4/af_inet.c
net/ipv4/ping.c
net/ipv4/raw.c
net/ipv4/tcp.c
net/ipv4/tcp_bpf.c
net/ipv4/udp.c
net/ipv4/udp_bpf.c
net/ipv4/udp_impl.h
net/ipv6/af_inet6.c
net/ipv6/raw.c
net/ipv6/udp.c
net/ipv6/udp_impl.h
net/l2tp/l2tp_ip.c
net/l2tp/l2tp_ip6.c
net/mptcp/protocol.c
net/phonet/datagram.c
net/phonet/pep.c
net/sctp/socket.c
net/sctp/ulpevent.c
net/sunrpc/svcsock.c
net/sunrpc/xprtsock.c
net/tls/tls_sw.c
net/unix/af_unix.c
net/unix/unix_bpf.c
net/xfrm/espintcp.c