{"id":818953,"url":"http://patchwork.ozlabs.org/api/patches/818953/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/patch/20170927062322.5476-13-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":"<20170927062322.5476-13-jiri@resnulli.us>","list_archive_url":null,"date":"2017-09-27T06:23:22","name":"[net-next,v3,12/12] mlxsw: spectrum: router: Don't ignore IPMR notifications","commit_ref":null,"pull_url":null,"state":"accepted","archived":true,"hash":"ae2da3ef2873012af80984fd74968f86af951954","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/20170927062322.5476-13-jiri@resnulli.us/mbox/","series":[{"id":5290,"url":"http://patchwork.ozlabs.org/api/series/5290/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/list/?series=5290","date":"2017-09-27T06:23:12","name":"mlxsw: Add support for offloading IPv4 multicast routes","version":3,"mbox":"http://patchwork.ozlabs.org/series/5290/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/818953/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/818953/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=\"Ogx6xLm+\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y278C1mfPz9sRg\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 27 Sep 2017 16:24:27 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751951AbdI0GX7 (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tWed, 27 Sep 2017 02:23:59 -0400","from mail-wm0-f68.google.com ([74.125.82.68]:35867 \"EHLO\n\tmail-wm0-f68.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751833AbdI0GXg (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Wed, 27 Sep 2017 02:23:36 -0400","by mail-wm0-f68.google.com with SMTP id r136so10514435wmf.3\n\tfor <netdev@vger.kernel.org>; Tue, 26 Sep 2017 23:23:35 -0700 (PDT)","from localhost (jirka.pirko.cz. [84.16.102.26])\n\tby smtp.gmail.com with ESMTPSA id\n\tp13sm4745428wre.36.2017.09.26.23.23.34\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tTue, 26 Sep 2017 23:23:34 -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:in-reply-to:references;\n\tbh=k0DW4PzR+STsvU7OvyIHHlU8ZwbV7l3t57XwaWpuL5k=;\n\tb=Ogx6xLm+B66IKZwPyMy/gZho3FPa3cdmbm0RZMLQVe6cLClRXSK3AE1nyANl814awl\n\t3LKtG9zrjakcTw9QquuYbZQAxeL9Nh18zn+u9F968kV5RQrIX89wHgnqPDRZkoMs5bGG\n\tv9Sdcm87BoTB3gnuEu166awWSPIJdgKFN1L9f2h8nD/tU06/0ATBEKcgFlwtazZVCnRf\n\t3dNdDz+TDJuCeNIA5+ovTT8Vjzz6vRjUeArQXzKp2TBYrkH07d4lMgXFUS9XM1uImrM+\n\tv4pHs1FKYvfdd++B4itsHlprCW1r2fa1nW0R5SB7gAHsTwwFH+uDKlZPwb902AzW7nNH\n\tj8Cg==","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:in-reply-to\n\t:references;\n\tbh=k0DW4PzR+STsvU7OvyIHHlU8ZwbV7l3t57XwaWpuL5k=;\n\tb=D4hzxVUQ1b28B1gxfvdVmNtc0H/prx7g8W2i1JSIjen47o3kFz9h6VZWoVYeFPAHkP\n\tYmKV9VzSwwdxsR/HZf2ULpWVMtpiWupFJcfqu+yt/iGj36mvqy8Nns8WSgMIY7yXKQUN\n\tr+g7HPAkBS1TxRFrp8SRMtWroGUMSxjfYmrDBRtLOl4PAEjjbAJoqALKJasadc7/OcOB\n\ty1O1F8L8zIbbde7+Z1LevNZyuOHt9aYEUEiTFpTtJEXRogVJKNtujdoJPKaHxI1lROho\n\tiUdZNSHXZ9aLW/XraRSnfdb4JFgKErIg8CRdutumTl9l9kkec9bOpxpbAvd7CztOjKc5\n\tNOdw==","X-Gm-Message-State":"AHPjjUi0q7T8JqiW38LYp1fspinoImaRf+iPF2kq3ZnU1WBvs0Zjm3YI\n\tK+0zBwOJlg7ii2f1AgCyCTrAeKii","X-Google-Smtp-Source":"AOwi7QDMVi78oVUFioUBrsgheZ5k/evSqc9Jv3OsnSB1VPX5eOtsgZidWcWNT5Qu5q/jvMoTsICl/A==","X-Received":"by 10.28.168.68 with SMTP id r65mr450956wme.127.1506493415194;\n\tTue, 26 Sep 2017 23:23:35 -0700 (PDT)","From":"Jiri Pirko <jiri@resnulli.us>","To":"netdev@vger.kernel.org","Cc":"davem@davemloft.net, yotamg@mellanox.com, idosch@mellanox.com,\n\tmlxsw@mellanox.com, nikolay@cumulusnetworks.com, andrew@lunn.ch,\n\tlinyunsheng@huawei.com","Subject":"[patch net-next v3 12/12] mlxsw: spectrum: router: Don't ignore\n\tIPMR notifications","Date":"Wed, 27 Sep 2017 08:23:22 +0200","Message-Id":"<20170927062322.5476-13-jiri@resnulli.us>","X-Mailer":"git-send-email 2.9.5","In-Reply-To":"<20170927062322.5476-1-jiri@resnulli.us>","References":"<20170927062322.5476-1-jiri@resnulli.us>","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"},"content":"From: Yotam Gigi <yotamg@mellanox.com>\n\nMake the Spectrum router logic not ignore the RTNL_FAMILY_IPMR FIB\nnotifications.\n\nPast commits added the IPMR VIF and MFC add/del notifications via the\nfib_notifier chain. In addition, a code for handling these notifications in\nthe Spectrum router logic was added. Make the Spectrum router logic not\nignore these notifications and forward the requests to the Spectrum\nmulticast router offloading logic.\n\nSigned-off-by: Yotam Gigi <yotamg@mellanox.com>\nReviewed-by: Ido Schimmel <idosch@mellanox.com>\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 dbd9c19..ef4b86b 100644\n--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\n+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\n@@ -5159,7 +5159,8 @@ static int mlxsw_sp_router_fib_event(struct notifier_block *nb,\n \tstruct mlxsw_sp_router *router;\n \n \tif (!net_eq(info->net, &init_net) ||\n-\t    (info->family != AF_INET && info->family != AF_INET6))\n+\t    (info->family != AF_INET && info->family != AF_INET6 &&\n+\t     info->family != RTNL_FAMILY_IPMR))\n \t\treturn NOTIFY_DONE;\n \n \tfib_work = kzalloc(sizeof(*fib_work), GFP_ATOMIC);\n","prefixes":["net-next","v3","12/12"]}