net: wwan: iosm: set default mtu
authorM Chetan Kumar <m.chetan.kumar@linux.intel.com>
Thu, 1 Jul 2021 15:09:34 +0000 (20:39 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jul 2021 20:04:41 +0000 (13:04 -0700)
Set netdev default mtu size to 1500.

Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wwan/iosm/iosm_ipc_wwan.c

index e0c19c5..b2357ad 100644 (file)
@@ -162,6 +162,7 @@ static void ipc_wwan_setup(struct net_device *iosm_dev)
        iosm_dev->priv_flags |= IFF_NO_QUEUE;
 
        iosm_dev->type = ARPHRD_NONE;
+       iosm_dev->mtu = ETH_DATA_LEN;
        iosm_dev->min_mtu = ETH_MIN_MTU;
        iosm_dev->max_mtu = ETH_MAX_MTU;