Home
last modified time | relevance | path

Searched hist:f29eb2a96c56ebff6b4d9b530d5ccd61b9f538d7 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/
H A Dtun.cdiff f29eb2a96c56ebff6b4d9b530d5ccd61b9f538d7 Wed Nov 07 03:34:36 CST 2018 Paolo Abeni <pabeni@redhat.com> tun: compute the RFS hash only if needed.

The tun XDP sendmsg code path, unconditionally computes the symmetric
hash of each packet for RFS's sake, even when we could skip it. e.g.
when the device has a single queue.

This change adds the check already in-place for the skb sendmsg path
to avoid unneeded hashing.

The above gives small, but measurable, performance gain for VM xmit
path when zerocopy is not enabled.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>