Re: [PATCH net-next] net: udp: introduce UDP_MIB_MEMERRORS for udp_mem

2020-11-05 Thread Jakub Kicinski
On Thu, 5 Nov 2020 02:16:11 -0500 menglong8.d...@gmail.com wrote: > From: Menglong Dong > > When udp_memory_allocated is at the limit, __udp_enqueue_schedule_skb > will return a -ENOBUFS, and skb will be dropped in __udp_queue_rcv_skb > without any counters being done. It's hard to find out what

[PATCH net-next] net: udp: introduce UDP_MIB_MEMERRORS for udp_mem

2020-11-04 Thread menglong8 . dong
From: Menglong Dong When udp_memory_allocated is at the limit, __udp_enqueue_schedule_skb will return a -ENOBUFS, and skb will be dropped in __udp_queue_rcv_skb without any counters being done. It's hard to find out what happened once this happen. So we introduce a UDP_MIB_MEMERRORS to do this j