copy on write for splice() from file to pipe?

Herbert Xu herbert at
Mon Feb 13 09:07:49 UTC 2023

Linus Torvalds <torvalds at> wrote:
>  -     if (!(sk->sk_route_caps & NETIF_F_SG))
>  +     if (!(sk->sk_route_caps & NETIF_F_SG) ||
>  +         !(sk->sk_route_caps & (NETIF_F_HW_CSUM | NETIF_F_IP_CSUM)))
>                return sock_no_sendpage_locked(sk, page, offset, size, flags);

NETIF_F_SG depends on checksum offload so it should already be
calling sock_no_sendpage_locked if checksum offload is not

Email: Herbert Xu <herbert at>
Home Page:
PGP Key:

More information about the samba-technical mailing list