• O
    net: remove noblock parameter from recvmsg() entities · ec095263
    Oliver Hartkopp 提交于
    The internal recvmsg() functions have two parameters 'flags' and 'noblock'
    that were merged inside skb_recv_datagram(). As a follow up patch to commit
    f4b41f06 ("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: NOliver Hartkopp <socketcan@hartkopp.net>
    Link: https://lore.kernel.org/r/20220411124955.154876-1-socketcan@hartkopp.netSigned-off-by: NPaolo Abeni <pabeni@redhat.com>
    ec095263
raw.c 30.3 KB