[PATCH v2] net: tracepoint: fix print wrong sysctl_mem value

2020-09-07 Thread Dust Li
=SK_MEM_RECV v2: use __array(3) instead of 3 long type to store sysctl_mem Fixes: 3847ce32aea9fdf ("core: add tracepoints for queueing skb to rcvbuf") Signed-off-by: Dust Li --- include/trace/events/sock.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/tr

[PATCH] net/sock: don't drop udp packets if udp_mem[2] not reached

2020-09-07 Thread Dust Li
. The udp server receive slowly, causing the udp_prot->memory_allocated exceed udp_mem[0], but still under udp_mem[2] I wrote a test script to reproduce this: https://github.com/dust-li/kernel-test/blob/master/exceed_udp_mem_min_drop/exceed_udp_mem_min_drop.sh Obviously, we s

[PATCH] net: tracepoint: fix print wrong sysctl_mem value

2020-09-07 Thread Dust Li
=SK_MEM_RECV Fixes: 3847ce32aea9fdf ("core: add tracepoints for queueing skb to rcvbuf") Signed-off-by: Dust Li --- include/trace/events/sock.h | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/include/trace/events/sock.h b/include/trace/events/sock.h index a9