On Thu, Oct 29, 2015 at 10:35:25PM +0000, David Woodhouse wrote: > > > > Could this be mitigated using pools? I don't know if the net code > > would play along easily. > > For the receive side, it shouldn't be beyond the wit of man to > introduce an API which allocates *and* DMA-maps a skb. Pass it to > netif_rx() still mapped, with a destructor that just shoves it back in > a pool for re-use. > > Doing it for transmit might be a little more complex, but perhaps still > possible. Not sure this use case is possible for Infiniband where application hold the data buffers and there is no way to force application to re use the buffer as suggested. This is why I think there will be no easy way to bypass the DMA mapping cost for all use cases unless we allow applications to request bypass/pass through DMA mapping (implicitly or explicitly). > > -- > dwmw2 > -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html