diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-03-29 15:55:04 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-03-29 15:55:04 +0000 |
commit | e48b09aeb50720cd86ea510b26d68e0ee4d1ef7d (patch) | |
tree | c528f22348169948e4beff9169b77c3923b7e695 /sys/dev/idt/idt_harp.c | |
parent | 38aad980a798a46b2cb1d07bea82210e20ced130 (diff) | |
download | FreeBSD-src-e48b09aeb50720cd86ea510b26d68e0ee4d1ef7d.zip FreeBSD-src-e48b09aeb50720cd86ea510b26d68e0ee4d1ef7d.tar.gz |
- Deal with netisr changes.
- Wrap idt_atm_harpconn() in conditional define T_ATM_BUFQUEUE
Diffstat (limited to 'sys/dev/idt/idt_harp.c')
-rw-r--r-- | sys/dev/idt/idt_harp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/idt/idt_harp.c b/sys/dev/idt/idt_harp.c index 44886c8..3ffa5ca 100644 --- a/sys/dev/idt/idt_harp.c +++ b/sys/dev/idt/idt_harp.c @@ -147,7 +147,9 @@ extern uma_zone_t idt_nif_zone; extern uma_zone_t idt_vcc_zone; static int idt_atm_bearerclass(struct attr_bearer *); +#ifdef T_ATM_BUFQUEUE static CONNECTION *idt_atm_harpconn(Cmn_unit *, Cmn_vcc *); +#endif static int idt_atm_ioctl(int, caddr_t, caddr_t); static void idt_output(Cmn_unit *, Cmn_vcc *, KBuffer *); @@ -211,6 +213,7 @@ idt_atm_ioctl(int code, caddr_t addr, caddr_t arg) return (ENOSYS); } +#ifdef T_ATM_BUFQUEUE /******************************************************************************* * * Get connection pointer from Cmn_unit and Cmn_vcc @@ -246,6 +249,7 @@ idt_atm_harpconn(Cmn_unit * cup, Cmn_vcc * cvp) return (idt_connect_find(idt, vpi, vci)); } +#endif /* T_ATM_BUFQUEUE */ /******************************************************************************* * @@ -757,10 +761,6 @@ idt_receive(nicstar_reg_t * idt, struct mbuf * m, int vpi, int vci) /* * Schedule callback */ - if (!_IF_QFULL(&atm_intrq)) { - IF_ENQUEUE(&atm_intrq, m); - schednetisr(NETISR_ATM); - } else { + if (! netisr_queue(NETISR_ATM, m)) KB_FREEALL(m); - } } |