From: Stephen Hemminger <shemminger@linux-foundation.org>
To: Al Viro <viro@ZenIV.linux.org.uk>
Cc: netdev@vger.kernel.org
Subject: Re: [RFC] skge csum problems
Date: Thu, 27 Dec 2007 11:31:46 -0800 [thread overview]
Message-ID: <20071227113146.758f0cce@deepthought> (raw)
In-Reply-To: <20071224194523.GA27894@ZenIV.linux.org.uk>
On Mon, 24 Dec 2007 19:45:23 +0000
Al Viro <viro@ZenIV.linux.org.uk> wrote:
> On Mon, Dec 24, 2007 at 11:36:38AM -0800, Stephen Hemminger wrote:
> > > you will get the same behaviour on big- and little-endian boxen, even though
> > > the intermediate integer values will be of course different.
> > >
> > > skb->csum *must* be stored in the same order on l-e and b-e boxen; that
> > > way you don't need to convert it or raw data when updating the sucker [*].
> > >
> > > [*] it's slightly more complicated since skb->csum is 4-byte, not 2-byte
> > > and the real invariant is "checksum of 4-octet array at &skb->csum must
> > > not depend on host" (so e.g XX YY 00 00 and 00 00 XX YY are equivalent -
> > > checksum doesn't change from reordering octet pairs; XX YY 00 00 and
> > > 00 00 YY XX are very definitely *NOT* equivalent; odd and even bytes
> > > can't be exchanged).
> >
> > Did you test this on real hardware?
>
> Test _what_ on real hardware? That kernel expects skb->csum fixed-endian?
> That csum_add() and friends work? Yes to both.
>
> If you are asking whether I'd tested what skge does to csum in its rx
> descriptors when asked to byteswap - as I've said, all skge-handled stuff
> I have is on-board in little-endian boxen. Thus asking for folks who
> could test it on big-endian and see what does that sucker actually do...
I'll wait for 2.6.25 then. I am just concerned about how real hardware
interprets the byte swap PCI flag. I'll see if I can find some cost
competitive bigendian hardware.
--
Stephen Hemminger <stephen.hemminger@vyatta.com>
prev parent reply other threads:[~2007-12-27 19:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-24 9:43 [RFC] skge csum problems Al Viro
2007-12-24 13:15 ` Andi Kleen
2007-12-24 18:39 ` Al Viro
2007-12-24 19:36 ` Stephen Hemminger
2007-12-24 19:45 ` Al Viro
2007-12-27 19:31 ` Stephen Hemminger [this message]
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=20071227113146.758f0cce@deepthought \
--to=shemminger@linux-foundation.org \
--cc=netdev@vger.kernel.org \
--cc=viro@ZenIV.linux.org.uk \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.