neighbour: guarantee the localhost connections be established successfully even the...
authorZheng Li <James.Z.Li@Dell.com>
Tue, 16 Apr 2024 09:53:43 +0000 (17:53 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 18 Apr 2024 10:01:03 +0000 (12:01 +0200)
commiteabf425bc6ad32fa49cfb35c7bc59db07dfdd36e
tree2073a24b0ea57c70dfe2632938a70fca27a91743
parentba3de6d8035ef1efdd27e9a5047412f7cf3fb3a6
neighbour: guarantee the localhost connections be established successfully even the ARP table is full

Inter-process communication on localhost should be established successfully
even the ARP table is full, many processes on server machine use the
localhost to communicate such as command-line interface (CLI),
servers hope all CLI commands can be executed successfully even the arp
table is full. Right now CLI commands got timeout when the arp table is
full. Set the parameter of exempt_from_gc to be true for LOOPBACK net
device to keep localhost neigh in arp table, not removed by gc.

the steps of reproduced:
server with "gc_thresh3 = 1024" setting, ping server from more than 1024
same netmask Lan IPv4 addresses, run "ssh localhost" on console interface,
then the command will get timeout.

Signed-off-by: Zheng Li <James.Z.Li@Dell.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20240416095343.540-1-lizheng043@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/neighbour.c