From: Tom Herbert <tom@herbertland.com>
To: <netdev@vger.kernel.org>
Subject: [PATCH net-next 2/2] ppp: call skb_checksum_complete_unset in ppp_receive_frame
Date: Mon, 20 Apr 2015 14:10:05 -0700 [thread overview]
Message-ID: <1429564205-1661247-3-git-send-email-tom@herbertland.com> (raw)
In-Reply-To: <1429564205-1661247-1-git-send-email-tom@herbertland.com>
Call checksum_complete_unset in PPP receive to discard checksum-complete
value. PPP does not pull checksum for headers and also modifies packet
as in VJ compression.
Signed-off-by: Tom Herbert <tom@herbertland.com>
---
drivers/net/ppp/ppp_generic.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c
index af034db..9d15566 100644
--- a/drivers/net/ppp/ppp_generic.c
+++ b/drivers/net/ppp/ppp_generic.c
@@ -1716,6 +1716,7 @@ ppp_receive_frame(struct ppp *ppp, struct sk_buff *skb, struct channel *pch)
{
/* note: a 0-length skb is used as an error indication */
if (skb->len > 0) {
+ skb_checksum_complete_unset(skb);
#ifdef CONFIG_PPP_MULTILINK
/* XXX do channel-level decompression here */
if (PPP_PROTO(skb) == PPP_MP)
--
1.8.1
next prev parent reply other threads:[~2015-04-20 21:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-20 21:10 [PATCH net-next 0/2] net: Fix "hw csum failure" message flood for ppp tunnel Tom Herbert
2015-04-20 21:10 ` [PATCH net-next 1/2] net: add skb_checksum_complete_unset Tom Herbert
2015-04-20 21:10 ` Tom Herbert [this message]
2015-04-21 2:01 ` [PATCH net-next 0/2] net: Fix "hw csum failure" message flood for ppp tunnel David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1429564205-1661247-3-git-send-email-tom@herbertland.com \
--to=tom@herbertland.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).