On Fri, 2016-10-21 at 13:55 +0200, Paolo Abeni wrote: > Avoid using the generic helpers. > Use the receive queue spin lock to protect the memory > accounting operation, both on enqueue and on dequeue. > > On dequeue perform partial memory reclaiming, trying to > leave a quantum of forward allocated memory. > > On enqueue use a custom helper, to allow some optimizations: > - use a plain spin_lock() variant instead of the slightly > costly spin_lock_irqsave(), > - avoid dst_force check, since the calling code has already > dropped the skb dst > - avoid orphaning the skb, since skb_steal_sock() already did > the work for us > > The above needs custom memory reclaiming on shutdown, provided > by the udp_destruct_sock().
Acked-by: Eric Dumazet <eduma...@google.com>