diff options
author | thompsa <thompsa@FreeBSD.org> | 2012-02-22 22:01:30 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2012-02-22 22:01:30 +0000 |
commit | c8215b632ae596bfaeed4088581d1d82b710d22d (patch) | |
tree | 8e9e95db022a4ff2829b67568791a5ac60eb7689 /sys/net/ieee8023ad_lacp.c | |
parent | f4082dbf79c8000ffd0300062337527467aa8622 (diff) | |
download | FreeBSD-src-c8215b632ae596bfaeed4088581d1d82b710d22d.zip FreeBSD-src-c8215b632ae596bfaeed4088581d1d82b710d22d.tar.gz |
Using the flowid in the mbuf assumes the network card is giving a good hash for
the traffic flow, this may not be the case giving poor traffic distribution.
Add a sysctl which allows us to fall back to our own flow hash code.
PR: kern/164901
Submitted by: Eugene Grosbein
MFC after: 1 week
Diffstat (limited to 'sys/net/ieee8023ad_lacp.c')
-rw-r--r-- | sys/net/ieee8023ad_lacp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/ieee8023ad_lacp.c b/sys/net/ieee8023ad_lacp.c index 2284ce2..ea83866 100644 --- a/sys/net/ieee8023ad_lacp.c +++ b/sys/net/ieee8023ad_lacp.c @@ -812,7 +812,7 @@ lacp_select_tx_port(struct lagg_softc *sc, struct mbuf *m) return (NULL); } - if (m->m_flags & M_FLOWID) + if (sc->use_flowid && (m->m_flags & M_FLOWID)) hash = m->m_pkthdr.flowid; else hash = lagg_hashmbuf(m, lsc->lsc_hashkey); |