[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170401.201202.1578661173027016048.davem@davemloft.net>
Date: Sat, 01 Apr 2017 20:12:02 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: pabeni@...hat.com
Cc: netdev@...r.kernel.org, edumazet@...gle.com
Subject: Re: [PATCH net-next] udp: use sk_protocol instead of pcflag to
detect udplite sockets
From: Paolo Abeni <pabeni@...hat.com>
Date: Fri, 31 Mar 2017 11:47:39 +0200
> In the udp_sock struct, the 'forward_deficit' and 'pcflag' fields
> share the same cacheline. While the first is dirtied by
> udp_recvmsg, the latter is read, possibly several times, by the
> bottom half processing to discriminate between udp and udplite
> sockets.
>
> With this patch, sk->sk_protocol is used to check is the socket is
> really an udplite one, avoiding some cache misses per
> packet and improving the performance under udp_flood with
> small packet up to 10%.
>
> Signed-off-by: Paolo Abeni <pabeni@...hat.com>
Applied, thanks.
Powered by blists - more mailing lists