summaryrefslogtreecommitdiffstats
path: root/sys/dev/nve
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-12-05 15:31:05 +0000
committerjhb <jhb@FreeBSD.org>2006-12-05 15:31:05 +0000
commit145d75c2d45b46f24b67842193425c01c511707b (patch)
treece0fc489ea39ac684059cd07c893c6b52c89fcf0 /sys/dev/nve
parent2b43628e6bc4ec34405e15bf507be9019143d947 (diff)
downloadFreeBSD-src-145d75c2d45b46f24b67842193425c01c511707b.zip
FreeBSD-src-145d75c2d45b46f24b67842193425c01c511707b.tar.gz
Fix an off by one error in struct nve_tx_desc's frags[] array as a result
of the nvenet lib upgrade (the constant went from 63 (2^n - 1) to 32 (2^n)). For reasons that are not obvious to me this fixes the driver on at least some NICs. MFC after: 3 days
Diffstat (limited to 'sys/dev/nve')
-rw-r--r--sys/dev/nve/if_nvereg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/nve/if_nvereg.h b/sys/dev/nve/if_nvereg.h
index 605e048..80a0e68 100644
--- a/sys/dev/nve/if_nvereg.h
+++ b/sys/dev/nve/if_nvereg.h
@@ -106,7 +106,7 @@ struct nve_tx_desc {
struct nve_map_buffer buf;
u_int16_t buflength;
u_int32_t numfrags;
- bus_dma_segment_t frags[NV_MAX_FRAGS + 1];
+ bus_dma_segment_t frags[NV_MAX_FRAGS];
};
struct nve_softc {
OpenPOWER on IntegriCloud