git: ifnet: Factor out if_ring_count2()

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Mon Apr 16 05:05:40 PDT 2012


commit a317449e0db1aad9fe15a47b3de47a3c647721e5
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Mon Apr 16 19:41:20 2012 +0800

    ifnet: Factor out if_ring_count2()
    
    This function calculates maximum allowed power-of-2 ring count based on
    user specified value (cnt) and the maximum number of rings supported by
    the hardware (cnt_max).  The power-of-2 cpu count is also take into
    consideration.

Summary of changes:
 sys/dev/netif/emx/if_emx.c |    8 +-------
 sys/dev/netif/jme/if_jme.c |   14 +++-----------
 sys/net/if.c               |   25 +++++++++++++++++++++++++
 sys/net/if_var.h           |    1 +
 4 files changed, 30 insertions(+), 18 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a317449e0db1aad9fe15a47b3de47a3c647721e5


-- 
DragonFly BSD source repository





More information about the Commits mailing list