From: Hannes Frederic Sowa <hannes@stressinduktion.org>
To: Paolo Abeni <pabeni@redhat.com>, Michael Ellerman <mpe@ellerman.id.au>
Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org
Subject: Re: DNS (?) not working on G5 (64-bit powerpc) (was [net-next, v3, 3/3] udp: try to avoid 2 cache miss on dequeue)
Date: Thu, 22 Jun 2017 23:18:17 +0200 [thread overview]
Message-ID: <1498166297.111795.1018373424.5E414246@webmail.messagingengine.com> (raw)
In-Reply-To: <1498165026.2503.21.camel@redhat.com>
On Thu, Jun 22, 2017, at 22:57, Paolo Abeni wrote:
>=20
> Can you please check if the following patch fixes the issue? Only
> compiled tested here.
>=20
> Thanks!!!
> ---
> diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
> index 067a607..80d89fe 100644
> --- a/net/ipv4/udp.c
> +++ b/net/ipv4/udp.c
> @@ -1446,16 +1446,19 @@ static struct sk_buff
> *__first_packet_length(struct sock *sk,
> =C2=A0{
> =C2=A0 struct sk_buff *skb;
> =C2=A0
> - while ((skb =3D skb_peek(rcvq)) !=3D NULL &&
> - =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0udp_lib_checksum_comple=
te(skb)) {
> - __UDP_INC_STATS(sock_net(sk), UDP_MIB_CSUMERRORS,
> - IS_UDPLITE(sk));
> - __UDP_INC_STATS(sock_net(sk), UDP_MIB_INERRORS,
> - IS_UDPLITE(sk));
> - atomic_inc(&sk->sk_drops);
> - __skb_unlink(skb, rcvq);
> - *total +=3D skb->truesize;
> - kfree_skb(skb);
> + while ((skb =3D skb_peek(rcvq)) !=3D NULL) {
> + if (udp_lib_checksum_complete(skb)) {
> + __UDP_INC_STATS(sock_net(sk), UDP_MIB_CSUMERRORS,
> + IS_UDPLITE(sk));
> + __UDP_INC_STATS(sock_net(sk), UDP_MIB_INERRORS,
> + IS_UDPLITE(sk));
> + atomic_inc(&sk->sk_drops);
> + __skb_unlink(skb, rcvq);
> + *total +=3D skb->truesize;
> + kfree_skb(skb);
> + } else {
> + udp_set_dev_scratch(skb);
It needs a "break;" here.
> + }
> =C2=A0 }
> =C2=A0 return skb;
> =C2=A0}
Bye,
Hannes
next prev parent reply other threads:[~2017-06-22 21:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <07dec63bc32dc574202e8e981292f0bdb2c144b0.1497026892.git.pabeni@redhat.com>
2017-06-22 13:06 ` DNS (?) not working on G5 (64-bit powerpc) (was [net-next, v3, 3/3] udp: try to avoid 2 cache miss on dequeue) Michael Ellerman
2017-06-22 16:43 ` DNS (?) not working on G5 (64-bit powerpc) (was [net-next,v3,3/3] " Paolo Abeni
2017-06-22 20:27 ` Paolo Abeni
2017-06-22 20:28 ` Paolo Abeni
2017-06-22 20:57 ` Paolo Abeni
2017-06-22 21:18 ` Hannes Frederic Sowa [this message]
2017-06-23 6:59 ` DNS (?) not working on G5 (64-bit powerpc) (was [net-next, v3, 3/3] " Michael Ellerman
2017-06-23 11:59 ` DNS (?) not working on G5 (64-bit powerpc) (was [net-next,v3,3/3] " Paolo Abeni
2017-06-26 3:15 ` DNS (?) not working on G5 (64-bit powerpc) (was [net-next, v3, 3/3] " Michael Ellerman
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=1498166297.111795.1018373424.5E414246@webmail.messagingengine.com \
--to=hannes@stressinduktion.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/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).