diff options
author | Paolo Abeni <pabeni@redhat.com> | 2018-04-20 13:18:16 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-20 11:51:28 -0400 |
commit | cf1a1e07fc8bb29947ad3c9568d73aee3f851431 (patch) | |
tree | 794121266cee66f3a36dc9a59c60c649fc45c395 /tools/testing/selftests/bpf/test_kmod.sh | |
parent | 496218656f9857d801512efdec1d609ebbe8a83b (diff) | |
download | lwn-cf1a1e07fc8bb29947ad3c9568d73aee3f851431.tar.gz lwn-cf1a1e07fc8bb29947ad3c9568d73aee3f851431.zip |
tun: do not compute the rxhash, if not needed
Currently, the tun driver, in absence of an eBPF steering program,
always compute the rxhash in its rx path, even when such value
is later unused due to additional checks (
This changeset moves the all the related checks just before the
__skb_get_hash_symmetric(), so that the latter is no more computed
when unneeded.
Also replace an unneeded RCU section with rcu_access_pointer().
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 'tools/testing/selftests/bpf/test_kmod.sh')
0 files changed, 0 insertions, 0 deletions