Use M_DONTWAIT for mcluster allocation on em_init() path to prevent system
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 14 May 2007 12:31:41 +0000 (12:31 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 14 May 2007 12:31:41 +0000 (12:31 +0000)
commitcd44b78b22e3b66d48a8e7b8c74c4ba3285bbd6b
tree0164eebfdc5767c285daa63e094073cafc499716
parent86158233e43df7c23d8ac5dcec43ed412fedd695
Use M_DONTWAIT for mcluster allocation on em_init() path to prevent system
hanging, if user configures RX descriptors to the maximum allowable value,
but kern.ipc.nmbclusters tunable is forgotten to be adjusted accordingly.

System-Hanging-Experienced-by: hasso@ :P
# This commit can be reverted once object cache limit can grow automaticly.
sys/dev/netif/em/if_em.c