net: net_{enable|disable}_timestamp() optimizations
authorEric Dumazet <edumazet@google.com>
Tue, 15 Nov 2022 09:10:58 +0000 (09:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2022 12:42:00 +0000 (12:42 +0000)
commit6af645a5b2da7898b2c37e8f39f1bc572c4ab85a
treef7019d8aa2d53eff791012bee80bcb5b7e27b436
parent30189806fbb945c4cb753878aab0aa5af07bc921
net: net_{enable|disable}_timestamp() optimizations

Adopting atomic_try_cmpxchg() makes the code cleaner.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c