Received: by 10.223.176.5 with SMTP id f5csp3349989wra; Mon, 29 Jan 2018 12:04:19 -0800 (PST) X-Google-Smtp-Source: AH8x2249ZtnITpicuDXm4OdVWGINmnKv/6mJ5UIclYuqcHFdGvepj2VQa9W0/ua2by8SUHGftf+6 X-Received: by 10.101.100.132 with SMTP id e4mr5131492pgv.398.1517256259403; Mon, 29 Jan 2018 12:04:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517256259; cv=none; d=google.com; s=arc-20160816; b=d+Rjb6nl824YBk/fejdHG5ui3xk8K00mNojhHPuxC5qkMUxvxH1tA9vIslpvvNZhqT Zu6RWdndfj7SRYUqI5CbGyvCz70bwufJ++iDvEaVoCnsLcIBSLMx0mEzaAVqOeTEp0tH PpdLIoYhtT69/FyeGGgPW7tmoYE2he6BPdE0mJokKoXyHdik2vxc/huFvdX1Xjt5v+J9 5EO1Js5Ehi2HqXNWxWwKywQsTnan/imm3pGRZdZF4UoyU2fm8pv1VrilcneUIbVIrCaV 5kuC1B+uZ0ee5x35F52JlMZqG+5eaTe2hs0eziWvsl/Bwl6uWjDyeV8cIb1E+HosbyA3 sUbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=PBs3e3tTrLlUvsEntkrFxY0Bk4fcY+UvY7QY81Ni6U8=; b=sHvBvjr0CJSbfUCYqHHi2DbRSVFv6CPf78Kq2HvcI9y6MzHRFd4ILf1x59jLRZw4oS Zbm0wcXrtTpA0W0CUTEsJRuDesSsJ3XFStKoLHjoiVd9hDbgEQvsOfnf8I7cHJ29eIOM 5pTUoBrKWtp0dG3ZuReGMlEnORMclWOwXzBukiB6AzEsA2JWOlmfZ1ZFg9AMbvUtah5B Vx1K/peikS+fzBl4Pokv+FfCvABbnVuDZDMl3p67dGmSYXAUH58Bfuf8iGhIpPMca9Om nF8eO1P7Z53hgFHJxVnm8Z/MClGPYbPIkNKKyCubT1YV2v4JHotlZrS1N2/Z6FMRxnk9 Rl+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q11-v6si10298052plk.225.2018.01.29.12.04.04; Mon, 29 Jan 2018 12:04:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752081AbeA2UDE (ORCPT + 99 others); Mon, 29 Jan 2018 15:03:04 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:40248 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751604AbeA2UDC (ORCPT ); Mon, 29 Jan 2018 15:03:02 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 982252FA9; Mon, 29 Jan 2018 13:06:31 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yuval Mintz , Ido Schimmel , Jiri Pirko , "David S. Miller" Subject: [PATCH 4.9 53/66] mlxsw: spectrum_router: Dont log an error on missing neighbor Date: Mon, 29 Jan 2018 13:57:17 +0100 Message-Id: <20180129123842.686341375@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180129123839.842860149@linuxfoundation.org> References: <20180129123839.842860149@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yuval Mintz [ Upstream commit 1ecdaea02ca6bfacf2ecda500dc1af51e9780c42 ] Driver periodically samples all neighbors configured in device in order to update the kernel regarding their state. When finding an entry configured in HW that doesn't show in neigh_lookup() driver logs an error message. This introduces a race when removing multiple neighbors - it's possible that a given entry would still be configured in HW as its removal is still being processed but is already removed from the kernel's neighbor tables. Simply remove the error message and gracefully accept such events. Fixes: c723c735fa6b ("mlxsw: spectrum_router: Periodically update the kernel's neigh table") Fixes: 60f040ca11b9 ("mlxsw: spectrum_router: Periodically dump active IPv6 neighbours") Signed-off-by: Yuval Mintz Reviewed-by: Ido Schimmel Signed-off-by: Jiri Pirko Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c @@ -765,11 +765,8 @@ static void mlxsw_sp_router_neigh_ent_ip dipn = htonl(dip); dev = mlxsw_sp->rifs[rif]->dev; n = neigh_lookup(&arp_tbl, &dipn, dev); - if (!n) { - netdev_err(dev, "Failed to find matching neighbour for IP=%pI4h\n", - &dip); + if (!n) return; - } netdev_dbg(dev, "Updating neighbour with IP=%pI4h\n", &dip); neigh_event_send(n, NULL);