diff options
author | gallatin <gallatin@FreeBSD.org> | 2009-07-22 11:57:34 +0000 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 2009-07-22 11:57:34 +0000 |
commit | 315ba5eabf0194d0403cc2afbd4e67b2063d5fd7 (patch) | |
tree | 61c6beaab8ea0ab2655e8d69d79648a26d083d90 /sys/dev/mxge | |
parent | f1e58a64c4a48a18bf5bc709c0592a3bc3c5160c (diff) | |
download | FreeBSD-src-315ba5eabf0194d0403cc2afbd4e67b2063d5fd7.zip FreeBSD-src-315ba5eabf0194d0403cc2afbd4e67b2063d5fd7.tar.gz |
mxge's tunable hw.mxge.rss_hash_type cannot be set from the
loader, because it uses a reserved suffix (_type). Fix
this by removing the "_" and renaming the tunable to
hw.mxge.rss_hashtype. The old (rss_hash_type) tunable is
still fetched, in case people load the driver via scripts.
When both are present in the kernel environment,
the new value (hw.mxge.rss_hashtype) overrides the old
value.
Approved by: re (kib)
Diffstat (limited to 'sys/dev/mxge')
-rw-r--r-- | sys/dev/mxge/if_mxge.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/mxge/if_mxge.c b/sys/dev/mxge/if_mxge.c index 367cec0..88c3489 100644 --- a/sys/dev/mxge/if_mxge.c +++ b/sys/dev/mxge/if_mxge.c @@ -4014,6 +4014,7 @@ mxge_fetch_tunables(mxge_softc_t *sc) TUNABLE_INT_FETCH("hw.mxge.lro_cnt", &sc->lro_cnt); TUNABLE_INT_FETCH("hw.mxge.always_promisc", &mxge_always_promisc); TUNABLE_INT_FETCH("hw.mxge.rss_hash_type", &mxge_rss_hash_type); + TUNABLE_INT_FETCH("hw.mxge.rss_hashtype", &mxge_rss_hash_type); TUNABLE_INT_FETCH("hw.mxge.initial_mtu", &mxge_initial_mtu); if (sc->lro_cnt != 0) mxge_lro_cnt = sc->lro_cnt; |