net: adopt try_cmpxchg() in napi_schedule_prep() and napi_complete_done()
authorEric Dumazet <edumazet@google.com>
Tue, 15 Nov 2022 09:10:59 +0000 (09:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2022 12:42:01 +0000 (12:42 +0000)
commit1462160c7455cfc495693e47d0eabb371ec4f7ff
tree7eee3e3ac9d748fa4e109dddd1ade32be699ff98
parent6af645a5b2da7898b2c37e8f39f1bc572c4ab85a
net: adopt try_cmpxchg() in napi_schedule_prep() and napi_complete_done()

This makes the code slightly more efficient.

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