{"id":814278,"url":"http://patchwork.ozlabs.org/api/patches/814278/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/patch/20170915133107.1258-1-jiri@resnulli.us/","project":{"id":7,"url":"http://patchwork.ozlabs.org/api/projects/7/?format=json","name":"Linux network development","link_name":"netdev","list_id":"netdev.vger.kernel.org","list_email":"netdev@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170915133107.1258-1-jiri@resnulli.us>","list_archive_url":null,"date":"2017-09-15T13:31:07","name":"[net] mlxsw: spectrum_router: Only handle IPv4 and IPv6 events","commit_ref":null,"pull_url":null,"state":"accepted","archived":true,"hash":"ad510682c0e29ef77d1b71342e4217557573eee9","submitter":{"id":15321,"url":"http://patchwork.ozlabs.org/api/people/15321/?format=json","name":"Jiri Pirko","email":"jiri@resnulli.us"},"delegate":{"id":34,"url":"http://patchwork.ozlabs.org/api/users/34/?format=json","username":"davem","first_name":"David","last_name":"Miller","email":"davem@davemloft.net"},"mbox":"http://patchwork.ozlabs.org/project/netdev/patch/20170915133107.1258-1-jiri@resnulli.us/mbox/","series":[{"id":3311,"url":"http://patchwork.ozlabs.org/api/series/3311/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/list/?series=3311","date":"2017-09-15T13:31:07","name":"[net] mlxsw: spectrum_router: Only handle IPv4 and IPv6 events","version":1,"mbox":"http://patchwork.ozlabs.org/series/3311/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/814278/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/814278/checks/","tags":{},"related":[],"headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=resnulli-us.20150623.gappssmtp.com\n\theader.i=@resnulli-us.20150623.gappssmtp.com\n\theader.b=\"cXtXRw1T\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xtxBB69xGz9sRm\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 15 Sep 2017 23:31:14 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751407AbdIONbM (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tFri, 15 Sep 2017 09:31:12 -0400","from mail-wm0-f65.google.com ([74.125.82.65]:37142 \"EHLO\n\tmail-wm0-f65.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751352AbdIONbL (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Fri, 15 Sep 2017 09:31:11 -0400","by mail-wm0-f65.google.com with SMTP id f4so2797079wmh.4\n\tfor <netdev@vger.kernel.org>; Fri, 15 Sep 2017 06:31:10 -0700 (PDT)","from localhost (jirka.pirko.cz. [84.16.102.26])\n\tby smtp.gmail.com with ESMTPSA id\n\tj4sm727126wrg.96.2017.09.15.06.31.08\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tFri, 15 Sep 2017 06:31:08 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=resnulli-us.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id;\n\tbh=YhNK3N5hONa64VuftBNI2iw7IlPI62tOs7db9SoqpHE=;\n\tb=cXtXRw1TTkafDjRlD0V8vlveHSJvEs6GN+ZVnxB7l4vw//HTtf17/BOZRkzy0T8Fbz\n\tZRnYgTXQauJGiUA0/Y+xz1ozfxBoWakUgxoiP6DvnvRXdg1skFhL3T3czHF9nzxOsKI/\n\ttLgCGg7OimotjqEganmJtcaGZv9GjMA8oBpaiBSNYidE8oyQSoh4pVrdexLga7IXDiQJ\n\tHyFscaqdNyToozX0ysrrnR5HtYcfd2Agsj7U1p/SrKIf+s1y0xJg9JsPaDF6vQ3AMPFq\n\tVuIZKm3Esg+PwVobioexo06T4eH0PV1uDUrP/keI7uApc+DkiuPK3M6Y73TD0sB5Effo\n\tS0vg==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=YhNK3N5hONa64VuftBNI2iw7IlPI62tOs7db9SoqpHE=;\n\tb=S+s4P/7IPFe0PIFKFATSDJy1JO/R55Sl8N2k0X0Oopc4IiNoII5PJTfIkDiP73Ira2\n\t1R2turXNFci3eIRAjQF5d+KCsuif1Afqd41AvjRLPxSzalI82qnmKuaLRWe14tqYTjSk\n\tdapV6V+6BNZPvO2JteSVdW8rhJyeUuzpp5vqannExcfdMb/VItZ6lLA8BPeL0vR7Lcyd\n\t5jVjN2lRuadqLehq/JPWfLG2T978bnVQUD+ahpex5AmKj/AX67/VK1QC4W7RERivfcl6\n\tFl55ROmG/s3+peB4CdaPKHE3xbdAJOjq9p9dCwfdqQyyJtbeETah28iJRYB27mto2JiR\n\t/pvg==","X-Gm-Message-State":"AHPjjUhftFn8Za3OS23dud2xwav8EKTNjI4jx1rhEcmlBJe1BQsWIhQQ\n\tZk6dNngkaOXy4jQgHjbrycwViVnO","X-Google-Smtp-Source":"AOwi7QCdli2uunPXw4xKl+cqq4O4N1JwMyMllMAlY9i0D+ATrsfsTpRaJaMcn10cn2Hn+JH9Dhy/ag==","X-Received":"by 10.28.105.12 with SMTP id e12mr2659319wmc.29.1505482269610;\n\tFri, 15 Sep 2017 06:31:09 -0700 (PDT)","From":"Jiri Pirko <jiri@resnulli.us>","To":"netdev@vger.kernel.org","Cc":"davem@davemloft.net, idosch@mellanox.com, flokli@flokli.de,\n\tandreas@rammhold.de, mlxsw@mellanox.com","Subject":"[patch net] mlxsw: spectrum_router: Only handle IPv4 and IPv6 events","Date":"Fri, 15 Sep 2017 15:31:07 +0200","Message-Id":"<20170915133107.1258-1-jiri@resnulli.us>","X-Mailer":"git-send-email 2.9.3","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"},"content":"From: Ido Schimmel <idosch@mellanox.com>\n\nThe driver doesn't support events from address families other than IPv4\nand IPv6, so ignore them. Otherwise, we risk queueing a work item before\nit's initialized.\n\nThis can happen in case a VRF is configured when MROUTE_MULTIPLE_TABLES\nis enabled, as the VRF driver will try to add an l3mdev rule for the\nIPMR family.\n\nFixes: 65e65ec137f4 (\"mlxsw: spectrum_router: Don't ignore IPv6 notifications\")\nSigned-off-by: Ido Schimmel <idosch@mellanox.com>\nReported-by: Andreas Rammhold <andreas@rammhold.de>\nReported-by: Florian Klink <flokli@flokli.de>\nSigned-off-by: Jiri Pirko <jiri@mellanox.com>\n---\n drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)","diff":"diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\nindex f0fb898..2cfb3f5 100644\n--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\n+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\n@@ -4868,7 +4868,8 @@ static int mlxsw_sp_router_fib_event(struct notifier_block *nb,\n \tstruct fib_notifier_info *info = ptr;\n \tstruct mlxsw_sp_router *router;\n \n-\tif (!net_eq(info->net, &init_net))\n+\tif (!net_eq(info->net, &init_net) ||\n+\t    (info->family != AF_INET && info->family != AF_INET6))\n \t\treturn NOTIFY_DONE;\n \n \tfib_work = kzalloc(sizeof(*fib_work), GFP_ATOMIC);\n","prefixes":["net"]}