Skip to contentSkip to conversation

net: usb: cdc_ncm: add support IFF_NOARP

DISCUSSION Wei Shuai 3 participants 3 messages Jan 8, 2013

Subsystems (2)
lore
Share & tools
lore

Wei Shuai

author
#0 lore raw

Hi Alexey,
Recently I met a Modem which cannot do ARP. But I found our
cdc_ncm_bind() function cannot handle this special case. Do you have any plan to handle it?

static int cdc_ncm_bind(struct usbnet *dev, struct usb_interface *intf)

{
	...
 	/*  cannot do ARP */
 	dev->net->flags |= IFF_NOARP;
	...
}
#1 lore raw

Hi,

Quoted 6 lines · Wei Shuai

Hi Alexey,
Recently I met a Modem which cannot do ARP. But I found our
cdc_ncm_bind() function cannot handle this special case. Do you have any plan to handle it?

Quoted 7 lines

static int cdc_ncm_bind(struct usbnet *dev, struct usb_interface *intf)

{
        ...
        /*  cannot do ARP */
        dev->net->flags |= IFF_NOARP;
        ...
}

All devices I have can handle ARP, so there was no need for such a feature in the driver..

Last version of the driver also supports MBIM devices, which have no MAC address at all
since payload is a pure IP, While considering changes this shall be taken into account.

There is no way to find out if ARP is supported or not by looking at CDC Ethernet
Networking or NCM Functional Descriptors. If control that flag to be added to the driver,
it shall be based on matching VID/PID.

Regards,
Alexey
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to Wei Shuai
Quoted 15 lines · Wei Shuai

Hi Alexey,
Recently I met a Modem which cannot do ARP. But I found our
cdc_ncm_bind() function cannot handle this special case. Do you have any
plan to handle it?

static int cdc_ncm_bind(struct usbnet *dev, struct usb_interface *intf)

{
	...
	/*  cannot do ARP */
	dev->net->flags |= IFF_NOARP;
	...
}
Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Are you sure all CDC NCM devices will handle this? Maybe the buggy device need a device specific quirk instead?

Bjørn