]> git.baikalelectronics.ru Git - kernel.git/commit
USBNET: support DMA SG
authorMing Lei <ming.lei@canonical.com>
Thu, 8 Aug 2013 13:48:24 +0000 (21:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 19:09:23 +0000 (12:09 -0700)
commit2af590676cb24fadf9e3381c649152e9771b9e86
tree43c74854c39e728fb80b82707f80b0f499598d7d
parent974f4bc36ff41a604577dad9d173b2858fe73e7e
USBNET: support DMA SG

This patch introduces support of DMA SG if the USB host controller
which usbnet device is attached to is capable of building packet from
discontinuous buffers.

The patch supports passing the skb fragment buffers to usb stack directly
via urb->sg.

Cc: Ben Hutchings <bhutchings@solarflare.com>
Cc: Grant Grundler <grundler@google.com>
Cc: Freddy Xin <freddy@asix.com.tw>
Cc: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/usbnet.c
include/linux/usb/usbnet.h