diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-04-30 14:25:44 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-04-30 14:25:44 +0000 |
commit | f55b83f9f421359d17e270b990f81bb041172fad (patch) | |
tree | 1674bd711224007df031a0dde2850a7ab54f8f1f /sys/net/ieee8023ad_lacp.c | |
parent | e9ac1c9e24c461671fa0c6556edd38161c420c56 (diff) | |
download | FreeBSD-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.c | 5 |
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]; |