Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b852b720 authored by Sebastian Pöhn's avatar Sebastian Pöhn Committed by David S. Miller
Browse files

gianfar: fix bug caused by 87c288c6



commit 87c288c6 "gianfar: do vlan cleanup" has two issues:
# permutation of rx and tx flags
# enabling vlan tag insertion by default (this leads to unusable connections on some configurations)

If VLAN insertion is requested (via ethtool) it will be set at an other point ...

Signed-off-by: default avatarSebastian Poehn <sebastian.poehn@belden.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b49179c0
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -388,12 +388,8 @@ static void gfar_init_mac(struct net_device *ndev)
	if (priv->hwts_rx_en)
		rctrl |= RCTRL_PRSDEP_INIT | RCTRL_TS_ENABLE;

	/* keep vlan related bits if it's enabled */
	if (ndev->features & NETIF_F_HW_VLAN_TX)
		rctrl |= RCTRL_VLEX | RCTRL_PRSDEP_INIT;

	if (ndev->features & NETIF_F_HW_VLAN_RX)
		tctrl |= TCTRL_VLINS;
		rctrl |= RCTRL_VLEX | RCTRL_PRSDEP_INIT;

	/* Init rctrl based on our settings */
	gfar_write(&regs->rctrl, rctrl);