diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-04-30 21:38:06 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-04-30 21:38:06 +0000 |
commit | cf695b9e1ee8636d79af8e0aefc96286e2ebaffe (patch) | |
tree | 2c7e3613797ec3ad99289dd427242fda24d54806 /sys/dev/ic | |
parent | 6424fb8a81fe88750012c0a8b346097f9db24d1d (diff) |
try to drain send queue if we lose link during heavy transmit
activity instead of letting it sit and return 'no buffer available'
errors.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/dc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/dc.c b/sys/dev/ic/dc.c index a703b951de1..47cf84cf7ea 100644 --- a/sys/dev/ic/dc.c +++ b/sys/dev/ic/dc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dc.c,v 1.83 2005/04/23 22:36:42 brad Exp $ */ +/* $OpenBSD: dc.c,v 1.84 2005/04/30 21:38:05 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -2741,7 +2741,7 @@ dc_start(ifp) sc = ifp->if_softc; - if (!sc->dc_link) + if (!sc->dc_link && ifp->if_snd.ifq_len < 10) return; if (ifp->if_flags & IFF_OACTIVE) |