diff options
author | scottl <scottl@FreeBSD.org> | 2006-01-14 17:42:22 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2006-01-14 17:42:22 +0000 |
commit | cb60aeaf06a83bfe789467a960bfd821f4f0d7da (patch) | |
tree | f40d62d92596c1087107bc80f81baab23f3ebb98 /sys/dev/bge | |
parent | ec415604ac113037fe5565b05ca713ac76ee24eb (diff) | |
download | FreeBSD-src-cb60aeaf06a83bfe789467a960bfd821f4f0d7da.zip FreeBSD-src-cb60aeaf06a83bfe789467a960bfd821f4f0d7da.tar.gz |
Don't base the number of jumbo segments on page size, instead base it on the
fact that jumbo desriptors are defined to have 3 segments.
Found by: Coverity Prevent(tm)
Diffstat (limited to 'sys/dev/bge')
-rw-r--r-- | sys/dev/bge/if_bgereg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/bge/if_bgereg.h b/sys/dev/bge/if_bgereg.h index 55ad021..12fa607 100644 --- a/sys/dev/bge/if_bgereg.h +++ b/sys/dev/bge/if_bgereg.h @@ -2292,7 +2292,7 @@ struct vpd_key { #define BGE_RESID (BGE_JPAGESZ - (BGE_JLEN * BGE_JSLOTS) % BGE_JPAGESZ) #define BGE_JMEM ((BGE_JLEN * BGE_JSLOTS) + BGE_RESID) -#define BGE_NSEG_JUMBO (MJUM9BYTES/PAGE_SIZE + 1) +#define BGE_NSEG_JUMBO 3 #define BGE_NSEG_NEW 32 /* |