diff options
author | harti <harti@FreeBSD.org> | 2003-08-06 13:16:51 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-08-06 13:16:51 +0000 |
commit | a74328e4ef7573138465d87cc353a5e7a0aaba8d (patch) | |
tree | 589bfc3d934e24df496c8be7e7d87923ebbf050e /sys/dev/hatm/if_hatm_ioctl.c | |
parent | 8f1a543ee8b7fd55a3574a31ebe124a3203fdb23 (diff) | |
download | FreeBSD-src-a74328e4ef7573138465d87cc353a5e7a0aaba8d.zip FreeBSD-src-a74328e4ef7573138465d87cc353a5e7a0aaba8d.tar.gz |
Make the driver honor the ATMIO_FLAG_ASYNC that requests
asynchronuous open/close operations.
Diffstat (limited to 'sys/dev/hatm/if_hatm_ioctl.c')
-rw-r--r-- | sys/dev/hatm/if_hatm_ioctl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/hatm/if_hatm_ioctl.c b/sys/dev/hatm/if_hatm_ioctl.c index 906f017..5a38c43 100644 --- a/sys/dev/hatm/if_hatm_ioctl.c +++ b/sys/dev/hatm/if_hatm_ioctl.c @@ -197,6 +197,7 @@ hatm_open_vcc1(struct hatm_softc *sc, struct atm_pseudoioctl *ph) v->param.flags = ATM_PH_FLAGS(&ph->aph) & (ATM_PH_AAL5 | ATM_PH_LLCSNAP); + v->param.flags |= ATMIO_FLAG_ASYNC; v->param.vpi = ATM_PH_VPI(&ph->aph); v->param.vci = ATM_PH_VCI(&ph->aph); v->param.aal = (ATM_PH_FLAGS(&ph->aph) & ATM_PH_AAL5) @@ -209,9 +210,6 @@ hatm_open_vcc1(struct hatm_softc *sc, struct atm_pseudoioctl *ph) v->param.tparam.mcr = 0; error = hatm_open_vcc(sc, v); - if (error == 0) - sc->vccs[HE_CID(v->param.vpi, v->param.vci)]->vflags |= - HE_VCC_ASYNC; free(v, M_TEMP); @@ -271,7 +269,7 @@ hatm_close_vcc(struct hatm_softc *sc, struct atmio_closevcc *arg) if (vcc->vflags & HE_VCC_RX_OPEN) hatm_rx_vcc_close(sc, cid); - if (vcc->vflags & HE_VCC_ASYNC) + if (vcc->param.flags & ATMIO_FLAG_ASYNC) goto done; while ((sc->ifatm.ifnet.if_flags & IFF_RUNNING) && |