netdev
[Top] [All Lists]

Re: return values for hard_start_xmit and dev_queue_xmit

To: "'netdev@xxxxxxxxxxx'" <netdev@xxxxxxxxxxx>
Subject: Re: return values for hard_start_xmit and dev_queue_xmit
From: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Date: Wed, 13 Oct 2004 11:53:37 -0700
In-reply-to: <416D7526.8050206@xxxxxxxxxxxxxxx>
Organization: Candela Technologies
References: <416D7526.8050206@xxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913
Ben Greear wrote:

The dev_queue_xmit method is fairly well documented in dev.c, but
there are zero comments in the netdevice.h file to explain what the
acceptable return values for hard_start_xmit are.

Actually, looks like I'm wrong here.  The comments in dev.c say that
error codes are < 0, but in fact, this can easily return NET_XMIT_DROP
which is a positive value (1).

Maybe the truth is that any non-zero return value from dev_queue_xmit
is an error?

Ben

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


<Prev in Thread] Current Thread [Next in Thread>