ipv6: fib6_new_sernum() optimization
authorEric Dumazet <edumazet@google.com>
Tue, 15 Nov 2022 09:10:57 +0000 (09:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2022 12:42:00 +0000 (12:42 +0000)
commit30189806fbb945c4cb753878aab0aa5af07bc921
tree4e86790355c780ba3915c9589640380192aad18b
parent57fc05e8e82d015d5d58572e146ac8579a66efea
ipv6: fib6_new_sernum() optimization

Adopt atomic_try_cmpxchg() which is slightly more efficient.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c