ifnet_output_raw() frees all packets?
ifnet_output_raw() frees all packets?
- Subject: ifnet_output_raw() frees all packets?
- From: Brian Doyle <email@hidden>
- Date: Fri, 17 Mar 2006 03:02:54 -0800
I'm wondering if someone with a bit more hardware experience with
ethernet controllers would mind sanity checking this observation:
The docs for ifnet_output_raw() in kpi_interface.h say that the
(mbuf_t) packet passed to the routine will be freed in the event of
an error. Looking through IONetworkController::outputPacket() and
BCM440X::outputPacket() it looks like even if there *isn't* an error
the packet will be freed (in the case of noErr on a real controller
the packet is put onto the ethernet ring buffer and then freed after
transmission during serviceTxInterrupt()).
Am I interpreting the source correctly and should the docs for
kpi_interface.h be updated to reflect this?
Thanks!
Brian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden