svn commit: r194761 - head/sys/dev/mxge

Andrew Gallatin gallatin at FreeBSD.org
Tue Jun 23 20:22:36 UTC 2009


Author: gallatin
Date: Tue Jun 23 20:22:34 2009
New Revision: 194761
URL: http://svn.freebsd.org/changeset/base/194761

Log:
  - Fix bug where device would loose promisc setting when reset.
  - Allow all rss hash modes to be chosen

Modified:
  head/sys/dev/mxge/if_mxge.c

Modified: head/sys/dev/mxge/if_mxge.c
==============================================================================
--- head/sys/dev/mxge/if_mxge.c	Tue Jun 23 20:19:09 2009	(r194760)
+++ head/sys/dev/mxge/if_mxge.c	Tue Jun 23 20:22:34 2009	(r194761)
@@ -1310,7 +1310,7 @@ mxge_reset(mxge_softc_t *sc, int interru
 	}
 	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;
 	}
 }


More information about the svn-src-all mailing list