From: Ion Badulescu <ionut@badula.org>
To: "Joakim Tjernlund" <Joakim.Tjernlund@lumentis.se>
Cc: "Jeff Garzik" <jgarzik@pobox.com>, <linux-kernel@vger.kernel.org>
Subject: Re: NETIF_F_SG question
Date: Mon, 3 Feb 2003 16:18:41 -0500 [thread overview]
Message-ID: <200302032118.h13LIfqN006832@buggy.badula.org> (raw)
In-Reply-To: <001501c2ca5b$f4b45990$020120b0@jockeXP>
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.
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...
> (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.
Ion
[starfire driver maintainer]
--
It is better to keep your mouth shut and be thought a fool,
than to open it and remove all doubt.
next prev parent reply other threads:[~2003-02-03 21:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-01 15:08 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 [this message]
2003-02-03 22:22 ` Joakim Tjernlund
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=200302032118.h13LIfqN006832@buggy.badula.org \
--to=ionut@badula.org \
--cc=Joakim.Tjernlund@lumentis.se \
--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
all inboxes | Powered by JetHome®