NET: usb: Adding URB_ZERO_PACKET flag to usbnet.c
authorElina Pasheva <epasheva@sierrawireless.com>
Tue, 6 Apr 2010 14:23:07 +0000 (14:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Apr 2010 02:50:22 +0000 (19:50 -0700)
commitb4d562e3c3553ac58c7120555c4e4aefbb090a2a
tree57399d164d3882f0f19080c0cd0014d039af6109
parent17a328ca8c04cf88be9a9ef1cb74f359c59f1802
NET: usb: Adding URB_ZERO_PACKET flag to usbnet.c

This patch adds setting of the urb transfer flag URB_ZERO_PACKET  before
submitting an urb for drivers that have requested it (by advertising flag
FLAG_SEND_ZLP).
The modification is in usbnet.c function usbnet_start_xmit().
This patch only adds the zero length flag.
A subsequent patch will address the buggy code we found when devices do not
advertise FLAG_SEND_ZLP in which case there is a possibility of transferring
packets with non-deterministic length.

This patch has been tested on kernel-2.6.34-rc3.
This patch has been checked against net-2.6 tree.
Signed-off-by: Elina Pasheva <epasheva@sierrawireless.com>
Signed-off-by: Rory Filer <rfiler@sierrawireless.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c