ifnet: Fix regression if netisr_ncpus consisted of a large primary number
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 1 Jun 2017 03:28:26 +0000 (11:28 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 1 Jun 2017 03:28:26 +0000 (11:28 +0800)
commit75b7fb90fa61db7667767eee4b1d2e9ced23849b
tree92bf5fa7d16877631fb7ec31d92fe953d3a8330d
parentd45c022d51cca35ba50fab8cb82bd8252cee226e
ifnet: Fix regression if netisr_ncpus consisted of a large primary number

e.g. # of rings == 8, and netisr_ncpus == 22

Previous algorithm will only use 2 rings instead of 8 rings.
sys/net/if.c