diff options
author | harti <harti@FreeBSD.org> | 2003-07-29 14:07:19 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-07-29 14:07:19 +0000 |
commit | 8bbb21db05703efb147312fe9f540b4904eb5051 (patch) | |
tree | d8a9695244d697fd452cd82156a8f60e14d51526 /sys/dev/hatm/if_hatm_tx.c | |
parent | 8d0166bd1fdfccea6334aff0b40004390f2e5bc8 (diff) | |
download | FreeBSD-src-8bbb21db05703efb147312fe9f540b4904eb5051.zip FreeBSD-src-8bbb21db05703efb147312fe9f540b4904eb5051.tar.gz |
Generate events for carrier state, PVC state changes and flow control
changes. Still have to figure out, how to get at the ABR information.
Diffstat (limited to 'sys/dev/hatm/if_hatm_tx.c')
-rw-r--r-- | sys/dev/hatm/if_hatm_tx.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/dev/hatm/if_hatm_tx.c b/sys/dev/hatm/if_hatm_tx.c index 14c1e8a..284cb9c 100644 --- a/sys/dev/hatm/if_hatm_tx.c +++ b/sys/dev/hatm/if_hatm_tx.c @@ -251,10 +251,8 @@ hatm_load_txbuf(void *uarg, bus_dma_segment_t *segs, int nseg, if (arg->vcc->ntpds + tpds_needed > arg->sc->max_tpd) { arg->sc->istats.flow_closed++; arg->vcc->vflags |= HE_VCC_FLOW_CTRL; -#ifdef notyet - atm_message(&arg->sc->ifatm.ifnet, ATM_MSG_FLOW_CONTROL, - (1 << 24) | (arg->vpi << 16) | arg->vci); -#endif + ATMEV_SEND_FLOW_CONTROL(&arg->sc->ifatm, + arg->vpi, arg->vci, 1); arg->error = 1; return; } @@ -486,10 +484,8 @@ hatm_tx_complete(struct hatm_softc *sc, struct tpd *tpd, uint32_t flags) if ((vcc->vflags & HE_VCC_FLOW_CTRL) && vcc->ntpds <= HE_CONFIG_TPD_FLOW_ENB) { vcc->vflags &= ~HE_VCC_FLOW_CTRL; -#ifdef notyet - atm_message(&sc->ifatm.ifnet, ATM_MSG_FLOW_CONTROL, - (0 << 24) | (HE_VPI(tpd->cid) << 16) | HE_VCI(tpd->cid)); -#endif + ATMEV_SEND_FLOW_CONTROL(&sc->ifatm, + HE_VPI(tpd->cid), HE_VCI(tpd->cid), 0); } } |