How to act on a DCMD_IO_NET_TX_FLUSH message?

bridged with qdn.public.ddk.network
Post Reply
Johan Björk

How to act on a DCMD_IO_NET_TX_FLUSH message?

Post by Johan Björk » Sun Nov 30, 2003 11:59 am

Hi everyone

the big stack keep sending DCMD_IO_NET_TX_FLUSH devctl's to my ethernet
driver, how am I to act on this? None of the example drivers or the
documentation mentions it.


Thanks in advance

/Johan Björk

Sean Boudreau

Re: How to act on a DCMD_IO_NET_TX_FLUSH message?

Post by Sean Boudreau » Sun Nov 30, 2003 12:20 pm

You're supposed to return (call ion->tx_done() on) any
packets that have been tx'd. Some drivers do this in
a lazy return fashion and this is supposed to tickle
their tx reap process asynchronously. For 6.2 and the
big stack this was more of a hint (the stack will work
if you ignore it). For 6.3 the stack won't raise this
devctl but other protocols might in a non hint fashion.

So if your driver returns packets 'quickly' or your
only concerned with 6.2 at the moment, you can ignore
it.

-seanb
Hi everyone

the big stack keep sending DCMD_IO_NET_TX_FLUSH devctl's to my ethernet
driver, how am I to act on this? None of the example drivers or the
documentation mentions it.
> Thanks in advance

Post Reply

Return to “qdn.public.ddk.network”