]> git.baikalelectronics.ru Git - kernel.git/commit
usb ethernet gadget: split out network core
authorDavid Brownell <dbrownell@users.sourceforge.net>
Fri, 20 Jun 2008 01:19:28 +0000 (18:19 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Jul 2008 22:16:12 +0000 (15:16 -0700)
commit1b95ac90b01d4be63356320f70ee6845865e8559
treed7e70b94b002a08d5a31b56d88dd62b63b686d6a
parenta73ca1a30dceaa1afcda38828fbee7eade38305c
usb ethernet gadget: split out network core

Abstract the peripheral side Ethernet-over-USB link layer code from
the all-in-one Ethernet gadget driver into a component that can be
called by various functions, so the various flavors can be split
apart and selectively reused.

A notable difference from the approach taken with the serial link
layer code (beyond talking to NET not TTY) is that because of the
initialization requirements, this only supports one network link.
(And one set of Ethernet link addresses.)

That is, each configuration may have only one instance of a network
function.  This doesn't change behavior; the current code has that
same restriction.  If you want multiple logical links, that can
easily be done using network layer tools.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/Makefile
drivers/usb/gadget/u_ether.c [new file with mode: 0644]
drivers/usb/gadget/u_ether.h [new file with mode: 0644]