diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-08-24 13:15:05 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-08-24 13:15:05 +0000 |
commit | e880bfaf5a8336986e80abe5a7646f7af715fd10 (patch) | |
tree | b6634d146907e9ea80c831221767070d4b3f001f /sys/dev/pci/if_nxe.c | |
parent | b3a283b77f201da020e65f785a9f0f1b6c5a9554 (diff) |
the ring sizes are reprresented by 32 bit fields in the context descirptor,
so use htole32 to get a value for them, not htole64.
Diffstat (limited to 'sys/dev/pci/if_nxe.c')
-rw-r--r-- | sys/dev/pci/if_nxe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_nxe.c b/sys/dev/pci/if_nxe.c index 2ba4f24858b..ed11116ed34 100644 --- a/sys/dev/pci/if_nxe.c +++ b/sys/dev/pci/if_nxe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nxe.c,v 1.46 2007/08/23 13:52:29 dlg Exp $ */ +/* $OpenBSD: if_nxe.c,v 1.47 2007/08/24 13:15:04 dlg Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -1113,7 +1113,7 @@ nxe_up(struct nxe_softc *sc) ctx->ctx_cmd_ring.r_addr = htole64(NXE_DMA_DVA(sc->sc_cmd_ring->nr_dmamem)); - ctx->ctx_cmd_ring.r_size = htole64(sc->sc_cmd_ring->nr_nentries); + ctx->ctx_cmd_ring.r_size = htole32(sc->sc_cmd_ring->nr_nentries); /* allocate the status ring */ sc->sc_status_ring = nxe_ring_alloc(sc, @@ -1123,7 +1123,7 @@ nxe_up(struct nxe_softc *sc) ctx->ctx_status_ring_addr = htole64(NXE_DMA_DVA(sc->sc_status_ring->nr_dmamem)); - ctx->ctx_status_ring_size = htole64(sc->sc_status_ring->nr_nentries); + ctx->ctx_status_ring_size = htole32(sc->sc_status_ring->nr_nentries); /* allocate the rx rings */ for (i = 0; i < NXE_NRING; i++) { |