summaryrefslogtreecommitdiffstats
path: root/sys/net/ieee8023ad_lacp.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2012-03-06 22:58:13 +0000
committerthompsa <thompsa@FreeBSD.org>2012-03-06 22:58:13 +0000
commitb1fbb40a93a6965db74bad2d0e41c6213a2449c5 (patch)
treea66e0f4d01b37baeb77069cd3e0375ba9fedb6b6 /sys/net/ieee8023ad_lacp.c
parent10e68a3224291be36c3e534197c59fd26a9f2dbb (diff)
downloadFreeBSD-src-b1fbb40a93a6965db74bad2d0e41c6213a2449c5.zip
FreeBSD-src-b1fbb40a93a6965db74bad2d0e41c6213a2449c5.tar.gz
Add the ability to set which packet layers are used for the load balance hash
calculation.
Diffstat (limited to 'sys/net/ieee8023ad_lacp.c')
-rw-r--r--sys/net/ieee8023ad_lacp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/ieee8023ad_lacp.c b/sys/net/ieee8023ad_lacp.c
index ea83866..137e273 100644
--- a/sys/net/ieee8023ad_lacp.c
+++ b/sys/net/ieee8023ad_lacp.c
@@ -815,7 +815,7 @@ lacp_select_tx_port(struct lagg_softc *sc, struct mbuf *m)
if (sc->use_flowid && (m->m_flags & M_FLOWID))
hash = m->m_pkthdr.flowid;
else
- hash = lagg_hashmbuf(m, lsc->lsc_hashkey);
+ hash = lagg_hashmbuf(sc, m, lsc->lsc_hashkey);
hash %= pm->pm_count;
lp = pm->pm_map[hash];
OpenPOWER on IntegriCloud