• David Brownell's avatar
    [PATCH] usb gadget: ethernet/rndis updates · 6cdee106
    David Brownell authored
    Updates to the Ethernet/RNDIS gadget driver (mostly for RNDIS):
    
      - Fix brown-paper bag goof with RNDIS packet TX ... the wrong length
        field got set, so Windows would ignore data packets it received.
    
      - More consistent handling of CDC output filters (but not yet hooking
        things up so RNDIS uses the mechanism).
    
      - Zerocopy RX for RNDIS packets too (saving CPU cycles).
    
      - Use the pre-allocated interrupt/status request and buffer, rather
        than allocating and freeing one of each every few seconds (which
        could fail).
    
      - Some more "sparse" tweaks, making both dual-speed and single-speed
        configurations happier.
    
      - RNDIS speeds are reported in units of 100bps, not bps.
    
    Plus two minor cleanups (whitespace, messaging).
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    6cdee106
rndis.h 8.48 KB