diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-01-02 21:53:24 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-02 21:53:24 +0000 |
commit | 1e66f2e231b9d4cd5d4fde98fb3e8a2995fd04df (patch) | |
tree | 9ef831e0e8b41dff2e1401d3d234b103394eee95 /target/linux/ramips | |
parent | 79b56eb3e45d1b019a8deef80b22e015eb65fb09 (diff) | |
download | master-187ad058-1e66f2e231b9d4cd5d4fde98fb3e8a2995fd04df.tar.gz master-187ad058-1e66f2e231b9d4cd5d4fde98fb3e8a2995fd04df.tar.bz2 master-187ad058-1e66f2e231b9d4cd5d4fde98fb3e8a2995fd04df.zip |
ramips: disable ethernet checksum offloads for mt7621, they are broken
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43811 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips')
-rw-r--r-- | target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c index ba1a170abc..60666e7886 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c @@ -192,6 +192,15 @@ static void mt7620_init_data(struct fe_soc_data *data, 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 mt7620_data = { 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, |