diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-04-17 18:53:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-04-19 15:04:30 +0300 |
commit | c24831a13ba2e472f874483525084da2f2feb890 (patch) | |
tree | f408b8c1cbfa9a7b65418b95b8f0c93287031a93 /net/core | |
parent | eb6fba7555a812c07aa984fb9e8e9b151a65ca16 (diff) | |
download | linux-c24831a13ba2e472f874483525084da2f2feb890.tar.xz |
net: skbuff: hide csum_not_inet when CONFIG_IP_SCTP not set
SCTP is not universally deployed, allow hiding its bit
from the skb.
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 8aea68275172..3fc4dba71f9d 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -3315,8 +3315,7 @@ int skb_crc32c_csum_help(struct sk_buff *skb) skb->len - start, ~(__u32)0, crc32c_csum_stub)); *(__le32 *)(skb->data + offset) = crc32c_csum; - skb->ip_summed = CHECKSUM_NONE; - skb->csum_not_inet = 0; + skb_reset_csum_not_inet(skb); out: return ret; } |