summaryrefslogtreecommitdiffstats
path: root/sys/net/ieee8023ad_lacp.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2008-12-17 20:58:10 +0000
committerthompsa <thompsa@FreeBSD.org>2008-12-17 20:58:10 +0000
commitd592108ca6acf64f5a653ef0cbf3be53e7540ce5 (patch)
treea1f3bc4828cba42058ff79b6b0b6141018276aae /sys/net/ieee8023ad_lacp.c
parentb56852858e5fc4c068e7ab39dfb3866bf8dc71f2 (diff)
downloadFreeBSD-src-d592108ca6acf64f5a653ef0cbf3be53e7540ce5.zip
FreeBSD-src-d592108ca6acf64f5a653ef0cbf3be53e7540ce5.tar.gz
Update the interface baudrate taking into account the max speed for the
different aggregation protocols.
Diffstat (limited to 'sys/net/ieee8023ad_lacp.c')
-rw-r--r--sys/net/ieee8023ad_lacp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/ieee8023ad_lacp.c b/sys/net/ieee8023ad_lacp.c
index 27cf480..bd44e23 100644
--- a/sys/net/ieee8023ad_lacp.c
+++ b/sys/net/ieee8023ad_lacp.c
@@ -901,6 +901,7 @@ lacp_aggregator_bandwidth(struct lacp_aggregator *la)
static void
lacp_select_active_aggregator(struct lacp_softc *lsc)
{
+ struct lagg_softc *sc = lsc->lsc_softc;
struct lacp_aggregator *la;
struct lacp_aggregator *best_la = NULL;
uint64_t best_speed = 0;
@@ -956,6 +957,7 @@ lacp_select_active_aggregator(struct lacp_softc *lsc)
#endif /* defined(LACP_DEBUG) */
if (lsc->lsc_active_aggregator != best_la) {
+ sc->sc_ifp->if_baudrate = best_speed;
lsc->lsc_active_aggregator = best_la;
lacp_update_portmap(lsc);
if (best_la) {
OpenPOWER on IntegriCloud