diff options
author | 2001-12-10 01:05:27 +0000 | |
---|---|---|
committer | 2001-12-10 01:05:27 +0000 | |
commit | c291e19d3b1306ef6b2bd7c4806b364ae6487fc7 (patch) | |
tree | 1072b387c5c536734853868027f60074d1559fb9 | |
parent | Not needed/used anymore. (diff) | |
download | wireguard-openbsd-c291e19d3b1306ef6b2bd7c4806b364ae6487fc7.tar.xz wireguard-openbsd-c291e19d3b1306ef6b2bd7c4806b364ae6487fc7.zip |
Define MCLBYTES from MCLSHIFT, rather than providing the final value.
(sync with other arches)
-rw-r--r-- | sys/arch/sparc/include/param.h | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/include/param.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc/include/param.h b/sys/arch/sparc/include/param.h index 805f1bca2bb..199b57afd6f 100644 --- a/sys/arch/sparc/include/param.h +++ b/sys/arch/sparc/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.21 2001/12/05 01:57:15 provos Exp $ */ +/* $OpenBSD: param.h,v 1.22 2001/12/10 01:05:27 miod Exp $ */ /* $NetBSD: param.h,v 1.29 1997/03/10 22:50:37 pk Exp $ */ /* @@ -112,8 +112,8 @@ extern int nbpg, pgofset, pgshift; * of the hardware page size. */ #define MSIZE 256 /* size of an mbuf */ -#define MCLBYTES 2048 /* enough for whole Ethernet packet */ #define MCLSHIFT 11 /* log2(MCLBYTES) */ +#define MCLBYTES (1 << MCLSHIFT) /* enough for whole Ethernet packet */ #define MCLOFSET (MCLBYTES - 1) #ifndef NMBCLUSTERS diff --git a/sys/arch/sparc64/include/param.h b/sys/arch/sparc64/include/param.h index 9f69ac797a4..fdade7ef560 100644 --- a/sys/arch/sparc64/include/param.h +++ b/sys/arch/sparc64/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.5 2001/12/05 01:57:15 provos Exp $ */ +/* $OpenBSD: param.h,v 1.6 2001/12/10 01:05:28 miod Exp $ */ /* $NetBSD: param.h,v 1.25 2001/05/30 12:28:51 mrg Exp $ */ /* @@ -199,8 +199,8 @@ extern int nbpg, pgofset, pgshift; * of the hardware page size. */ #define MSIZE 256 /* size of an mbuf */ -#define MCLBYTES 2048 /* enough for whole Ethernet packet */ #define MCLSHIFT 11 /* log2(MCLBYTES) */ +#define MCLBYTES (1 << MCLSHIFT) /* enough for whole Ethernet packet */ #define MCLOFSET (MCLBYTES - 1) #ifndef NMBCLUSTERS |