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

2016-09-28 Thread Paolo Abeni
On Tue, 2016-09-27 at 11:42 -0700, Eric Dumazet wrote: > On Tue, 2016-09-27 at 18:58 +0200, Paolo Abeni wrote: > > > > > > Since the new memory accounting model does not require socket > > locking, remove the lock on enqueue and free and avoid using the > > backlog on enqueue. > > > ... > > >

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

2016-09-27 Thread Eric Dumazet
On Tue, 2016-09-27 at 18:58 +0200, Paolo Abeni wrote: > > Since the new memory accounting model does not require socket > locking, remove the lock on enqueue and free and avoid using the > backlog on enqueue. ... > __UDP_INC_STATS(sock_net(sk), UDP_MIB_CSUMERRORS, is_udplite); > @@ -234

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

2016-09-27 Thread Paolo Abeni
Completely avoid default sock memory accounting and replace it with udp-specific accounting. The udp code now tracks the memory pressure status, to optimize memory reclaiming. Since the new memory accounting model does not require socket locking, remove the lock on enqueue and free and avoid usin