summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2010-01-08 16:44:33 +0000
committertrasz <trasz@FreeBSD.org>2010-01-08 16:44:33 +0000
commit2ced506c4ba5a61ef2988ad4fafc85fd824c57b5 (patch)
treea72a0dbda365325b6fae31849f184cb501c134d3 /sys
parentce510bcb3f0f034b9ef138fee8bbd4b12dccb8c0 (diff)
downloadFreeBSD-src-2ced506c4ba5a61ef2988ad4fafc85fd824c57b5.zip
FreeBSD-src-2ced506c4ba5a61ef2988ad4fafc85fd824c57b5.tar.gz
Stop GCC from complaining about lagg_port_checkstacking() being unused.
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_lagg.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c
index 583cc41..0682d43 100644
--- a/sys/net/if_lagg.c
+++ b/sys/net/if_lagg.c
@@ -95,7 +95,9 @@ static int lagg_port_ioctl(struct ifnet *, u_long, caddr_t);
static int lagg_port_output(struct ifnet *, struct mbuf *,
struct sockaddr *, struct route *);
static void lagg_port_ifdetach(void *arg __unused, struct ifnet *);
+#ifdef LAGG_PORT_STACKING
static int lagg_port_checkstacking(struct lagg_softc *);
+#endif
static void lagg_port2req(struct lagg_port *, struct lagg_reqport *);
static void lagg_init(void *);
static void lagg_stop(struct lagg_softc *);
@@ -456,7 +458,8 @@ lagg_port_create(struct lagg_softc *sc, struct ifnet *ifp)
mtx_unlock(&lagg_list_mtx);
free(lp, M_DEVBUF);
return (EINVAL);
- /* XXX disable stacking for the moment, its untested
+ /* XXX disable stacking for the moment, its untested */
+#ifdef LAGG_PORT_STACKING
lp->lp_flags |= LAGG_PORT_STACK;
if (lagg_port_checkstacking(sc_ptr) >=
LAGG_MAX_STACKING) {
@@ -464,7 +467,7 @@ lagg_port_create(struct lagg_softc *sc, struct ifnet *ifp)
free(lp, M_DEVBUF);
return (E2BIG);
}
- */
+#endif
}
}
mtx_unlock(&lagg_list_mtx);
@@ -515,6 +518,7 @@ lagg_port_create(struct lagg_softc *sc, struct ifnet *ifp)
return (error);
}
+#ifdef LAGG_PORT_STACKING
static int
lagg_port_checkstacking(struct lagg_softc *sc)
{
@@ -533,6 +537,7 @@ lagg_port_checkstacking(struct lagg_softc *sc)
return (m + 1);
}
+#endif
static int
lagg_port_destroy(struct lagg_port *lp, int runpd)
OpenPOWER on IntegriCloud