diff options
author | Wei Wang <weiwan@google.com> | 2019-06-21 03:36:40 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-23 23:24:17 +0300 |
commit | 67f415dd29063a5906c560051c00e42dcf01a4dd (patch) | |
tree | a5b60f021fa257770d786ffec2e5c656c97d6c2e /net/l3mdev/Kconfig | |
parent | d64a1f574a2957b4bcb06452d36cc1c6bf16e9fc (diff) | |
download | linux-67f415dd29063a5906c560051c00e42dcf01a4dd.tar.xz |
ipv6: convert rx data path to not take refcnt on dst
ip6_route_input() is the key function to do the route lookup in the
rx data path. All the callers to this function are already holding rcu
lock. So it is fairly easy to convert it to not take refcnt on the dst:
We pass in flag RT6_LOOKUP_F_DST_NOREF and do skb_dst_set_noref().
This saves a few atomic inc or dec operations and should boost
performance overall.
This also makes the logic more aligned with v4.
Signed-off-by: Wei Wang <weiwan@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Acked-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l3mdev/Kconfig')
0 files changed, 0 insertions, 0 deletions