Re: net device tx handler (hard_start_xmit) return code ?

David Woodhouse (dwmw2@cam.ac.uk)
Fri, 05 Dec 1997 18:19:12 +0000


MTross@compu-shack.com said:
> we have written a linux network device driver with an ethernet
> interface, developed using the skeleton device driver. But now - with
> kernel 2.0.34 - we ran into a problem with the transmit handler. My
> question is: what should be done in the transmit handler if the device
> is not ready to transmit another packet?

It's been a while, but shouldn't you keep dev->tbusy set at all times when
you're not capable of sending? Then if the kernel calls dev->hard_start_xmit
while dev->tbusy is set, then you're justified in whinging a lot and dropping
the packet.

-- 
----                              ----                              ----
David Woodhouse, Robinson College, CB3 9AN, England.   (+44) 0976 658355
	dwmw2@cam.ac.uk		http://dwmw2.robinson.cam.ac.uk
	    finger pgp@dwmw2.robinson.cam.ac.uk for PGP key.