Am Freitag, den 30.08.2019, 19:37 +0000 schrieb
[email protected]:
> This patch adds support for pushing a MAC address out to USB based
> ethernet controllers driven by cdc_ncm. With this change, ifconfig can
> now set the device's MAC address. For example, the Dell Universal Dock
> D6000 is driven by cdc_ncm. The D6000 can now have its MAC address set
> by ifconfig, as it can be done in Windows. This was tested with a D6000
> using ifconfig on an x86 based chromebook, where iproute2 is not
> available.
> +/* Provide method to push MAC address to the USB device's ethernet
> controller.
> + */
> +int cdc_ncm_set_mac_addr(struct net_device *net, void *p)
> +{
> + struct usbnet *dev = netdev_priv(net);
> +
> + /* Try to push the MAC address out to the device. Ignore any errors,
> + * to be compatible with prior versions of this source.
> + */
> + cdc_ncm_set_ethernet_address(dev, (struct sockaddr *)p);
You are throwing away error reports.
Regards
Oliver