git: usb4bsd: Fix usb_etherther and cleanup if_axe

Markus Pfeiffer profmakx at crater.dragonflybsd.org
Mon Nov 3 14:36:02 PST 2014


commit e8d7ed64935140722e144ba2f7a52ada79792d47
Author: Markus Pfeiffer <markus.pfeiffer at morphism.de>
Date:   Mon Nov 3 22:33:31 2014 +0000

    usb4bsd: Fix usb_etherther and cleanup if_axe
    
    Since mii relies on a struct ifnet being the first part of a
    softc for a network driver, make usb_ethernet adhere to this rule.
    This fixes panics with usb_ethernet caused by parts of the
    uether_softc being overwritten by the mii code.

Summary of changes:
 sys/bus/u4b/net/if_axe.c       | 16 +++--------
 sys/bus/u4b/net/usb_ethernet.c | 60 ++++++++++--------------------------------
 sys/bus/u4b/net/usb_ethernet.h |  6 ++++-
 3 files changed, 22 insertions(+), 60 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e8d7ed64935140722e144ba2f7a52ada79792d47


-- 
DragonFly BSD source repository


More information about the Commits mailing list