summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2005-08-31 09:52:31 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2005-09-08 16:28:30 -0700
commitf29fc259976e9f4dd1fe8ed59ccdd50e4ea61db0 (patch)
treeef2798f4b6581926082b88a8cd6cdecbd11ac39e /init
parentdd7d50081f5dafd9392bd79f1ec90d553a7303c9 (diff)
downloadop-kernel-dev-f29fc259976e9f4dd1fe8ed59ccdd50e4ea61db0.zip
op-kernel-dev-f29fc259976e9f4dd1fe8ed59ccdd50e4ea61db0.tar.gz
[PATCH] USB: usbnet (1/9) clean up framing
This starts to prepare the core of "usbnet" to know less about various framing protocols that map Ethernet packets onto USB, so "minidrivers" can be modules that just plug into the core. - Remove some framing-specific code that cluttered the core: * net->hard_header_len records how much space to preallocate; now drivers that add their own framing (Net1080, GeneLink, Zaurus, and RNDIS) will have smoother TX paths. Even for the drivers (Zaurus, Net1080) that need trailers. * defines new dev->hard_mtu, using this "hardware" limit to check changes to the link's settable "software" mtu. * now net->hard_header_len and dev->hard_mtu are set up in the driver bind() routines, if needed. - Transaction ID is no longer specific to the Net1080 framing; RNDIS needs one too. - Creates a new "usbnet.h" header with declarations that are shared between the core and what will be separate modules. - Plus a couple other minor tweaks, like recognizing -ESHUTDOWN means the keventd work should just shut itself down asap. The core code is only about 1/3 of this large file. Splitting out the minidrivers into separate modules (e.g. ones for ASIX adapters, Zaurii and similar, CDC Ethernet, etc), in later patches, will improve maintainability and shrink typical runtime footprints. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud