summaryrefslogtreecommitdiffstats
path: root/sys/dev/hatm/if_hatm_tx.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-08-06 13:16:51 +0000
committerharti <harti@FreeBSD.org>2003-08-06 13:16:51 +0000
commita74328e4ef7573138465d87cc353a5e7a0aaba8d (patch)
tree589bfc3d934e24df496c8be7e7d87923ebbf050e /sys/dev/hatm/if_hatm_tx.c
parent8f1a543ee8b7fd55a3574a31ebe124a3203fdb23 (diff)
downloadFreeBSD-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.c4
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);
OpenPOWER on IntegriCloud