mxge: Fix small buf allocation
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 16 Sep 2013 12:34:00 +0000 (20:34 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 16 Sep 2013 12:34:00 +0000 (20:34 +0800)
commit8ebf015e0c91c2169177f7fd494679855d71f1d8
tree2589014368397829698897f7e34b10c104431b13
parent308781ad75b2fd36150ecd9be68f71c3a7862885
mxge: Fix small buf allocation

- MB_WAIT should be used to allocate mbuf.
- m_freem() instead of m_free() should be called if busdma error happens.
- During initialization, there is no mbuf to be recycled; just return
  error.
sys/dev/netif/mxge/if_mxge.c