From 81b6f8d5df26d49c659968e19162f8073a191ae4 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 5 Dec 2006 15:31:05 +0000 Subject: 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 --- sys/dev/nve/if_nvereg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/nve/if_nvereg.h b/sys/dev/nve/if_nvereg.h index 605e04827b1a6..80a0e686af467 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 { -- cgit v1.3