git: mxge: Fix big buf allocation

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Mon Sep 16 07:20:09 PDT 2013


commit 363b44f8dfea16526a1df36d5105e954f85d710a
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Mon Sep 16 22:19:31 2013 +0800

    mxge: Fix big 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.

Summary of changes:
 sys/dev/netif/mxge/if_mxge.c | 47 ++++++++++++++++++++++++++++----------------
 1 file changed, 30 insertions(+), 17 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/363b44f8dfea16526a1df36d5105e954f85d710a


-- 
DragonFly BSD source repository



More information about the Commits mailing list