Re: [PATCH net-next] udp6: cleanup stats accounting in recvmsg()

2018-11-09 Thread David Miller
From: Paolo Abeni Date: Fri, 9 Nov 2018 15:52:45 +0100 > In the udp6 code path, we needed multiple tests to select the correct > mib to be updated. Since we touch at least a counter at each iteration, > it's convenient to use the recently introduced __UDPX_MIB() helper once > and remove some

[PATCH net-next] udp6: cleanup stats accounting in recvmsg()

2018-11-09 Thread Paolo Abeni
In the udp6 code path, we needed multiple tests to select the correct mib to be updated. Since we touch at least a counter at each iteration, it's convenient to use the recently introduced __UDPX_MIB() helper once and remove some code duplication. Signed-off-by: Paolo Abeni --- net/ipv6/udp.c |