This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: warning: eth_recv out of MBufs
- From: Martin Buck <martin dot buck at ascom dot ch>
- To: ecos-discuss at sources dot redhat dot com
- Date: Thu, 21 Feb 2002 16:38:57 +0100
- Subject: Re: [ECOS] warning: eth_recv out of MBufs
- Newsgroups: local.ecos.discuss
- Organization: Ascom Systec AG
- References: <00ab01c1ba64$aab418b0$090110ac@TRENT>
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