]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ethernet: fix min/max MTU typos
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Mon, 24 Oct 2016 12:42:26 +0000 (14:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Oct 2016 20:18:50 +0000 (16:18 -0400)
Fixes: d894be57ca92('ethernet: use net core MTU range checking in more drivers')
CC: Jarod Wilson <jarod@redhat.com>
CC: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Acked-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/sb1250-mac.c
drivers/net/ethernet/ibm/ibmveth.c

index cb312e4c89f46ef8e29fda76d107093b72ae9d3a..435a2e4739d16d721918b55cc54c855fd3f50a56 100644 (file)
@@ -2219,7 +2219,7 @@ static int sbmac_init(struct platform_device *pldev, long long base)
 
        dev->netdev_ops = &sbmac_netdev_ops;
        dev->watchdog_timeo = TX_TIMEOUT;
-       dev->max_mtu = 0;
+       dev->min_mtu = 0;
        dev->max_mtu = ENET_PACKET_SIZE;
 
        netif_napi_add(dev, &sc->napi, sbmac_poll, 16);
index 29c05d0d79a9897894b8c9952411e48bbdfc40e3..4a81c892fc3142af7e271304a5975c64adff2b88 100644 (file)
@@ -1549,7 +1549,7 @@ static int ibmveth_probe(struct vio_dev *dev, const struct vio_device_id *id)
        }
 
        netdev->min_mtu = IBMVETH_MIN_MTU;
-       netdev->min_mtu = ETH_MAX_MTU;
+       netdev->max_mtu = ETH_MAX_MTU;
 
        memcpy(netdev->dev_addr, mac_addr_p, ETH_ALEN);