aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2003-05-16 01:13:16 +0000
committerRobert Watson <rwatson@FreeBSD.org>2003-05-16 01:13:16 +0000
commit98b27888321db10cdd43e887bf3bfc5a160dfe97 (patch)
tree33e5e974317a9b4e671b864795eec9782b5ebfb0
parenta93b6bf5e994178339792ae87d92d53ea68bde1b (diff)
Notes
-rw-r--r--sys/dev/fxp/if_fxp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c
index 772ba0199e6b..1124ede8e1c0 100644
--- a/sys/dev/fxp/if_fxp.c
+++ b/sys/dev/fxp/if_fxp.c
@@ -264,6 +264,10 @@ DRIVER_MODULE(miibus, fxp, miibus_driver, miibus_devclass, 0, 0);
static int fxp_rnr;
SYSCTL_INT(_hw, OID_AUTO, fxp_rnr, CTLFLAG_RW, &fxp_rnr, 0, "fxp rnr events");
+static int fxp_noflow;
+SYSCTL_INT(_hw, OID_AUTO, fxp_noflow, CTLFLAG_RW, &fxp_noflow, 0, "fxp flow control disabled");
+TUNABLE_INT("hw.fxp_noflow", &fxp_noflow);
+
/*
* Wait for the previous command to be accepted (but not necessarily
* completed).
@@ -2051,7 +2055,7 @@ fxp_init_body(struct fxp_softc *sc)
cbp->mc_all = sc->flags & FXP_FLAG_ALL_MCAST ? 1 : 0;
cbp->gamla_rx = sc->flags & FXP_FLAG_EXT_RFA ? 1 : 0;
- if (sc->revision == FXP_REV_82557) {
+ if (fxp_noflow || sc->revision == FXP_REV_82557) {
/*
* The 82557 has no hardware flow control, the values
* below are the defaults for the chip.