Author: nbd Date: 2015-01-02 22:53:24 +0100 (Fri, 02 Jan 2015) New Revision: 43811
Modified: trunk/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c Log: ramips: disable ethernet checksum offloads for mt7621, they are broken Signed-off-by: Felix Fietkau <[email protected]> Modified: trunk/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c =================================================================== --- trunk/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c 2015-01-02 21:53:18 UTC (rev 43810) +++ trunk/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c 2015-01-02 21:53:24 UTC (rev 43811) @@ -192,6 +192,15 @@ NETIF_F_IPV6_CSUM; } +static void mt7621_init_data(struct fe_soc_data *data, + struct net_device *netdev) +{ + struct fe_priv *priv = netdev_priv(netdev); + + priv->flags = FE_FLAG_PADDING_64B; + netdev->hw_features = NETIF_F_HW_VLAN_CTAG_TX; +} + static void mt7621_set_mac(struct fe_priv *priv, unsigned char *mac) { unsigned long flags; @@ -228,7 +237,7 @@ static struct fe_soc_data mt7621_data = { .mac = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55 }, - .init_data = mt7620_init_data, + .init_data = mt7621_init_data, .reset_fe = mt7621_fe_reset, .set_mac = mt7621_set_mac, .fwd_config = mt7621_fwd_config, _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
