summaryrefslogtreecommitdiffstats
path: root/sys/dev/hatm/if_hatm_ioctl.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-07-10 13:55:09 +0000
committerharti <harti@FreeBSD.org>2003-07-10 13:55:09 +0000
commit940c15d08f3ed6e6544787bb59a3609c1da43466 (patch)
tree1c3d55b6d976500360e108536bcb716e20798aa1 /sys/dev/hatm/if_hatm_ioctl.c
parent931b660ce6950937dafa22fcea4793d2b19449c1 (diff)
downloadFreeBSD-src-940c15d08f3ed6e6544787bb59a3609c1da43466.zip
FreeBSD-src-940c15d08f3ed6e6544787bb59a3609c1da43466.tar.gz
Use the default arguments for lockfunc and lockfuncarg in
bus_dma_tag_create. We need to be sure that our packets are kept in-sequence (that's how ATM is supposed to work) and therefor use BUS_DMA_NOWAIT in all calls to bus_dmamap_load. For memory allocated with bus_dmamem_alloc the use of anything other than NULL arguments for the locking is anyway bogus because this memory never should need bouncing and hence the load should never be defered. Allow the receipt of OAM and RM cells on raw connections. Caveat: it seems that RM cells are still processed by the hardware even when we open the connection as UBR.
Diffstat (limited to 'sys/dev/hatm/if_hatm_ioctl.c')
-rw-r--r--sys/dev/hatm/if_hatm_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hatm/if_hatm_ioctl.c b/sys/dev/hatm/if_hatm_ioctl.c
index 479500b..633aee3 100644
--- a/sys/dev/hatm/if_hatm_ioctl.c
+++ b/sys/dev/hatm/if_hatm_ioctl.c
@@ -222,7 +222,7 @@ hatm_open_vcc(struct hatm_softc *sc, struct atmio_openvcc *arg)
if (!(vcc->param.flags & ATMIO_FLAG_NG) ||
(vcc->param.flags & ATMIO_FLAG_PVC))
atm_message(&sc->ifatm.ifnet, ATM_MSG_VCC_CHANGED,
- (1 << 24) | (arg->vpi << 16) | arg->vci);
+ (1 << 24) | (arg->param.vpi << 16) | arg->param.vci);
#endif
/* don't free below */
OpenPOWER on IntegriCloud