diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2014-10-19 03:54:57 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2014-10-19 03:54:57 +0000 |
commit | b5db4995ea1b938ba8726677edfdfff102d71cfa (patch) | |
tree | df610b244907abc8167d4818f0bf223fb1f75ec8 /sys | |
parent | 72860f357be9a0968d8345e5688e90dbec9ae004 (diff) |
Use sc_if->sk_pktlen to specify the maximum DMA transfer size and maximum
DMA segment size when setting up the TX buffers in msk_init_tx_ring().
ok jsg@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_msk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_msk.c b/sys/dev/pci/if_msk.c index 72624d221fd..99e4271e37f 100644 --- a/sys/dev/pci/if_msk.c +++ b/sys/dev/pci/if_msk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_msk.c,v 1.109 2014/10/09 09:34:17 mpi Exp $ */ +/* $OpenBSD: if_msk.c,v 1.110 2014/10/19 03:54:56 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -459,8 +459,8 @@ msk_init_tx_ring(struct sk_if_softc *sc_if) nexti = i + 1; cd->sk_tx_chain[i].sk_next = &cd->sk_tx_chain[nexti]; - if (bus_dmamap_create(sc->sc_dmatag, SK_JLEN, SK_NTXSEG, - SK_JLEN, 0, BUS_DMA_NOWAIT, &dmamap)) + if (bus_dmamap_create(sc->sc_dmatag, sc_if->sk_pktlen, + SK_NTXSEG, sc_if->sk_pktlen, 0, BUS_DMA_NOWAIT, &dmamap)) return (ENOBUFS); entry = malloc(sizeof(*entry), M_DEVBUF, M_NOWAIT); |