Always set maximum queue length to passed in the IFQCTL_MAXLEN case.
authormvs <mvs@openbsd.org>
Tue, 16 May 2023 20:09:27 +0000 (20:09 +0000)
committermvs <mvs@openbsd.org>
Tue, 16 May 2023 20:09:27 +0000 (20:09 +0000)
commit1d2d8e408bcf33f6b7c26e79e01b605de63d762b
treeaf735e2cb9032bec6e22e1b45fe496d84a220634
parent5db8aee77dd57e6fdd5d905edd1a421b6747815e
Always set maximum queue length to passed in the IFQCTL_MAXLEN case.
This is not the fast path, so dropping mq->mq_maxlen check doesn't
introduce any performance impact, but makes code MP consistent.

Discussed with and ok from bluhm@
sys/kern/uipc_mbuf.c