Re: patches for if_iwi and wlan for WEP mode

看板FB_current作者時間14年前 (2012/03/09 04:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串20/20 (看更多)
On 8 March 2012 07:43, John Baldwin <jhb@freebsd.org> wrote: > However, you could do that by having a net80211_ifattach() type thing tha= t > sets if_transmit and invokes the driver-provided if_start. =A0I don't thi= nk > wireless devices are using multiple transmit queues in such a way that > if_transmit would be a benefit, and if_start is a simpler model. THe problem is that the default if_transmit uses IFQ_ENQUEUE and the _start() versions out there use IFQ_DEQUEUE without necessarily handling fragments at all. We end up having m->m_nextpkt NULL'ed upon IFQ_ENQUEUE, thus not only making a fragment list entirely broken, the fragments themselves are actually leaked. So we end up running out of mbufs. The solution I can see working at the moment is creating if_transmit for each wireless device and correctly handling any fragments in the head mbuf before calling IFQ_DEQUEUE. Adrian _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1FMG__GR (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1FMG__GR (FB_current)