From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11D19C31E5B for ; Tue, 18 Jun 2019 15:13:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DFED9213F2 for ; Tue, 18 Jun 2019 15:13:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="T7JCHqKa" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729571AbfFRPNg (ORCPT ); Tue, 18 Jun 2019 11:13:36 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:60779 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729042AbfFRPNg (ORCPT ); Tue, 18 Jun 2019 11:13:36 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 6920121FE5; Tue, 18 Jun 2019 11:13:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 18 Jun 2019 11:13:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=8SIgl/mfVbuupzqe7seDQjko3F5oeWmAmC09py9L3g8=; b=T7JCHqKa 8knAxWlcBgD/PTUTQYWqETNwmHp+J5tQBlui5fHo9AjyqpwNFtXBduH5yWo1kqJh YrH4mpQi2mw/sMOgH1xvsVIdBNpNGmTl6Hor/7CtYZnL/l9kz0+9JhIsQnZE2d1c a8wkaXKBXXHhc9ZHSpIOtrL9IN29VciBiHDufXhZmux3f5yU3gZqou0/KLZqCFNT t1hlT9egc5Ycozf9DA81X805hZBdF7/W/VSLVBZu3W4ktc3aIPOPgvXN0GcmFEB3 ysRqnTVo8ILNnkYOmem7JgoxRA2wmSDcyeQgNKQ9LDZwn+Fn6ykKT/vuHWKlz2FU 68fumZORZ+NamA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrtddtgdehhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpefkughoucfutghhihhmmhgvlhcuoehiughoshgthhesihguohhs tghhrdhorhhgqeenucfkphepudelfedrgeejrdduieehrddvhedunecurfgrrhgrmhepmh grihhlfhhrohhmpehiughoshgthhesihguohhstghhrdhorhhgnecuvehluhhsthgvrhfu ihiivgepvd X-ME-Proxy: Received: from splinter.mtl.com (unknown [193.47.165.251]) by mail.messagingengine.com (Postfix) with ESMTPA id D83BF380083; Tue, 18 Jun 2019 11:13:33 -0400 (EDT) From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, jiri@mellanox.com, dsahern@gmail.com, alexpe@mellanox.com, mlxsw@mellanox.com, Ido Schimmel Subject: [PATCH net-next v2 05/16] netdevsim: Ignore IPv6 multipath notifications Date: Tue, 18 Jun 2019 18:12:47 +0300 Message-Id: <20190618151258.23023-6-idosch@idosch.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190618151258.23023-1-idosch@idosch.org> References: <20190618151258.23023-1-idosch@idosch.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Ido Schimmel In a similar fashion to previous patch, have netdevsim ignore IPv6 multipath notifications for now. Signed-off-by: Ido Schimmel Acked-by: Jiri Pirko --- drivers/net/netdevsim/fib.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/netdevsim/fib.c b/drivers/net/netdevsim/fib.c index 8c57ba747772..83ba5113210d 100644 --- a/drivers/net/netdevsim/fib.c +++ b/drivers/net/netdevsim/fib.c @@ -190,6 +190,13 @@ static int nsim_fib_event_nb(struct notifier_block *nb, unsigned long event, case FIB_EVENT_ENTRY_ADD: /* fall through */ case FIB_EVENT_ENTRY_DEL: + if (info->family == AF_INET6) { + struct fib6_entry_notifier_info *fen6_info = ptr; + + if (fen6_info->multipath_rt) + return NOTIFY_DONE; + } + err = nsim_fib_event(data, info, event == FIB_EVENT_ENTRY_ADD); break; -- 2.20.1