All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: "David S. Miller" <davem@davemloft.net>
Cc: netdev@oss.sgi.com
Subject: Re: local_bh_enable & hard_start_xmit
Date: Fri, 22 Apr 2005 12:39:10 -0700	[thread overview]
Message-ID: <426952DE.5090203@candelatech.com> (raw)
In-Reply-To: <20050419231442.7e37b087.davem@davemloft.net>

[-- Attachment #1: Type: text/plain, Size: 594 bytes --]

David S. Miller wrote:
> On Mon, 18 Apr 2005 17:24:52 -0700
> Ben Greear <greearb@candelatech.com> wrote:
> 
> 
>>David S. Miller wrote:
>>
>>
>>>So write the patch to add such comments.  It would have taken the
>>>same amount of typing as writing that paragraph saying how great an
>>>addition this would be. :)
>>
>>Signed-off-by:  Ben Greear <greearb@candelatech.com>
> 
> 
> -EPATCH_MUNGED_BY_MAIL_CLIENT

Sending as attachments this time...plz let me know if these work
better.

Thanks,
Ben



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


[-- Attachment #2: dev.c.patch --]
[-- Type: text/plain, Size: 1099 bytes --]

--- linux-2.6.11/net/core/dev.c	2005-03-01 23:38:09.000000000 -0800
+++ linux-2.6.11.mostly-clean/net/core/dev.c	2005-04-18 17:23:21.000000000 -0700
@@ -1214,6 +1214,19 @@
  *	A negative errno code is returned on a failure. A success does not
  *	guarantee the frame will be transmitted as it may be dropped due
  *	to congestion or traffic shaping.
+ *
+ * -----------------------------------------------------------------------------------
+ *      I notice this method can also return errors from the queue disciplines,
+ *      including NET_XMIT_DROP, which is a positive value.  So, errors can also
+ *      be positive.
+ *
+ *      Regardless of the return value, the skb is consumed, so it is currently
+ *      difficult to retry a send to this method.  (You can bump the ref count
+ *      before sending to hold a reference for retry if you are careful.)
+ *
+ *      When calling this method, interrupts MUST be enabled.  This is because
+ *      the BH enable code must have IRQs enabled so that it will not deadlock.
+ *          --BLG
  */
 
 int dev_queue_xmit(struct sk_buff *skb)

[-- Attachment #3: netdevices.txt.patch --]
[-- Type: text/plain, Size: 562 bytes --]

--- linux-2.6.11/Documentation/networking/netdevices.txt	2005-03-01 23:37:50.000000000 -0800
+++ linux-2.6.11.p4s/Documentation/networking/netdevices.txt	2005-04-18 16:59:43.000000000 -0700
@@ -51,6 +51,8 @@
 	set_multicast_list
 	Context: BHs disabled
 	Notes: netif_queue_stopped() is guaranteed false
+               Interrupts must be enabled when calling hard_start_xmit.
+                (Interrupts must also be enabled when enabling the BH handler.)
 	Return codes: 
 	o NETDEV_TX_OK everything ok. 
 	o NETDEV_TX_BUSY Cannot transmit packet, try later 

  parent reply	other threads:[~2005-04-22 19:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-18 21:37 local_bh_enable & hard_start_xmit Ben Greear
2005-04-18 22:14 ` David S. Miller
2005-04-18 22:59   ` Ben Greear
2005-04-18 23:01     ` David S. Miller
2005-04-18 23:17       ` Ben Greear
2005-04-19  0:24       ` Ben Greear
     [not found]         ` <20050419231442.7e37b087.davem@davemloft.net>
2005-04-22 19:39           ` Ben Greear [this message]
2005-04-25  3:13             ` David S. 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=426952DE.5090203@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=davem@davemloft.net \
    --cc=netdev@oss.sgi.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.