netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: John Linville <linville@tuxdriver.com>
Cc: netdev@vger.kernel.org, Michael Buesch <mb@bu3sch.de>
Subject: [PATCH] bcm43xx: return correct hard_start_xmit error code]
Date: Sat, 19 Aug 2006 10:56:28 -0500	[thread overview]
Message-ID: <44E734AC.2090701@lwfinger.net> (raw)



John,

Please apply the following patch by Michael Buesch to wireless-2.6.

Larry

==============================

hard_start_xmit should return a NETIF_TX_FOO error code.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-Off-By: Larry Finger <Larry.Finger@lwfinger.net>

Index: wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_main.c
===================================================================
--- wireless-2.6.orig/drivers/net/wireless/bcm43xx/bcm43xx_main.c	
+++ wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_main.c	
@@ -3918,7 +3918,9 @@
  		err = bcm43xx_tx(bcm, txb);
  	spin_unlock_irqrestore(&bcm->irq_lock, flags);

-	return err;
+	if (unlikely(err))
+		return NETDEV_TX_BUSY;
+	return NETDEV_TX_OK;
  }

  static struct net_device_stats * bcm43xx_net_get_stats(struct net_device *net_dev)




                 reply	other threads:[~2006-08-19 15:56 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=44E734AC.2090701@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --cc=linville@tuxdriver.com \
    --cc=mb@bu3sch.de \
    --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).