]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cxgbe(4): validate largest_rx_cluster and safest_rx_cluster.
authornp <np@FreeBSD.org>
Fri, 2 Oct 2020 05:59:55 +0000 (05:59 +0000)
committernp <np@FreeBSD.org>
Fri, 2 Oct 2020 05:59:55 +0000 (05:59 +0000)
commitc06489b83398a390793440229a9aaca7887d20ed
treedca1bff367b010e15d7c40e5e97ecaa15f24bf7d
parenta3bbb67b61eb7fd57b00e602672944da810e7417
cxgbe(4): validate largest_rx_cluster and safest_rx_cluster.

These tunables can only be set to a valid cluster size (2K, 4K, 9K, or
16K) as documented in the man page.  Anything else could lead to a
panic on interface up.

Reported by: mav@
MFC after: 1 week
Sponsored by: Chelsio Communications
sys/dev/cxgbe/t4_sge.c