]> git.baikalelectronics.ru Git - kernel.git/commit
udp: prefetch rmem_alloc in udp_queue_rcv_skb()
authorPaolo Abeni <pabeni@redhat.com>
Wed, 21 Jun 2017 08:24:40 +0000 (10:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Jun 2017 15:38:11 +0000 (11:38 -0400)
commitdd7a1e226782574492b1c35edf954a0d35fc992a
tree0bd383473708ab4a183c3a138b6cee363ae4d569
parentdb95a471fde75d922e37d3f59fb5fee2e136c986
udp: prefetch rmem_alloc in udp_queue_rcv_skb()

On UDP packets processing, if the BH is the bottle-neck, it
always sees a cache miss while updating rmem_alloc; try to
avoid it prefetching the value as soon as we have the socket
available.

Performances under flood with multiple NIC rx queues used are
unaffected, but when a single NIC rx queue is in use, this
gives ~10% performance improvement.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c