stmmac: only remove RXCSUM feature if no rx coe is available
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Mon, 1 Sep 2014 07:17:53 +0000 (09:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Sep 2014 04:51:29 +0000 (21:51 -0700)
In case of the HW is not able to do the receive checksum offloading
the only feature to remove is NETIF_F_RXCSUM.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

index 0ed8ac81238b4fa26ecb101bd86870076655d33f..6e6ee226de04f60dc8511334db8ca48310fd5cff 100644 (file)
@@ -2333,8 +2333,6 @@ static netdev_features_t stmmac_fix_features(struct net_device *dev,
 
        if (priv->plat->rx_coe == STMMAC_RX_COE_NONE)
                features &= ~NETIF_F_RXCSUM;
-       else if (priv->plat->rx_coe == STMMAC_RX_COE_TYPE1)
-               features &= ~NETIF_F_IPV6_CSUM;
 
        if (!priv->plat->tx_coe)
                features &= ~NETIF_F_ALL_CSUM;