lkml.org 
[lkml]   [2005]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: zero copy
    Hi,

    See sock_no_sendpage() in linux/net/core/sock.c for when network
    protocols don't support zerocopy and tcp_sendpage() in
    linux/net/ipv4/tcp.c for an example where it is supported. The
    NETIF_F_SG and TCP_ZC_CSUM_FLAGS test in the latter function
    is probably what you are after?

    Steve.

    On Tue, Dec 06, 2005 at 04:09:30AM -0800, kernel coder wrote:
    > hi,
    > i'm trying to track the code flow of sendfile system call.Mine
    > ethernet card doesn't have scatter gather and checksum calculation
    > features.So stack should be making a copy of data.
    >
    > Please tell me where in sendfile code flow,check for scatter gather
    > and cecksum features is made so that stack can decide whether to copy
    > data from user space or not.
    >
    > lhrkernelcoder
    > -
    > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    > the body of a message to majordomo@vger.kernel.org
    > More majordomo info at http://vger.kernel.org/majordomo-info.html
    > Please read the FAQ at http://www.tux.org/lkml/
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-12-06 13:21    [W:5.327 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site