diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-10-22 21:19:23 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-10-22 21:19:23 +0000 |
commit | 9c0bc0166ead8316589170e3377c6af33c4d17ef (patch) | |
tree | 56e81ddcb48cb800b3435e9dfa5f5a65f5569890 /sys/dev | |
parent | b0bf4f3a32c2b92649e4b9acb88add5c3354ebcc (diff) |
DMA memory for the TX ring should be aligned at RL_RING_ALIGN,
not RE_ETHER_ALIGN.
From tsutsui@NetBSD
Tested on alpha/amd64/armish/i386/sparc64
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/re.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c index 9d9415e917e..17f6fc8677e 100644 --- a/sys/dev/ic/re.c +++ b/sys/dev/ic/re.c @@ -1,4 +1,4 @@ -/* $OpenBSD: re.c,v 1.48 2006/10/16 20:37:25 brad Exp $ */ +/* $OpenBSD: re.c,v 1.49 2006/10/22 21:19:22 brad Exp $ */ /* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */ /* * Copyright (c) 1997, 1998-2003 @@ -834,7 +834,7 @@ re_attach(struct rl_softc *sc) /* Allocate DMA'able memory for the TX ring */ if ((error = bus_dmamem_alloc(sc->sc_dmat, RL_TX_LIST_SZ(sc), - RE_ETHER_ALIGN, 0, &sc->rl_ldata.rl_tx_listseg, 1, + RL_RING_ALIGN, 0, &sc->rl_ldata.rl_tx_listseg, 1, &sc->rl_ldata.rl_tx_listnseg, BUS_DMA_NOWAIT)) != 0) { printf("%s: can't allocate tx listseg, error = %d\n", sc->sc_dev.dv_xname, error); |