net: Disable NETIF_F_TSO_ECN when TSO is disabled

NETIF_F_TSO_ECN has no effect when TSO is disabled; this just means
that feature state will be accurately reported to user-space.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Ben Hutchings and committed by David S. Miller 31d8b9e0 ea2d3688

+4
+4
net/core/dev.c
··· 5208 features &= ~NETIF_F_ALL_TSO; 5209 } 5210 5211 /* Software GSO depends on SG. */ 5212 if ((features & NETIF_F_GSO) && !(features & NETIF_F_SG)) { 5213 netdev_info(dev, "Dropping NETIF_F_GSO since no SG feature.\n");
··· 5208 features &= ~NETIF_F_ALL_TSO; 5209 } 5210 5211 + /* TSO ECN requires that TSO is present as well. */ 5212 + if ((features & NETIF_F_ALL_TSO) == NETIF_F_TSO_ECN) 5213 + features &= ~NETIF_F_TSO_ECN; 5214 + 5215 /* Software GSO depends on SG. */ 5216 if ((features & NETIF_F_GSO) && !(features & NETIF_F_SG)) { 5217 netdev_info(dev, "Dropping NETIF_F_GSO since no SG feature.\n");