diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-03-27 20:05:04 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-03-27 20:05:04 +0000 |
| commit | b9d308bed267dbbbaa1a76c0bad817e90ad9a81a (patch) | |
| tree | 21cf9ae0b9ced67147ec69e489c5189d9f0d8490 | |
| parent | 2b2ca8019fd5a41135dcec1c189320187e4fec9d (diff) | |
Notes
| -rw-r--r-- | sys/pci/if_mn.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/pci/if_mn.c b/sys/pci/if_mn.c index 5796eb3333d7..cc11fd5332c9 100644 --- a/sys/pci/if_mn.c +++ b/sys/pci/if_mn.c @@ -395,9 +395,10 @@ ngmn_newhook(node_p node, hook_p hook, const char *name) if (ts == 0) return (EINVAL); chan = ffs(ts) - 1; - if (sc->ch[chan]) + if (!sc->ch[chan]) + mn_create_channel(sc, chan); + else if (sc->ch[chan]->state == UP) return (EBUSY); - mn_create_channel(sc, chan); sc->ch[chan]->ts = ts; sc->ch[chan]->hook = hook; sc->ch[chan]->tx_limit = nbit * 8; @@ -511,12 +512,10 @@ ngmn_rcvdata(hook_p hook, struct mbuf *m, meta_p meta) if (sch->state != UP) { NG_FREE_DATA(m, meta); - printf("D1\n"); return (0); } if (sch->tx_pending + m->m_pkthdr.len > sch->tx_limit * mn_maxlatency) { NG_FREE_DATA(m, meta); - printf("D2\n"); return (0); } NG_FREE_META(meta); |
