Qin Chuanyu <[email protected]> writes:
> udp packet use 2 buffers at least, one for vnet_hdr and
> one for skb->data.
> we could change the threshold from 2 to 3, so the udp packet
> which data buff only using single desc will gain from this.
> the guest would avoid from allocating memory dynamically.
> the host would avoid from translating indirect desc.
>
> Signed-off-by: Chuanyu Qin <[email protected]>

We should really adapt the threshold depending on how full the ring is.
If it's gotten cramped recently, prefer indirect.  See linux/average.h.

Such a change would have to be benchmarked carefully though!
Cheers,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to