diff options
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 47d3d78d5416..d162ba8d622d 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -749,7 +749,8 @@ EXPORT_SYMBOL(dev_get_by_index); | |||
749 | * @ha: hardware address | 749 | * @ha: hardware address |
750 | * | 750 | * |
751 | * Search for an interface by MAC address. Returns NULL if the device | 751 | * Search for an interface by MAC address. Returns NULL if the device |
752 | * is not found or a pointer to the device. The caller must hold RCU | 752 | * is not found or a pointer to the device. |
753 | * The caller must hold RCU or RTNL. | ||
753 | * The returned device has not had its ref count increased | 754 | * The returned device has not had its ref count increased |
754 | * and the caller must therefore be careful about locking | 755 | * and the caller must therefore be careful about locking |
755 | * | 756 | * |
@@ -2046,7 +2047,7 @@ static bool can_checksum_protocol(unsigned long features, __be16 protocol) | |||
2046 | 2047 | ||
2047 | static int harmonize_features(struct sk_buff *skb, __be16 protocol, int features) | 2048 | static int harmonize_features(struct sk_buff *skb, __be16 protocol, int features) |
2048 | { | 2049 | { |
2049 | if (!can_checksum_protocol(protocol, features)) { | 2050 | if (!can_checksum_protocol(features, protocol)) { |
2050 | features &= ~NETIF_F_ALL_CSUM; | 2051 | features &= ~NETIF_F_ALL_CSUM; |
2051 | features &= ~NETIF_F_SG; | 2052 | features &= ~NETIF_F_SG; |
2052 | } else if (illegal_highdma(skb->dev, skb)) { | 2053 | } else if (illegal_highdma(skb->dev, skb)) { |