Searched hist:"2 e4781cb12af2d13262ed5decf6fd95c8d58d9f5" (Results 1 – 1 of 1) sorted by relevance
/freebsd/sys/dev/xen/netfront/ |
H A D | netfront.c | diff 2e4781cb12af2d13262ed5decf6fd95c8d58d9f5 Fri Aug 02 15:09:41 CEST 2024 Mark Johnston <markj@FreeBSD.org> xen/netfront: Decouple XENNET tags from mbuf lifetimes
netmap's generic mode tries to improve performance by minimizing mbuf allocations. In service of this goal, it maintains an extra reference to the mbuf and polls the counter to see if the driver has released its reference by calling m_freem(). As a result, the extref destructor is not called when expected by the netfront driver, and mbufs tags are not freed.
Modify the tx path to release its mbuf tags promptly when reclaiming tx descriptors. They are drawn from a fixed-size pool, so otherwise are quickly exhausted when a netfront interface is in netmap generic mode.
Co-authored by: royger MFC after: 2 weeks Fixes: dabb3db7a817 ("xen/netfront: deal with mbuf data crossing a page boundary") Sponsored by: Cloud Software Group Sponsored by: Klara, Inc. Sponsored by: Zenarmor
|