]> git.baikalelectronics.ru Git - kernel.git/commit
udp6: cleanup stats accounting in recvmsg()
authorPaolo Abeni <pabeni@redhat.com>
Fri, 9 Nov 2018 14:52:45 +0000 (15:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Nov 2018 04:07:05 +0000 (20:07 -0800)
commitb5458a535c710420730b9cc7f40f63f5798bf7a9
treea07a11a1acb1265789fc471fcbdce2e6d2d8f1b0
parent2f6eba8375338fd382e9a2499b2fcfbb6483c0b1
udp6: cleanup stats accounting in recvmsg()

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 <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/udp.c