CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2014/10/27 18:36:06

Modified files:
        sys/dev/pci    : if_myx.c 

Log message:
the if_rxring accounting would get screwed up if the first mbuf to
be put on the ring couldnt be allocated.

this pulls the code that puts the mbufs on the ring out of myx_rx_fill
so it can return early if firstmb cant be allocated, which puts it
in the right place to return unused slots to the if_rxring.

this means myx rx wont lock up if you're DoSsed to the point where
you exhaust your mbuf pools and cant allocate mbufs for the ring.

ok jmatthew@

Reply via email to