On Fri, Apr 10, 2020 at 07:16:24AM -0700, Jason Thorpe wrote: > > > On Apr 10, 2020, at 4:44 AM, m...@netbsd.org <m...@netbsd.org> wrote: > > > > I had to stop using m_defrag because implementation details broke > > bwfm@pci. It can only handle a chain of length 1, and m_defrag gives > > a minimum of 2. > > Exactly. If it can compact the packet into a single cluster mbuf, it should > do so. It makes it slightly more difficult to use correctly, but those would > be better semantics. > > -- thorpej >
At the time people brought up freebsd m_collapse or pre-allocating and using m_copydata. I haven't tried either, and bwfm@pci stopped working entirely for me anyway.