Skip to content

Commit 9c79330

Browse files
lynxeye-devdavem330
authored andcommitted
net: usb: fix regression from FLAG_NOARP code
In commit 6509141 ("usbnet: add new flag FLAG_NOARP for usb net devices"), the newly added flag NOARP was using an already defined value, which broke drivers using flag MULTI_PACKET. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 87c084a commit 9c79330

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/usb/usbnet.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ struct driver_info {
102102
#define FLAG_LINK_INTR 0x0800 /* updates link (carrier) status */
103103

104104
#define FLAG_POINTTOPOINT 0x1000 /* possibly use "usb%d" names */
105-
#define FLAG_NOARP 0x2000 /* device can't do ARP */
106105

107106
/*
108107
* Indicates to usbnet, that USB driver accumulates multiple IP packets.
109108
* Affects statistic (counters) and short packet handling.
110109
*/
111110
#define FLAG_MULTI_PACKET 0x2000
112111
#define FLAG_RX_ASSEMBLE 0x4000 /* rx packets may span >1 frames */
112+
#define FLAG_NOARP 0x8000 /* device can't do ARP */
113113

114114
/* init device ... can sleep, or cause probe() failure */
115115
int (*bind)(struct usbnet *, struct usb_interface *);

0 commit comments

Comments
 (0)