Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Aug 2017 23:19:18 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r323077 - head/sys/net
Message-ID:  <201708312319.v7VNJIG1075540@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708312319.v7VNJIG1075540>