[PATCH v2 3/4] USBNET: support DMA SG

2013-08-05 Thread Ming Lei
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: Eric Dumazet eric.duma...@gmail.com Cc: Ben

Re: [PATCH v2 3/4] USBNET: support DMA SG

2013-08-05 Thread Oliver Neukum
On Mon, 2013-08-05 at 16:47 +0800, Ming Lei wrote: @@ -1268,10 +1298,14 @@ netdev_tx_t usbnet_start_xmit (struct sk_buff *skb, entry = (struct skb_data *) skb-cb; entry-urb = urb; entry-dev = dev; - entry-length = length; usb_fill_bulk_urb (urb, dev-udev,

Re: [PATCH v2 3/4] USBNET: support DMA SG

2013-08-05 Thread Ming Lei
On Mon, Aug 5, 2013 at 5:14 PM, Oliver Neukum oneu...@suse.de wrote: On Mon, 2013-08-05 at 16:47 +0800, Ming Lei wrote: @@ -1268,10 +1298,14 @@ netdev_tx_t usbnet_start_xmit (struct sk_buff *skb, entry = (struct skb_data *) skb-cb; entry-urb = urb; entry-dev = dev; -