summaryrefslogtreecommitdiffstats
path: root/sys/net/ieee8023ad_lacp.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-04-30 14:25:44 +0000
committerthompsa <thompsa@FreeBSD.org>2009-04-30 14:25:44 +0000
commitf55b83f9f421359d17e270b990f81bb041172fad (patch)
tree1674bd711224007df031a0dde2850a7ab54f8f1f /sys/net/ieee8023ad_lacp.c
parente9ac1c9e24c461671fa0c6556edd38161c420c56 (diff)
downloadFreeBSD-src-f55b83f9f421359d17e270b990f81bb041172fad.zip
FreeBSD-src-f55b83f9f421359d17e270b990f81bb041172fad.tar.gz
Use the flowid if its available for selecting the tx port.
Diffstat (limited to 'sys/net/ieee8023ad_lacp.c')
-rw-r--r--sys/net/ieee8023ad_lacp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/ieee8023ad_lacp.c b/sys/net/ieee8023ad_lacp.c
index bd44e23..2284ce2 100644
--- a/sys/net/ieee8023ad_lacp.c
+++ b/sys/net/ieee8023ad_lacp.c
@@ -812,7 +812,10 @@ lacp_select_tx_port(struct lagg_softc *sc, struct mbuf *m)
return (NULL);
}
- hash = lagg_hashmbuf(m, lsc->lsc_hashkey);
+ if (m->m_flags & M_FLOWID)
+ hash = m->m_pkthdr.flowid;
+ else
+ hash = lagg_hashmbuf(m, lsc->lsc_hashkey);
hash %= pm->pm_count;
lp = pm->pm_map[hash];
OpenPOWER on IntegriCloud