arp: checks for null in add neighbor 45/43045/12
authorAnna Neiman <[email protected]>
Tue, 27 May 2025 12:28:53 +0000 (15:28 +0300)
committerBenoit Ganne <[email protected]>
Mon, 16 Jun 2025 08:04:37 +0000 (08:04 +0000)
commit0d075407f335d48f790d6e2d70819047c1c920ca
tree7d4ee3c74e749f86aebfd601a419ad1785656715
parent40e1ff601501649d64789d80b2a1c7652b325249
arp: checks for null in add neighbor

Type: fix

Details:

I have the situation that ip_neighbor_learn  is called for an already deleted interface.
The reproduction sequence is following
1.  arp_input -> arp_reply  on some worker
2.  call ip_neighbor_learn_dp , so request to perform  ip_neighbor_learn on the vpp_main thread
3.  the vpp_main thread is very busy - at the same moment we remove most of l2 interfaces and vrfs under barrier sync, including the TX interface of arp_reply
4.  call ip_neighbor_learn in the  main thread , when the appropriate interface is already deleted

Change-Id: I69b167ba919d57f19d6b941260243bca889c31c1
Signed-off-by: Anna Neiman <[email protected]>
src/vnet/ip-neighbor/ip_neighbor.c