public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Joakim Tjernlund" <Joakim.Tjernlund@lumentis.se>
To: "Jeff Garzik" <jgarzik@pobox.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: NETIF_F_SG question
Date: Sun, 2 Feb 2003 02:39:41 +0100	[thread overview]
Message-ID: <001501c2ca5b$f4b45990$020120b0@jockeXP> (raw)
In-Reply-To: 3E3C0684.4010806@pobox.com

> Joakim Tjernlund wrote:
> > I am thinking of implementing harware scatter/gatter support( NETIF_F_SG) in my 
> > ethernet driver. The network device cannot do HW checksuming.
> > 
> > Will the IP stack make use of the SG support and will there be any significant performance
> > improvement?
> 
> 
> No; you need HW checksumming for NETIF_F_SG to be useful.
> 
> If HW checksumming is not available, scatter-gather is useless, because 
> the net stack must always make a pass over the data to checksum it. 
> Since it must do that, it can linearize the skb at the same time, 
> eliminating the need for SG.
> 
> Jeff

I think HW checksumming and SG are independent. Either one of them should
not require the other one in any context.

Zero copy sendfile() does not require HW checksum to do zero copy, right?
If HW checksum is present, then you get some extra performance as a bonus.

(hmm, one could make SG mandatory and the devices that don't support it can 
 implement it in their driver. Just an idea)

   Jocke

  parent reply	other threads:[~2003-02-02  1:30 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 [this message]
2003-02-03 21:18     ` Ion Badulescu
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='001501c2ca5b$f4b45990$020120b0@jockeXP' \
    --to=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