Index | Thread | Search

From:
Claudio Jeker <cjeker@diehard.n-r-g.com>
Subject:
Re: remove M_MAXCOMPRESS MCLOFSET from sys/mbuf.h
To:
tech@openbsd.org
Date:
Tue, 5 Nov 2024 10:19:35 +0100

Download raw body.

Thread
On Tue, Nov 05, 2024 at 08:11:28PM +1100, Jonathan Gray wrote:
> nothing uses these, remove

OK claudio@
 
> Index: sys/sys/mbuf.h
> ===================================================================
> RCS file: /cvs/src/sys/sys/mbuf.h,v
> diff -u -p -r1.264 mbuf.h
> --- sys/sys/mbuf.h	29 Aug 2024 10:44:40 -0000	1.264
> +++ sys/sys/mbuf.h	5 Nov 2024 08:59:40 -0000
> @@ -58,12 +58,10 @@
>  
>  #define	MAXMCLBYTES	(64 * 1024)		/* largest cluster from the stack */
>  #define	MINCLSIZE	(MHLEN + MLEN + 1)	/* smallest amount to put in cluster */
> -#define	M_MAXCOMPRESS	(MHLEN / 2)		/* max amount to copy for compression */
>  
>  #define	MCLSHIFT	11		/* convert bytes to m_buf clusters */
>  					/* 2K cluster can hold Ether frame */
>  #define	MCLBYTES	(1 << MCLSHIFT)	/* size of a m_buf cluster */
> -#define	MCLOFSET	(MCLBYTES - 1)
>  
>  /* Packet tags structure */
>  struct m_tag {
> Index: share/man/man9/mbuf.9
> ===================================================================
> RCS file: /cvs/src/share/man/man9/mbuf.9,v
> diff -u -p -r1.126 mbuf.9
> --- share/man/man9/mbuf.9	9 Jul 2024 18:56:54 -0000	1.126
> +++ share/man/man9/mbuf.9	5 Nov 2024 08:59:40 -0000
> @@ -145,12 +145,10 @@
>  
>  #define MAXMCLBYTES     (64 * 1024)
>  #define MINCLSIZE       (MHLEN + MLEN + 1)
> -#define M_MAXCOMPRESS   (MHLEN / 2)
>  
>  #define MCLSHIFT        11
>  
>  #define MCLBYTES        (1 << MCLSHIFT)
> -#define MCLOFSET        (MCLBYTES - 1)
>  
>  #define mtod(m,t)       ((t)((m)->m_data))
>  
> 

-- 
:wq Claudio