|
@@ -2134,7 +2134,8 @@ static bool can_checksum_protocol(netdev_features_t features, __be16 protocol)
|
|
static netdev_features_t harmonize_features(struct sk_buff *skb,
|
|
static netdev_features_t harmonize_features(struct sk_buff *skb,
|
|
__be16 protocol, netdev_features_t features)
|
|
__be16 protocol, netdev_features_t features)
|
|
{
|
|
{
|
|
- if (!can_checksum_protocol(features, protocol)) {
|
|
|
|
|
|
+ if (skb->ip_summed != CHECKSUM_NONE &&
|
|
|
|
+ !can_checksum_protocol(features, protocol)) {
|
|
features &= ~NETIF_F_ALL_CSUM;
|
|
features &= ~NETIF_F_ALL_CSUM;
|
|
features &= ~NETIF_F_SG;
|
|
features &= ~NETIF_F_SG;
|
|
} else if (illegal_highdma(skb->dev, skb)) {
|
|
} else if (illegal_highdma(skb->dev, skb)) {
|