From: "Joakim Tjernlund" <Joakim.Tjernlund@lumentis.se>
To: "Ion Badulescu" <ionut@badula.org>
Cc: "Jeff Garzik" <jgarzik@pobox.com>, <linux-kernel@vger.kernel.org>
Subject: Re: NETIF_F_SG question
Date: Mon, 3 Feb 2003 23:22:34 +0100 [thread overview]
Message-ID: <006a01c2cbd2$bff0b870$020120b0@jockeXP> (raw)
In-Reply-To: 200302032118.h13LIfqN006832@buggy.badula.org
> On Sun, 2 Feb 2003 02:39:41 +0100, Joakim Tjernlund <Joakim.Tjernlund@lumentis.se> wrote:
> >
> > I think HW checksumming and SG are independent. Either one of them should
> > not require the other one in any context.
>
> They should be independent in general, but they aren't when the particular
> case of TCP/IPv4 is concerned.
>
> > Zero copy sendfile() does not require HW checksum to do zero copy, right?
>
> Wrong...
>
> > If HW checksum is present, then you get some extra performance as a bonus.
>
> You get zerocopy, yes. :-) No HW cksum, no zerocopy.
OK, but it should be easy to remove HW cksum as a condition to do zerocopy?
>
> Don't let this stop you, however. It's always possible that other networking
> stacks will eventually make use of SG while not requiring HW TCP/UDP cksums.
> None of them do right now, but...
zerocopy without requiring HW cksums only OR could for instance the forwarding
procdure also benefit from SG without requiring HW cksums?
>
> > (hmm, one could make SG mandatory and the devices that don't support it can
> > implement it in their driver. Just an idea)
>
> Not really, that way lies driver madness. The less complexity in the driver,
> the better.
Just a wild idea, forget it. You are right
Joakim
>
> Ion
> [starfire driver maintainer]
next prev parent reply other threads:[~2003-02-03 22:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-01 15:08 NETIF_F_SG question Joakim Tjernlund
2003-02-01 17:40 ` Jeff Garzik
2003-02-01 18:42 ` Joakim Tjernlund
2003-02-01 19:16 ` romieu
2003-02-01 22:16 ` Joakim Tjernlund
2003-02-02 1:39 ` Joakim Tjernlund
2003-02-03 21:18 ` Ion Badulescu
2003-02-03 22:22 ` Joakim Tjernlund [this message]
2003-02-03 22:34 ` Ion Badulescu
2003-02-03 22:44 ` Joakim Tjernlund
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='006a01c2cbd2$bff0b870$020120b0@jockeXP' \
--to=joakim.tjernlund@lumentis.se \
--cc=ionut@badula.org \
--cc=jgarzik@pobox.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