git: ifnet: Fix regression if netisr_ncpus consisted of a large primary number

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Wed May 31 20:32:18 PDT 2017


commit 75b7fb90fa61db7667767eee4b1d2e9ced23849b
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Thu Jun 1 11:28:26 2017 +0800

    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.

Summary of changes:
 sys/net/if.c | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/75b7fb90fa61db7667767eee4b1d2e9ced23849b


-- 
DragonFly BSD source repository


More information about the Commits mailing list