diff options
author | Giuseppe CAVALLARO <peppe.cavallaro@st.com> | 2014-09-01 09:17:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-01 21:51:29 -0700 |
commit | cc25f0cbe4409d6a573b1f3bf7020d5b04076ee9 (patch) | |
tree | 5c4cb28b2c9559e255d7b0c2b26720e8774fc95d /drivers/net/ethernet/stmicro | |
parent | d2afb5bdffde3da175b9ced66f70a4b453103d71 (diff) | |
download | op-kernel-dev-cc25f0cbe4409d6a573b1f3bf7020d5b04076ee9.zip op-kernel-dev-cc25f0cbe4409d6a573b1f3bf7020d5b04076ee9.tar.gz |
stmmac: only remove RXCSUM feature if no rx coe is available
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>
Diffstat (limited to 'drivers/net/ethernet/stmicro')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 0ed8ac8..6e6ee22 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -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; |