Skip to content

Commit

Permalink
stmmac: only remove RXCSUM feature if no rx coe is available
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Giuseppe CAVALLARO authored and David S. Miller committed Sep 2, 2014
1 parent d2afb5b commit cc25f0c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cc25f0c

Please sign in to comment.