From 2cc3b2eec56a2a536095fc2cf4fb0aaa686c689f Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Thu, 31 Aug 2017 23:19:18 +0000 Subject: [PATCH] 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) --- sys/net/iflib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/iflib.c b/sys/net/iflib.c index 2a169406268..41772d250f4 100644 --- a/sys/net/iflib.c +++ b/sys/net/iflib.c @@ -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 */