Re: [PATCH net-next v6 3/3] udp: use it's own memory accounting schema

2016-10-21 Thread Eric Dumazet
On Fri, 2016-10-21 at 13:55 +0200, Paolo Abeni wrote: > Completely avoid default sock memory accounting and replace it > with udp-specific accounting. > > Since the new memory accounting model encapsulates completely > the required locking, remove the socket lock on both enqueue and > dequeue, and

[PATCH net-next v6 3/3] udp: use it's own memory accounting schema

2016-10-21 Thread Paolo Abeni
Completely avoid default sock memory accounting and replace it with udp-specific accounting. Since the new memory accounting model encapsulates completely the required locking, remove the socket lock on both enqueue and dequeue, and avoid using the backlog on enqueue. Be sure to clean-up rx queue