From 017d4f38a535efc240a17a158fc18b5bf1fcabc4 Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Wed, 23 Sep 2020 16:52:27 +0100 Subject: [PATCH] Revert "net: bcmgenet: Turn on offloads by default" This reverts commit ae895c49905cd99aca24d23361b72ed559b30f4f. See: https://github.com/raspberrypi/linux/issues/3850 Signed-off-by: Phil Elwell --- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c index d71f4cc26024b4..f308fe96f8a237 100644 --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c @@ -3962,11 +3962,9 @@ static int bcmgenet_probe(struct platform_device *pdev) priv->msg_enable = netif_msg_init(-1, GENET_MSG_DEFAULT); - /* Set default features */ - dev->features |= NETIF_F_SG | NETIF_F_HIGHDMA | NETIF_F_HW_CSUM | - NETIF_F_RXCSUM; - dev->hw_features |= dev->features; - dev->vlan_features |= dev->features; + /* Set hardware features */ + dev->hw_features |= NETIF_F_SG | NETIF_F_HIGHDMA | NETIF_F_HW_CSUM | + NETIF_F_RXCSUM; /* Request the WOL interrupt and advertise suspend if available */ priv->wol_irq_disabled = true;