: ir256_usb_cow_urballoc.diff
Subsystems (2)
PATCH 1/1 : ir256_usb_cow_urballoc.diff
ir256_usb_cow_urballoc.diff :
---------------------------
o [FEATURE] Don't use skb_cow() unless we really need to
o [CORRECT] Reorder URB init to avoid races
o [CORRECT] USB dealy adds processing time, not removes it <Following patch from Greg KH <[email protected]> himself !!!>
o [CRITICA] Use dynamically allocated URBs (instead of statically)
include/net/irda/irda-usb.h renamed from include/net/irda/irda-usb.d4.h +3 -3
@@ -139,10 +139,10 @@ struct irda_usb_cb {wait_queue_head_t wait_q;/* for timeouts */ -struct urb rx_urb[IU_MAX_RX_URBS ];/* URBs used to receive data frames */ +struct urb *rx_urb[IU_MAX_RX_URBS ];/* URBs used to receive data frames */ struct urb *idle_rx_urb;/* Pointer to idle URB in Rx path */ -struct urb tx_urb;/* URB used to send data frames */ -struct urb speed_urb;/* URB used to send speed commands */ +struct urb *tx_urb;/* URB used to send data frames */ +struct urb *speed_urb;/* URB used to send speed commands */ struct net_device *netdev;/* Yes! we are some kind of netdev. */ struct net_device_stats stats;
drivers/net/irda/irda-usb.c renamed from drivers/net/irda/irda-usb.d4.c +65 -22
176 lines not on this page · raw message