From: Roger Luethi <rl@hellgate.ch>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-kernel@vger.kernel.org, Alan Cox <alan@lxorguk.ukuu.org.uk>,
Jeff Garzik <jgarzik@pobox.com>
Subject: [PATCH][2.5] Fix via-rhine using skb_padto
Date: Tue, 14 Jan 2003 13:45:55 +0100 [thread overview]
Message-ID: <20030114124555.GA1300@k3.hellgate.ch> (raw)
[-- Attachment #1: Type: text/plain, Size: 67 bytes --]
This patch has already made it into 2.4.21pre3-ac4. Please apply.
[-- Attachment #2: via-rhine.c-2.5.58-skb_padto.diff --]
[-- Type: text/plain, Size: 419 bytes --]
--- linux-2.5.58/drivers/net/via-rhine.c.org Tue Jan 14 00:41:30 2003
+++ linux-2.5.58/drivers/net/via-rhine.c Tue Jan 14 13:24:14 2003
@@ -1239,6 +1239,12 @@
/* Calculate the next Tx descriptor entry. */
entry = np->cur_tx % TX_RING_SIZE;
+ if (skb->len < ETH_ZLEN) {
+ skb = skb_padto(skb, ETH_ZLEN);
+ if(skb == NULL)
+ return 0;
+ }
+
np->tx_skbuff[entry] = skb;
if ((np->drv_flags & ReqTxAlign) &&
reply other threads:[~2003-01-14 12:37 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=20030114124555.GA1300@k3.hellgate.ch \
--to=rl@hellgate.ch \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.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