- Set number of TX descriptors to 512.
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 22 Mar 2008 07:07:34 +0000 (07:07 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 22 Mar 2008 07:07:34 +0000 (07:07 +0000)
commitf59f108152c5ff1dc2c802ae476fe4dd12b0ded5
tree2147737e373473f01c99d0160c3a0716ee32595b
parenta84a197d08b6a87160750dfaef79a0ca13fed0d3
- Set number of TX descriptors to 512.
- Add interrupt moderation support in msk(4).
- Add a sysctl node for interrupt rate, which is disabled by default. (*)

Obtained-from: Marvell's myk(4)

#
# Set interrupt rate to 4000(/sec) on Yukon EC(rev2):
# - If the other side sends at 200Kpps, interrupt time will be reduced from
#   50%-70% to 30%-50%
# - If msk(4) is used to blast packets, interrupt time will be reduced from
#   35%-40% to 25%-%35 and packet rate will be increased by 10Kpps-15Kpps
#

# (*) Marvell's myk(4) uses different clock for EC_U/FE/XL than the value set
#     in mskc_attach(), due to lack of document, it is unclear which clock is
#     correct, so disabling interrupt moderation timer by default is the safest
#     choice.
sys/dev/netif/msk/if_msk.c
sys/dev/netif/msk/if_mskreg.h