diff options
author | Paolo Abeni <pabeni@redhat.com> | 2018-11-07 10:34:36 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-07 22:22:16 -0800 |
commit | f29eb2a96c56ebff6b4d9b530d5ccd61b9f538d7 (patch) | |
tree | 1393cffb15545baf0cb514096d274b4aa33c5c50 /net/8021q/vlan_dev.c | |
parent | 2e7ad56aa54778de863998579fc6b5ff52838571 (diff) | |
download | linux-stable-f29eb2a96c56ebff6b4d9b530d5ccd61b9f538d7.tar.gz linux-stable-f29eb2a96c56ebff6b4d9b530d5ccd61b9f538d7.tar.bz2 linux-stable-f29eb2a96c56ebff6b4d9b530d5ccd61b9f538d7.zip |
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>
Diffstat (limited to 'net/8021q/vlan_dev.c')
0 files changed, 0 insertions, 0 deletions