diff options
| author | Alexey Orishko <alexey.orishko@gmail.com> | 2010-11-29 18:23:27 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-12-06 15:59:02 -0500 |
| commit | 073285fd392f6dc901da7c698d46e1e2a7e26436 (patch) | |
| tree | 5207bc21a56d42eb9f86811068a8c55772b451f0 /include/linux/usb | |
| parent | 5ee493767352314893520ac40aec5bb07d0147e0 (diff) | |
usbnet: changes for upcoming cdc_ncm driver
Changes:
include/linux/usb/usbnet.h:
- a new flag to indicate driver's capability to accumulate IP packets in Tx
direction and extract several packets from single skb in Rx direction.
drivers/net/usb/usbnet.c:
- the procedure of counting packets in usbnet was updated due to the
accumulating of IP packets in the driver
- no short packets are sent if indicated by the flag in driver_info
structure
Signed-off-by: Alexey Orishko <alexey.orishko@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/usb')
| -rw-r--r-- | include/linux/usb/usbnet.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/usb/usbnet.h b/include/linux/usb/usbnet.h index 7ae27a473818..44842c8d38c0 100644 --- a/include/linux/usb/usbnet.h +++ b/include/linux/usb/usbnet.h | |||
| @@ -97,6 +97,12 @@ struct driver_info { | |||
| 97 | 97 | ||
| 98 | #define FLAG_LINK_INTR 0x0800 /* updates link (carrier) status */ | 98 | #define FLAG_LINK_INTR 0x0800 /* updates link (carrier) status */ |
| 99 | 99 | ||
| 100 | /* | ||
| 101 | * Indicates to usbnet, that USB driver accumulates multiple IP packets. | ||
| 102 | * Affects statistic (counters) and short packet handling. | ||
| 103 | */ | ||
| 104 | #define FLAG_MULTI_PACKET 0x1000 | ||
| 105 | |||
| 100 | /* init device ... can sleep, or cause probe() failure */ | 106 | /* init device ... can sleep, or cause probe() failure */ |
| 101 | int (*bind)(struct usbnet *, struct usb_interface *); | 107 | int (*bind)(struct usbnet *, struct usb_interface *); |
| 102 | 108 | ||
