DragonFly commits List (threaded) for 2013-06
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: altq: Add byte based limit and counter
commit 68dc191620e70ca9c5313f931ea4a9b4e33267fe
Author: Sepherosa Ziehau <sephe@dragonflybsd.org>
Date: Fri Jun 7 17:18:33 2013 +0800
altq: Add byte based limit and counter
- This avoids having too much mbufs sitting on the send queue for TSO
capable devices. Even by default, DragonFly has already limited TSO
burst to at most 4 TCP segments, for TSO capable devices, there still
could be 4 times mbufs sitting on the send queue compared with non-TSO
capable devices.
- This paves way for the AQMs, which require send queue byte counter,
e.g. CoDel.
For ethernet devices, the byte based limit is (1514 x max_packets).
For other devices, e.g. pseudo devices, the byte based limit is
(MCLBYTES x max_packets).
Summary of changes:
sys/net/altq/altq_cbq.c | 6 +++---
sys/net/altq/altq_fairq.c | 8 ++++----
sys/net/altq/altq_hfsc.c | 10 ++++++----
sys/net/altq/altq_priq.c | 6 +++---
sys/net/altq/if_altq.h | 24 +++++++++++++++++++++++-
sys/net/if.c | 8 +++++---
sys/net/if_ethersubr.c | 9 +++++++++
sys/net/ifq_var.h | 8 +++-----
sys/netproto/802_11/ieee80211_dragonfly.h | 7 ++++---
sys/netproto/802_11/wlan/ieee80211_dragonfly.c | 2 +-
sys/netproto/802_11/wlan/ieee80211_power.c | 17 +++++++++++++++--
11 files changed, 76 insertions(+), 29 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/68dc191620e70ca9c5313f931ea4a9b4e33267fe
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]