netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Divy Le Ray <divy@chelsio.com>, NetDev <netdev@vger.kernel.org>
Subject: Problem with cxgb, mac-vlans, and UDP checksum offloading.
Date: Tue, 11 Dec 2007 10:25:26 -0800	[thread overview]
Message-ID: <475ED616.6070903@candelatech.com> (raw)

Hello!

This is with kernel 2.6.23, plus our hacks, but the mac-vlan logic
is part of the official kernel now.  OS is Fedora 8.  I have applied
patch 1 and 3 of those sent a few weeks ago for the cxgb as well.

While testing NFS on mac-vlans on cxgb, we noticed that
UDP packets have incorrect checksums when sent from
the mac-vlan device on a cxgb interface to another system.  When sending
from a regular ethernet device (cxgb), it works fine.
When we disable rx and tx UDP checksums on the mac-vlan
device, it works fine.  When we use e1000 interfaces (which
also do rx/tx UDP checksumming), mac-vlans & NFS works fine
with mac-vlan rx/tx checksumming on (the default value).

So, there seems something weird about the cxgb NIC when
used with mac-vlans.  Perhaps it is somehow paying attention
to MAC addresses when it determines if it should csum a packet
or not?

If you want to test it yourself, grab the latest iputils package
and create MAC-VLANs like this:

ip link add link eth0 name eth0#0 address 00:11:22:33:44:55 type macvlan


If you would like a packet trace or any other debugging, please
let me know.

Thanks,
Ben


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


                 reply	other threads:[~2007-12-11 18:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=475ED616.6070903@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=divy@chelsio.com \
    --cc=netdev@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;
as well as URLs for NNTP newsgroup(s).