[ECOS] warning: eth_recv out of MBufs

Martin Buck martin.buck@ascom.ch
Thu Feb 21 08:49:00 GMT 2002


Douglas Bush wrote:
> Is my driver supposed to be de-allocating MBUFs?

>From .../io/eth/current/doc/driver_doc:
[...]
Once the data has been successfully sent by the interface (or if an
error occurs), the driver should call 'eth_drv_tx_done()' using the
specified 'key'.  Only then will the upper layers release the resources
for that packet and start another transmission.
[...]

"Resources" in that case are mbufs, so if you don't call tx_done (or use
the wrong key when calling it), you'll leak mbufs.

Martin

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list