freebsd-nq/sys
Mike Karels 456e896d6d Fix flags collision causing inability to enable CBQ in ALTQ
The CBQ BORROW flag conflicts with the RMCF_CODEL flag; the
two sets of definitions actually define the same things. The symptom
is that a kernel with CBQ support and not CODEL fails to load a QoS
policy with the obscure error "pfctl: DIOCADDALTQ: Cannot allocate memory."
If ALTQ_DEBUG is enabled, the error becomes a little clearer:
"rmc_newclass: CODEL not configured for CBQ!" is printed by the kernel.
There really shouldn't be two sets of macros that have to be defined
consistently, but the include structure isn't right for exporting
CBQ flags to altq_rmclass.h. Re-align the definitions, and add
CTASSERTs in the kernel to ensure that the definitions are consistent.

PR:		215716
Reviewed by:	pkelsey
MFC after:	2 weeks
Sponsored by:	Forcepoint LLC
Differential Revision:	https://reviews.freebsd.org/D17758
2018-11-16 03:42:29 +00:00
..
amd64 amd64: handle small memset buffers with overlapping stores 2018-11-16 00:44:22 +00:00
arm Set the SPI clock speed and polarity on each transfer to catch up with 2018-11-15 17:05:02 +00:00
arm64
bsm
cam Add cam_iosched_set_latfcn to set a latency callback for high latency. 2018-11-15 16:02:45 +00:00
cddl Add d_off support for multiple filesystems. 2018-11-14 14:18:35 +00:00
compat Use the main capabilities.conf for freebsd32. 2018-11-14 00:46:02 +00:00
conf
contrib
crypto
ddb
dev Restore the <sys/vmem.h> header to fix build of cxgbe(4) TOM. 2018-11-16 01:27:24 +00:00
dts
fs Add d_off support for multiple filesystems. 2018-11-14 14:18:35 +00:00
gdb
geom
gnu
i386
isa
kern Remove mostly-useless proc provider probes. 2018-11-15 23:02:59 +00:00
kgssapi
libkern
mips
modules
net Fix flags collision causing inability to enable CBQ in ALTQ 2018-11-16 03:42:29 +00:00
net80211
netgraph
netinet Ensure that IP fragments do not extend beyond IP_MAXPACKET. 2018-11-10 03:00:36 +00:00
netinet6
netipsec
netpfil
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
powerpc
riscv
rpc
security
sparc64
sys When converting ns,us,ms to sbt, return the ceil() of the result 2018-11-15 16:02:13 +00:00
teken
tests
tools
ufs Add d_off support for multiple filesystems. 2018-11-14 14:18:35 +00:00
vm
x86 Convert the number of MSI IRQs on x86 from a constant to a tunable. 2018-11-15 18:37:41 +00:00
xdr
xen
Makefile