hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/include/net/arp.h
....@@ -57,8 +57,8 @@
5757 unsigned long now = jiffies;
5858
5959 /* avoid dirtying neighbour */
60
- if (n->confirmed != now)
61
- n->confirmed = now;
60
+ if (READ_ONCE(n->confirmed) != now)
61
+ WRITE_ONCE(n->confirmed, now);
6262 }
6363 rcu_read_unlock_bh();
6464 }
....@@ -71,6 +71,7 @@
7171 const unsigned char *src_hw, const unsigned char *th);
7272 int arp_mc_map(__be32 addr, u8 *haddr, struct net_device *dev, int dir);
7373 void arp_ifdown(struct net_device *dev);
74
+int arp_invalidate(struct net_device *dev, __be32 ip, bool force);
7475
7576 struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip,
7677 struct net_device *dev, __be32 src_ip,