Skip to content

Commit 044d1a6

Browse files
Dag Moxnesjfvogel
authored andcommitted
rds: ib: __flush_neigh_conn error messages in syslog during failover/failback
If RDS fails to find the device for an IP address when flushing the neighbor cache, it is likely be caused by the IP address being moved due to a failover/failback. Do not log an error in this case. Orabug: 30478312 Signed-off-by: Dag Moxnes <[email protected]> Reviewed-by: Ka-Cheong Poon <[email protected]> Signed-off-by: Somasundaram Krishnasamy <[email protected]> Orabug: 30820081 UEK5 => UEK6 (cherry picked from commit c0da6b7) cherry-pick-repo=UEK/production/linux-uek.git Signed-off-by: Gerd Rausch <[email protected]> Reviewed-by: Sharon Liu <[email protected]>
1 parent 9e0acd7 commit 044d1a6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

net/rds/ib.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,9 @@ static void __flush_neigh_conn(struct net *net,
914914
isv4 = ipv6_addr_v4mapped(faddr);
915915

916916
/* Use our local address to find the right interface to flush the
917-
* neighbor address.
917+
* neighbor address. If we are unable to find the interface, this is
918+
* likely because the IP-address moved due to failover/failback, so
919+
* don't log any issues in this case.
918920
*/
919921
if (isv4) {
920922
idx = __rds_find_ifindex_v4(net, laddr->s6_addr32[3]);
@@ -924,11 +926,8 @@ static void __flush_neigh_conn(struct net *net,
924926
addrlen = sizeof(*faddr);
925927
}
926928

927-
if (!idx) {
928-
pr_err_ratelimited("%s: cannot find %pI6c interface\n",
929-
__func__, laddr);
929+
if (!idx)
930930
return;
931-
}
932931

933932
buflen = nlmsg_total_size(sizeof(*ndm) +
934933
nla_total_size(addrlen));

0 commit comments

Comments
 (0)