netmgr: refactor isc__nm_incstats() and isc__nm_decstats()

After support for route/netlink sockets is merged, not all sockets
will have stats counters associated with them, so it's now necessary
to check whether socket stats exist before incrementing or decrementing
them. rather than relying on the caller for this, we now just pass the
socket and an index, and the correct stats counter will be updated if
it exists.
67 jobs for !5498 with each-refactor-nm-stats in 6 minutes and 40 seconds (queued for 17 seconds)
latest detached
Status Job ID Name Coverage
  Autoconf
passed autoreconf #2046740
amd64 linux

00:00:18

 
  Precheck
passed clang-format #2046742
amd64 linux

00:00:15

passed coccinelle #2046743
amd64 linux

00:03:45

passed danger #2046744
amd64 linux

00:00:16

passed misc #2046741
amd64 linux

00:00:15

passed tarball-create #2046745
amd64 linux

00:02:01

 
  Build
passed clang:asan #2046759
amd64 linux

00:02:11

passed clang:buster:amd64 #2046762
amd64 linux

00:00:54

passed clang:freebsd12:amd64 #2046763
amd64 libvirt

00:01:05

passed clang:freebsd13:amd64 #2046764
amd64 libvirt

00:02:58

passed clang:openbsd:amd64 #2046765
amd64 libvirt

00:02:22

passed clang:tsan #2046761
amd64 linux

00:01:02

passed gcc:alpine3.14:amd64 #2046746
amd64 linux

00:01:04

passed gcc:asan #2046758
amd64 linux

00:01:27

passed gcc:bionic:amd64 #2046756
amd64 linux

00:00:57

passed gcc:buster:amd64 #2046750
amd64 linux

00:00:41

passed gcc:buster:amd64cross32 #2046751
amd64 linux

00:01:07

passed gcc:focal:amd64 #2046757
amd64 linux

00:00:47

passed gcc:oraclelinux7:amd64 #2046747
amd64 linux

00:00:57

passed gcc:oraclelinux8:amd64 #2046748
amd64 linux

00:00:58

passed gcc:out-of-tree #2046753
amd64 linux

00:00:51

passed gcc:sid:amd64 #2046752
amd64 linux

00:01:18

passed gcc:stretch:amd64 #2046749
amd64 linux

00:00:56

passed gcc:tarball #2046754
amd64 linux

00:01:04

passed gcc:tsan #2046760
amd64 linux

00:01:10

passed gcc:tumbleweed:amd64 #2046755
amd64 linux

00:00:50

 
  Unit
passed unit:clang:asan #2046777
amd64 linux

00:01:37

passed unit:clang:buster:amd64 #2046780
amd64 linux

00:01:18

passed unit:clang:freebsd12:amd64 #2046781
amd64 libvirt

00:01:35

canceled unit:clang:freebsd13:amd64 #2046782
amd64 libvirt

00:03:11

passed unit:clang:openbsd:amd64 #2046783
amd64 libvirt

00:03:29

passed unit:clang:tsan #2046779
amd64 linux

00:03:09

passed unit:gcc:alpine3.14:amd64 #2046766
amd64 linux

00:01:20

passed unit:gcc:asan #2046776
amd64 linux

00:01:48

passed unit:gcc:bionic:amd64 #2046774
amd64 linux

00:01:20

passed unit:gcc:buster:amd64 #2046770
amd64 linux

00:02:18

passed unit:gcc:buster:amd64cross32 #2046771
amd64 linux

00:01:27

passed unit:gcc:focal:amd64 #2046775
amd64 linux

00:01:11

passed unit:gcc:oraclelinux7:amd64 #2046767
amd64 linux

00:01:18

passed unit:gcc:oraclelinux8:amd64 #2046768
amd64 linux

00:01:12

passed unit:gcc:sid:amd64 #2046772
amd64 linux

00:01:19

passed unit:gcc:stretch:amd64 #2046769
amd64 linux

00:00:14

passed unit:gcc:tsan #2046778
amd64 linux

00:04:09

passed unit:gcc:tumbleweed:amd64 #2046773
amd64 linux

00:01:29

 
  System
canceled system:clang:asan #2046795
amd64 linux

00:03:55

canceled system:clang:buster:amd64 #2046798
amd64 linux

00:05:12

canceled system:clang:freebsd12:amd64 #2046799
amd64 libvirt

00:04:59

canceled system:clang:freebsd13:amd64 #2046800
amd64 libvirt

00:03:11

canceled system:clang:tsan #2046797
amd64 linux

00:05:03

canceled system:gcc:alpine3.14:amd64 #2046784
amd64 linux

00:05:07

canceled system:gcc:asan #2046794
amd64 linux

00:04:37

canceled system:gcc:bionic:amd64 #2046792
amd64 linux

00:05:07

canceled system:gcc:buster:amd64 #2046788
amd64 linux

00:02:58

canceled system:gcc:buster:amd64cross32 #2046789
amd64 linux

00:04:57

canceled system:gcc:focal:amd64 #2046793
amd64 linux

00:05:18

canceled system:gcc:oraclelinux7:amd64 #2046785
amd64 linux

00:05:13

canceled system:gcc:oraclelinux8:amd64 #2046786
amd64 linux

00:05:12

canceled system:gcc:sid:amd64 #2046790
amd64 linux

00:04:51

canceled system:gcc:stretch:amd64 #2046787
amd64 linux

00:05:12

canceled system:gcc:tsan #2046796
amd64 linux

00:04:52

canceled system:gcc:tumbleweed:amd64 #2046791
amd64 linux

00:05:18

 
  Docs
passed docs #2046801
amd64 linux

00:00:48

 
  Postcheck
passed cppcheck #2046805
amd64 linux

00:00:30

passed flake8 #2046802
amd64 linux

00:00:18

canceled gcov #2046806
amd64 linux

passed pylint #2046803
amd64 linux

00:00:30

passed scan-build #2046804
amd64 linux

00:04:22