mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
[NET]: Treat CHECKSUM_PARTIAL as CHECKSUM_UNNECESSARY
When a transmitted packet is looped back directly, CHECKSUM_PARTIAL maps to the semantics of CHECKSUM_UNNECESSARY. Therefore we should treat it as such in the stack. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
628592ccdb
commit
604763722c
13 changed files with 29 additions and 28 deletions
|
@ -140,8 +140,7 @@ int sctp_rcv(struct sk_buff *skb)
|
|||
__skb_pull(skb, skb_transport_offset(skb));
|
||||
if (skb->len < sizeof(struct sctphdr))
|
||||
goto discard_it;
|
||||
if ((skb->ip_summed != CHECKSUM_UNNECESSARY) &&
|
||||
(sctp_rcv_checksum(skb) < 0))
|
||||
if (!skb_csum_unnecessary(skb) && sctp_rcv_checksum(skb) < 0)
|
||||
goto discard_it;
|
||||
|
||||
skb_pull(skb, sizeof(struct sctphdr));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue