diff options
author | Paolo Abeni | 2017-03-31 11:47:39 +0200 |
---|---|---|
committer | David S. Miller | 2017-04-02 05:11:36 +0200 |
commit | 3d8417d79e0da6a47ff29932ef80486be78af56e (patch) | |
tree | 8754e51badc325222569b533979bbf5e36479257 /include/linux/lz4.h | |
parent | net: dsa: fix build error with devlink build as module (diff) | |
download | kernel-qcow2-linux-3d8417d79e0da6a47ff29932ef80486be78af56e.tar.gz kernel-qcow2-linux-3d8417d79e0da6a47ff29932ef80486be78af56e.tar.xz kernel-qcow2-linux-3d8417d79e0da6a47ff29932ef80486be78af56e.zip |
udp: use sk_protocol instead of pcflag to detect udplite sockets
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@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/lz4.h')
0 files changed, 0 insertions, 0 deletions