netdev
[Top] [All Lists]

return values for hard_start_xmit and dev_queue_xmit

To: "'netdev@xxxxxxxxxxx'" <netdev@xxxxxxxxxxx>
Subject: return values for hard_start_xmit and dev_queue_xmit
From: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Date: Wed, 13 Oct 2004 11:34:14 -0700
Organization: Candela Technologies
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913
While trying to get pktgen to effectively use VLANs to send traffic,
I noticed that the vlan code always returns 0 from it's hard_start_xmit
method.  Since it calls dev_queue_xmit inside that method, I tried
returning the value that dev_queue_xmit returns.  It seems that the
return values have different meanings because this causes crashes due
to freeing skbs when I shouldn't be...

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.

Does anyone know if there is a definative guide to the return values
for hard_start_xmit?

Thanks,
Ben

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


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