usb4bsd: Fix usb_etherther and cleanup if_axe
authorMarkus Pfeiffer <markus.pfeiffer@morphism.de>
Mon, 3 Nov 2014 22:33:31 +0000 (22:33 +0000)
committerMarkus Pfeiffer <markus.pfeiffer@morphism.de>
Mon, 3 Nov 2014 22:35:21 +0000 (22:35 +0000)
commite8d7ed64935140722e144ba2f7a52ada79792d47
tree9736faee83c71a99af612e4f8f729886bdfd1b6f
parentd1c259eee6a290aadce1c78a746e131034aba76a
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.
sys/bus/u4b/net/if_axe.c
sys/bus/u4b/net/usb_ethernet.c
sys/bus/u4b/net/usb_ethernet.h