Subject: Re: return values for hard_start_xmit and dev_queue_xmit

From: Ben Greear <[email-masked]>
Date: Wed, 13 Oct 2004 11:53:37 -0700

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 <[email-masked]>
Candela Technologies Inc  http://www.candelatech.com