Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Tomas Winkler <tomasw@gmail.com>
Cc: Ron Rindjunsky <ron.rindjunsky@intel.com>,
	linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: iwlwifi and tx info in skb->cb
Date: Fri, 09 May 2008 01:20:15 +0200	[thread overview]
Message-ID: <1210288815.3547.88.camel@johannes.berg> (raw)
In-Reply-To: <1210288662.3547.85.camel@johannes.berg> (sfid-20080509_011655_234582_DBEBB846)

[-- Attachment #1: Type: text/plain, Size: 923 bytes --]

On Fri, 2008-05-09 at 01:17 +0200, Johannes Berg wrote:
> > >  That's not really related to wireless at all, if you want to do
> > >  zero-copy IO then you need to checksum when the stuff hits the wire
> > >  which means out of hardware buffers, which some hardware (including
> > >  802.11) doesn't support so you need to copy, nothing wireless specific
> > >  here :)
> > >
> > 
> > The FCS/CRS checksum of the wireless packet is performed in the HW but
> > why should I care about IP layer?
> 
> Because the data you're sending is sent via TCP?

Basically, it boils down to this:

If you want to checksum the data in software then you need to checksum a
snapshot of the data and not allow the application to modify it after
you have checksummed it, so you need to make a copy and then checksum it
after copying. But if you're making a copy anyway, you can put it all
into one buffer too.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

  reply	other threads:[~2008-05-08 23:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-07 22:01 iwlwifi and tx info in skb->cb Johannes Berg
2008-05-07 23:29 ` Tomas Winkler
2008-05-07 23:30   ` Johannes Berg
2008-05-08  0:21     ` Tomas Winkler
2008-05-08 14:05       ` Johannes Berg
2008-05-08 22:07         ` Tomas Winkler
2008-05-08 22:10           ` Johannes Berg
2008-05-08 22:28             ` Tomas Winkler
2008-05-08 22:30               ` Johannes Berg
2008-05-08 23:16                 ` Tomas Winkler
2008-05-08 23:17                   ` Johannes Berg
2008-05-08 23:20                     ` Johannes Berg [this message]
2008-05-08 23:20                   ` David Miller
2008-05-08 23:30                     ` Tomas Winkler

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=1210288815.3547.88.camel@johannes.berg \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=ron.rindjunsky@intel.com \
    --cc=tomasw@gmail.com \
    /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