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_tx.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_tx.c')
-rw-r--r-- | sys/dev/hatm/if_hatm_tx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/hatm/if_hatm_tx.c b/sys/dev/hatm/if_hatm_tx.c index 284cb9c..38903bd 100644 --- a/sys/dev/hatm/if_hatm_tx.c +++ b/sys/dev/hatm/if_hatm_tx.c @@ -400,7 +400,7 @@ hatm_start(struct ifnet *ifp) #ifdef ENABLE_BPF if (!(arg.vcc->param.flags & ATMIO_FLAG_NG) && - (arg.vcc->param.flags & ATM_PH_AAL5) && + (arg.vcc->param.aal == ATMIO_AAL_5) && (arg.vcc->param.flags & ATM_PH_LLCSNAP)) BPF_MTAP(ifp, m); #endif @@ -465,7 +465,7 @@ hatm_tx_complete(struct hatm_softc *sc, struct tpd *tpd, uint32_t flags) return; if ((flags & HE_REGM_TBRQ_EOS) && (vcc->vflags & HE_VCC_TX_CLOSING)) { vcc->vflags &= ~HE_VCC_TX_CLOSING; - if (vcc->vflags & HE_VCC_ASYNC) { + if (vcc->param.flags & ATMIO_FLAG_ASYNC) { hatm_tx_vcc_closed(sc, tpd->cid); if (!(vcc->vflags & HE_VCC_OPEN)) { hatm_vcc_closed(sc, tpd->cid); |