svn commit: r323077 - head/sys/net

Gleb Smirnoff glebius at FreeBSD.org
Thu Aug 31 23:19:19 UTC 2017


Author: glebius
Date: Thu Aug 31 23:19:18 2017
New Revision: 323077
URL: https://svnweb.freebsd.org/changeset/base/323077

Log:
  Do not abuse flag that is clearly marked as unused.
  This creates conflicts with FreeBSD variations that may use it.  The
  usage of the flag M_TOOBIG is limited to iflib queue, thus using
  one of M_PROTO flags is fine.  There is no need to grab global flag.
  
  Silence from:	kmacy, sbruno (2 weeks)

Modified:
  head/sys/net/iflib.c

Modified: head/sys/net/iflib.c
==============================================================================
--- head/sys/net/iflib.c	Thu Aug 31 22:47:04 2017	(r323076)
+++ head/sys/net/iflib.c	Thu Aug 31 23:19:18 2017	(r323077)
@@ -267,7 +267,7 @@ iflib_get_sctx(if_ctx_t ctx)
 #define RX_SW_DESC_INUSE        (1 << 3)
 #define TX_SW_DESC_MAPPED       (1 << 4)
 
-#define	M_TOOBIG		M_UNUSED_8
+#define	M_TOOBIG		M_PROTO1
 
 typedef struct iflib_sw_rx_desc_array {
 	bus_dmamap_t	*ifsd_map;         /* bus_dma maps for packet */


More information about the svn-src-head mailing list