Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323096
b: refs/heads/master
c: c0d680e
h: refs/heads/master
v: v3
  • Loading branch information
Ed Cashin authored and David S. Miller committed Sep 21, 2012
1 parent 589d505 commit 2f858ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8babe8cc6570ed896b7b596337eb8fe730c3ff45
refs/heads/master: c0d680e577ff171e7b37dbdb1b1bf5451e851f04
3 changes: 2 additions & 1 deletion trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
__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_SG;
} else if (illegal_highdma(skb->dev, skb)) {
Expand Down

0 comments on commit 2f858ac

Please sign in to comment.