angler-fishThe Vulnerability History Project

ipv4: speedup ip_idents_reserve()

      Under stress, ip_idents_reserve() is accessing a contended
cache line twice, with non optimal MESI transactions.

If we place timestamps in separate location, we reduce this
pressure by ~50% and allow atomic_add_return() to issue
a Request for Ownership.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
    
commit 355b590ca24a53f5e2f6999218b5321eaf730a7e
+9 -11
expand_less