]> git.baikalelectronics.ru Git - kernel.git/commitdiff
qmi_wwan: add MTU default to qmap network interface
authorDaniele Palmas <dnlplm@gmail.com>
Fri, 4 Jan 2019 12:26:10 +0000 (13:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Jan 2019 21:35:42 +0000 (13:35 -0800)
This patch adds MTU default value to qmap network interface in
order to avoid "RTNETLINK answers: No buffer space available"
error when setting an ipv6 address.

Signed-off-by: Daniele Palmas <dnlplm@gmail.com>
Acked-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/qmi_wwan.c

index 774e1ff01c9a9e3e3297360cc46d199ee9c90f40..735ad838e2ba86ab689c549d4a89e5ca54fecd95 100644 (file)
@@ -123,6 +123,7 @@ static void qmimux_setup(struct net_device *dev)
        dev->addr_len        = 0;
        dev->flags           = IFF_POINTOPOINT | IFF_NOARP | IFF_MULTICAST;
        dev->netdev_ops      = &qmimux_netdev_ops;
+       dev->mtu             = 1500;
        dev->needs_free_netdev = true;
 }