]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Replace the static "qdat" structure with a per-instance softc field
authoriedowse <iedowse@FreeBSD.org>
Sun, 23 May 2004 12:35:25 +0000 (12:35 +0000)
committeriedowse <iedowse@FreeBSD.org>
Sun, 23 May 2004 12:35:25 +0000 (12:35 +0000)
commit74bd7acb1b7e48ddbab0329274e029fe76e100c8
treecf37b7bb9f8310d2b2d6951faea823fc8ff7040d
parentdf957a976b2b2a775bf1a5c55b1905176e20ca7b
Replace the static "qdat" structure with a per-instance softc field
in all USB ethernet drivers. The qdat structure contains a pointer
to the interface's struct ifnet and is used to process incoming
packets, so simultaneous use of two similar devices caused crashes
and confusion.

The if_udav driver appeared in the tree since Daan's PR, so I made
similar changes to that driver too.

PR: kern/59290
Submitted by: Daan Vreeken <Danovitsch@Vitsch.net>
12 files changed:
sys/dev/usb/if_aue.c
sys/dev/usb/if_auereg.h
sys/dev/usb/if_axe.c
sys/dev/usb/if_axereg.h
sys/dev/usb/if_cue.c
sys/dev/usb/if_cuereg.h
sys/dev/usb/if_kue.c
sys/dev/usb/if_kuereg.h
sys/dev/usb/if_rue.c
sys/dev/usb/if_ruereg.h
sys/dev/usb/if_udav.c
sys/dev/usb/if_udavreg.h