diff options
author | thompsa <thompsa@FreeBSD.org> | 2007-12-18 02:12:03 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2007-12-18 02:12:03 +0000 |
commit | 3b94f3069c6b52c0da16f2398f27fd474010f7a4 (patch) | |
tree | fb2a5e73bf1113479a3f4ecc88ff2a3c93a7b33c /sys/net | |
parent | eb79d09fc64f5a2e33875ebc41a3ff8659bbec5e (diff) | |
download | FreeBSD-src-3b94f3069c6b52c0da16f2398f27fd474010f7a4.zip FreeBSD-src-3b94f3069c6b52c0da16f2398f27fd474010f7a4.tar.gz |
- Use the macro to check the port status has it will also test if its
administratively down (!IFF_UP)
- Use the same parameters to lagg_link_active() to get the backup port as in
the output path, this didnt actually matter in practice as sc_primary is
always the first on the port list.
MFC after: 3 days
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_lagg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c index 53af5fe..27fef3f 100644 --- a/sys/net/if_lagg.c +++ b/sys/net/if_lagg.c @@ -1480,8 +1480,8 @@ lagg_fail_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m) return (m); } - if (sc->sc_primary->lp_link_state == LINK_STATE_DOWN) { - tmp_tp = lagg_link_active(sc, NULL); + if (!LAGG_PORTACTIVE(sc->sc_primary)) { + tmp_tp = lagg_link_active(sc, sc->sc_primary); /* * If tmp_tp is null, we've recieved a packet when all * our links are down. Weird, but process it anyways. |