{"id":815337,"url":"http://patchwork.ozlabs.org/api/patches/815337/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/patch/20170919080020.5870-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":"<20170919080020.5870-13-jiri@resnulli.us>","list_archive_url":null,"date":"2017-09-19T08:00:19","name":"[net-next,12/13] mlxsw: spectrum_router: Export RIF dev access function","commit_ref":null,"pull_url":null,"state":"accepted","archived":true,"hash":"ea0a2e3cba429f9881f65f9ccc1bd74da532e549","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/20170919080020.5870-13-jiri@resnulli.us/mbox/","series":[{"id":3798,"url":"http://patchwork.ozlabs.org/api/series/3798/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/list/?series=3798","date":"2017-09-19T08:00:07","name":"mlxsw: Prepare for multicast router offload","version":1,"mbox":"http://patchwork.ozlabs.org/series/3798/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/815337/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/815337/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=\"lPyUYGWu\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xxFfx6mSgz9s7M\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 19 Sep 2017 18:00:41 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751660AbdISIAj (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 19 Sep 2017 04:00:39 -0400","from mail-wr0-f195.google.com ([209.85.128.195]:35699 \"EHLO\n\tmail-wr0-f195.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751626AbdISIAd (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Tue, 19 Sep 2017 04:00:33 -0400","by mail-wr0-f195.google.com with SMTP id n64so1712935wrb.2\n\tfor <netdev@vger.kernel.org>; Tue, 19 Sep 2017 01:00:33 -0700 (PDT)","from localhost (ip-89-177-125-82.net.upcbroadband.cz.\n\t[89.177.125.82]) by smtp.gmail.com with ESMTPSA id\n\tv78sm546087wmv.48.2017.09.19.01.00.32\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tTue, 19 Sep 2017 01:00:32 -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=twWnskYg5DN9bTl2bRmxuU4BxRiURLpnAsUXGE/lY5Y=;\n\tb=lPyUYGWuQmTDOKonK4QlW620WB+8+IDdSPfsYpywayFRRw74aScuxIJ4/3gyxbgA9c\n\tZe+TQJDeam/tx6YryrQ1nMbYrEE3db1YXHbb0xxS1R3VPF/JUhR1bj09NIhy4rx94Ca/\n\tKPLEzivNQ0oF8sgczaqK1LU6HLOOw4clp2+fJ+RDAKmdny5+HNIvYf4wOWfF64UpBmTs\n\tra5zSANUjh146nLpiw9FgdxRELcKp7EztvzPdwD/YttYjwRYl69S0UdoZvZyBKN6ZWep\n\tostuyIwgMBvFwarOEBJwHgBV7jgZ6FRkiRUGq1dxb3gMpFXnXpYTtlD5ZYWzgdlOQQfv\n\tF4zw==","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=twWnskYg5DN9bTl2bRmxuU4BxRiURLpnAsUXGE/lY5Y=;\n\tb=Sn2BznelnDs70ps2NnmrqD5K0E8if1rrbNNdXuVjZ/+UyY6+9A148G/iyfaY9W5mgj\n\trCAgaWKsaM7MfNlY+9HmrKEC6Q9321cuOdD7M63gGZMUXu1laYOXKd4IvYrCl/vLVsbe\n\tUW6M7Oipxkwl60TQpUvLkZuk63Ofyvx9l8oCY6fNAEYVDARI6FR8PvRwyEtXToiex8Lf\n\tj+tgU/M+UZHvvVHc0mCq+o5ZHegYwcGWLU2BBz4fOwaOPRMnAmgfzeIg/y4Qzp//O+7v\n\tfdGlA1RmXN8+njTYaopi+g7h+9ii0eIiHFo8+U6uVxuOudvTl3WulWLjIoUG/GpQ50MV\n\tqkfQ==","X-Gm-Message-State":"AHPjjUig2xaIPzGx2kP7gCQqrpf/rW1augzQDIgJITMFtHZkXBg3z1/y\n\tcEs3C95medHruInE6r/rAxR4ys43","X-Google-Smtp-Source":"AOwi7QAHq4We26HBA47xuAWxpFrLdwMIWz/zx75mp5ckXYAJyJRXhcRy2mz/J9i+CA/Tt80jugsHPA==","X-Received":"by 10.223.136.123 with SMTP id e56mr579551wre.227.1505808032560; \n\tTue, 19 Sep 2017 01:00:32 -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","Subject":"[patch net-next 12/13] mlxsw: spectrum_router: Export RIF dev\n\taccess function","Date":"Tue, 19 Sep 2017 10:00:19 +0200","Message-Id":"<20170919080020.5870-13-jiri@resnulli.us>","X-Mailer":"git-send-email 2.9.5","In-Reply-To":"<20170919080020.5870-1-jiri@resnulli.us>","References":"<20170919080020.5870-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\nThe mlxsw_sp_rif struct, defined as private struct in spectrum_router.c\nwill be used in the multicast router source file. Due to the fact that the\ndev field will be needed by the multicast router logic, add an access\nfunction to it.\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 | 5 +++++\n drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h | 1 +\n 2 files changed, 6 insertions(+)","diff":"diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\nindex 2cfb3f5..0bd93dc 100644\n--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\n+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\n@@ -5049,6 +5049,11 @@ int mlxsw_sp_rif_dev_ifindex(const struct mlxsw_sp_rif *rif)\n \treturn rif->dev->ifindex;\n }\n \n+const struct net_device *mlxsw_sp_rif_dev(const struct mlxsw_sp_rif *rif)\n+{\n+\treturn rif->dev;\n+}\n+\n static struct mlxsw_sp_rif *\n mlxsw_sp_rif_create(struct mlxsw_sp *mlxsw_sp,\n \t\t    const struct mlxsw_sp_rif_params *params)\ndiff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h\nindex 345fcc4..ae4c99b 100644\n--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h\n+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h\n@@ -69,6 +69,7 @@ u16 mlxsw_sp_rif_index(const struct mlxsw_sp_rif *rif);\n u16 mlxsw_sp_ipip_lb_rif_index(const struct mlxsw_sp_rif_ipip_lb *rif);\n u16 mlxsw_sp_ipip_lb_ul_vr_id(const struct mlxsw_sp_rif_ipip_lb *rif);\n int mlxsw_sp_rif_dev_ifindex(const struct mlxsw_sp_rif *rif);\n+const struct net_device *mlxsw_sp_rif_dev(const struct mlxsw_sp_rif *rif);\n int mlxsw_sp_rif_counter_value_get(struct mlxsw_sp *mlxsw_sp,\n \t\t\t\t   struct mlxsw_sp_rif *rif,\n \t\t\t\t   enum mlxsw_sp_rif_counter_dir dir,\n","prefixes":["net-next","12/13"]}