mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Whitehouse <steve@chygwyn.com>
To: kernel coder <lhrkernelcoder@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: zero copy
Date: Tue, 6 Dec 2005 12:28:57 +0000	[thread overview]
Message-ID: <20051206122857.GA11688@souterrain.chygwyn.com> (raw)
In-Reply-To: <f69849430512060409k1798e377h442e42bbf17b0d8a@mail.gmail.com>

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/

  reply	other threads:[~2005-12-06 12:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-06 12:09 kernel coder
2005-12-06 12:28 ` Steven Whitehouse [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-02-07 10:04 Emiliano Gabrielli
2003-02-06 23:07 Venkat Raghu
2002-03-12  8:59 Rogier Wolff
2002-03-12  9:07 ` Andi Kleen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051206122857.GA11688@souterrain.chygwyn.com \
    --to=steve@chygwyn.com \
    --cc=lhrkernelcoder@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®