From: "Michał Mirosław" <mirqus@gmail.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] hamachi: Delete TX checksumming code commented out since 1999
Date: Sat, 7 May 2011 09:59:28 +0200 [thread overview]
Message-ID: <BANLkTi=ZeY6X1XOdK2UXsODNBqzbbG+4KQ@mail.gmail.com> (raw)
In-Reply-To: <20110506.115945.104066424.davem@davemloft.net>
2011/5/6 David Miller <davem@davemloft.net>:
>
> TX checksumming support has been ifdef commented out of this driver
> for more than 10 years, and it makes references to aspects of the IPv4
> stack from back then as well.
>
> If someone has one of these rare cards and wants to properly resurrect
> TX checksumming support, they can still get at this code in the
> version control history.
>
> Signed-off-by: David S. Miller <davem@davemloft.net>
> ---
>
> I stumbled over this cruft while auditing ip_queue_xmit() users.
>
> drivers/net/hamachi.c | 79 -------------------------------------------------
> 1 files changed, 0 insertions(+), 79 deletions(-)
>
> diff --git a/drivers/net/hamachi.c b/drivers/net/hamachi.c
> index 80d25ed..f5fba73 100644
> --- a/drivers/net/hamachi.c
> +++ b/drivers/net/hamachi.c
> @@ -132,14 +132,8 @@ static int tx_params[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
> /*
> * RX_CHECKSUM turns on card-generated receive checksum generation for
> * TCP and UDP packets. Otherwise the upper layers do the calculation.
> - * TX_CHECKSUM won't do anything too useful, even if it works. There's no
> - * easy mechanism by which to tell the TCP/UDP stack that it need not
> - * generate checksums for this device. But if somebody can find a way
> - * to get that to work, most of the card work is in here already.
> * 3/10/1999 Pete Wyckoff <wyckoff@ca.sandia.gov>
> */
> -#undef TX_CHECKSUM
> -#define RX_CHECKSUM
This also disables RX checksumming. You wanted to leave '#define
RX_CHECKSUM' in place?
Best Regards,
Michał Mirosław
next prev parent reply other threads:[~2011-05-07 7:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-06 18:59 [PATCH] hamachi: Delete TX checksumming code commented out since 1999 David Miller
2011-05-07 7:59 ` Michał Mirosław [this message]
2011-05-07 8:02 ` David Miller
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='BANLkTi=ZeY6X1XOdK2UXsODNBqzbbG+4KQ@mail.gmail.com' \
--to=mirqus@gmail.com \
--cc=davem@davemloft.net \
--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).