net: Rename NETIF_F_ALL_CSUM to NETIF_F_CSUM_MASK
The name NETIF_F_ALL_CSUM is a misnomer. This does not correspond to the set of features for offloading all checksums. This is a mask of the checksum offload related features bits. It is incorrect to set both NETIF_F_HW_CSUM and NETIF_F_IP_CSUM or NETIF_F_IPV6 at the same time for features of a device. This patch: - Changes instances of NETIF_F_ALL_CSUM to NETIF_F_CSUM_MASK (where NETIF_F_ALL_CSUM is being used as a mask). - Changes bonding, sfc/efx, ipvlan, macvlan, vlan, and team drivers to use NEITF_F_HW_CSUM in features list instead of NETIF_F_ALL_CSUM. Signed-off-by: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
253aab0597
commit
a188222b6e
@@ -763,7 +763,7 @@ static netdev_features_t ibmveth_fix_features(struct net_device *dev,
|
||||
*/
|
||||
|
||||
if (!(features & NETIF_F_RXCSUM))
|
||||
features &= ~NETIF_F_ALL_CSUM;
|
||||
features &= ~NETIF_F_CSUM_MASK;
|
||||
|
||||
return features;
|
||||
}
|
||||
@@ -928,7 +928,8 @@ static int ibmveth_set_features(struct net_device *dev,
|
||||
rc1 = ibmveth_set_csum_offload(dev, rx_csum);
|
||||
if (rc1 && !adapter->rx_csum)
|
||||
dev->features =
|
||||
features & ~(NETIF_F_ALL_CSUM | NETIF_F_RXCSUM);
|
||||
features & ~(NETIF_F_CSUM_MASK |
|
||||
NETIF_F_RXCSUM);
|
||||
}
|
||||
|
||||
if (large_send != adapter->large_send) {
|
||||
|
Reference in New Issue
Block a user