From: Ben Hutchings <bhutchings@solarflare.com>
To: thomas yang <lampsu@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: Ethernet CRC questions
Date: Tue, 29 Dec 2009 18:39:36 +0100 [thread overview]
Message-ID: <1262108376.5941.5.camel@localhost> (raw)
In-Reply-To: <f4f837ab0912290917h626bcfecy34fe095a878e733c@mail.gmail.com>
On Wed, 2009-12-30 at 01:17 +0800, thomas yang wrote:
> How does Linux generate Ethernet CRC ?
> by the hardware (Ethernet controller) or use crc32_le() /
> crc32_be() ( lib/crc32.c ) ?
>
> P.S. my network card is rtl8139d , use 8139too driver
The Ethernet frame CRC is normally generated and verified in hardware.
These library functions are needed for the few MACs that don't, or where
the same CRC function is used for some other purpose (e.g. as a hash
function for multicast filtering).
Ben.
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
next prev parent reply other threads:[~2009-12-29 17:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-29 17:17 Ethernet CRC questions thomas yang
2009-12-29 17:39 ` Ben Hutchings [this message]
2009-12-30 5:53 ` thomas yang
2009-12-30 6:43 ` Matti Aarnio
2009-12-30 10:37 ` Ben Hutchings
2009-12-30 16:19 ` thomas yang
2009-12-30 16:29 ` Ben Hutchings
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=1262108376.5941.5.camel@localhost \
--to=bhutchings@solarflare.com \
--cc=lampsu@gmail.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).