DragonFly commits List (threaded) for 2012-04
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: ifnet: Factor out if_ring_count2()
commit a317449e0db1aad9fe15a47b3de47a3c647721e5
Author: Sepherosa Ziehau <sephe@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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]