staging: fsl-dpaa2/eth: MTU cleanup
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Mon, 9 Jul 2018 15:01:10 +0000 (10:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Jul 2018 10:32:35 +0000 (12:32 +0200)
Don't set the lower MTU limit explicitly, since we use
the default value anyway.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c

index 439b260a58bf59acd5e8d1b3e26f484f26163fe4..24e069c574b0226605224a864cd414178a001ca7 100644 (file)
@@ -2383,8 +2383,7 @@ static int netdev_init(struct net_device *net_dev)
                return err;
        }
 
-       /* Set MTU limits */
-       net_dev->min_mtu = 68;
+       /* Set MTU upper limit; lower limit is 68B (default value) */
        net_dev->max_mtu = DPAA2_ETH_MAX_MTU;
 
        /* Set actual number of queues in the net device */