diff options
author | Andrew Thompson <thompsa@FreeBSD.org> | 2007-12-18 02:12:03 +0000 |
---|---|---|
committer | Andrew Thompson <thompsa@FreeBSD.org> | 2007-12-18 02:12:03 +0000 |
commit | 1f019d8381553691c200463972d8055f00daad27 (patch) | |
tree | fb2a5e73bf1113479a3f4ecc88ff2a3c93a7b33c /sys/net | |
parent | 056c1a0528097d5ec8be9a9f072e7864cf638a06 (diff) | |
download | src-1f019d8381553691c200463972d8055f00daad27.tar.gz src-1f019d8381553691c200463972d8055f00daad27.zip |
- 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
Notes
Notes:
svn path=/head/; revision=174742
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 53af5fe8440b..27fef3f0d548 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. |