diff options
author | gallatin <gallatin@FreeBSD.org> | 2009-06-23 20:22:34 +0000 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 2009-06-23 20:22:34 +0000 |
commit | 6f1a23c328f27fbb904a8a2629fef6cf83b62840 (patch) | |
tree | f04ed0462516c77b4731d43366d708e2d9d82fd3 /sys/dev/mxge | |
parent | c9ef486fe1d7da6a2212a337eacc5ed5b40f85d9 (diff) | |
download | FreeBSD-src-6f1a23c328f27fbb904a8a2629fef6cf83b62840.zip FreeBSD-src-6f1a23c328f27fbb904a8a2629fef6cf83b62840.tar.gz |
- Fix bug where device would loose promisc setting when reset.
- Allow all rss hash modes to be chosen
Diffstat (limited to 'sys/dev/mxge')
-rw-r--r-- | sys/dev/mxge/if_mxge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mxge/if_mxge.c b/sys/dev/mxge/if_mxge.c index b558739..58b1173 100644 --- a/sys/dev/mxge/if_mxge.c +++ b/sys/dev/mxge/if_mxge.c @@ -1310,7 +1310,7 @@ mxge_reset(mxge_softc_t *sc, int interrupts_setup) } sc->rdma_tags_available = 15; status = mxge_update_mac_address(sc); - mxge_change_promisc(sc, 0); + mxge_change_promisc(sc, sc->ifp->if_flags & IFF_PROMISC); mxge_change_pause(sc, sc->pause); mxge_set_multicast_list(sc); return status; @@ -4020,7 +4020,7 @@ mxge_fetch_tunables(mxge_softc_t *sc) mxge_ticks = hz / 2; sc->pause = mxge_flow_control; if (mxge_rss_hash_type < MXGEFW_RSS_HASH_TYPE_IPV4 - || mxge_rss_hash_type > MXGEFW_RSS_HASH_TYPE_SRC_PORT) { + || mxge_rss_hash_type > MXGEFW_RSS_HASH_TYPE_MAX) { mxge_rss_hash_type = MXGEFW_RSS_HASH_TYPE_SRC_PORT; } } |