diff options
author | Bill Paul <wpaul@FreeBSD.org> | 2001-06-18 22:04:40 +0000 |
---|---|---|
committer | Bill Paul <wpaul@FreeBSD.org> | 2001-06-18 22:04:40 +0000 |
commit | 7437599f41b489215b0f0786e1ca546218341206 (patch) | |
tree | 9b2a9deed908d3402c0e933be7e111ac10eef6ca /sys/dev/lge/if_lgereg.h | |
parent | cfd1472cef4c0624d739b85fe5e1d04adab5d761 (diff) |
Fix some memory bugs with regard to jumbo buffers. I made a mistake when
converting from the old external mbuf buffer code to the new (with the
MEXTADD() macro). Also free free list memory correctly in
foo_free_jumbo_mem() routines: grab the head of the list, then
remove it, _then_ free() it.
This fixes the memory corruption problem I've been chasing in the level 1
driver.
Notes
Notes:
svn path=/head/; revision=78440
Diffstat (limited to 'sys/dev/lge/if_lgereg.h')
-rw-r--r-- | sys/dev/lge/if_lgereg.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/lge/if_lgereg.h b/sys/dev/lge/if_lgereg.h index 7815675df0f2..f0254b199be9 100644 --- a/sys/dev/lge/if_lgereg.h +++ b/sys/dev/lge/if_lgereg.h @@ -502,7 +502,6 @@ struct lge_mii_frame { #define LGE_JRAWLEN (LGE_JUMBO_FRAMELEN + ETHER_ALIGN) #define LGE_JLEN (LGE_JRAWLEN + (sizeof(u_int64_t) - \ (LGE_JRAWLEN % sizeof(u_int64_t)))) -#define LGE_MCLBYTES (LGE_JLEN - sizeof(u_int64_t)) #define LGE_JPAGESZ PAGE_SIZE #define LGE_RESID (LGE_JPAGESZ - (LGE_JLEN * LGE_JSLOTS) % LGE_JPAGESZ) #define LGE_JMEM ((LGE_JLEN * LGE_JSLOTS) + LGE_RESID) |