{"id":816700,"url":"http://patchwork.ozlabs.org/api/patches/816700/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/patch/20170921064338.1282-6-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":"<20170921064338.1282-6-jiri@resnulli.us>","list_archive_url":null,"date":"2017-09-21T06:43:31","name":"[net-next,05/12] net: ipmr: Add MFC offload indication","commit_ref":null,"pull_url":null,"state":"changes-requested","archived":true,"hash":"0f863223da1058c609643c6dcdb089584355d653","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/20170921064338.1282-6-jiri@resnulli.us/mbox/","series":[{"id":4309,"url":"http://patchwork.ozlabs.org/api/series/4309/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/list/?series=4309","date":"2017-09-21T06:43:26","name":"mlxsw: Add support for offloading IPv4 multicast routes","version":1,"mbox":"http://patchwork.ozlabs.org/series/4309/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/816700/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/816700/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=\"wym32Fnp\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xyRsx5sgMz9s7g\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 21 Sep 2017 16:44:21 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751926AbdIUGnq (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 21 Sep 2017 02:43:46 -0400","from mail-wm0-f68.google.com ([74.125.82.68]:33381 \"EHLO\n\tmail-wm0-f68.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751732AbdIUGno (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Thu, 21 Sep 2017 02:43:44 -0400","by mail-wm0-f68.google.com with SMTP id m127so4299854wmm.0\n\tfor <netdev@vger.kernel.org>; Wed, 20 Sep 2017 23:43:44 -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\t188sm764900wmg.45.2017.09.20.23.43.42\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tWed, 20 Sep 2017 23:43:42 -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=0kFbPBIMqS7L+2eEriqFxCMkoq2+JIdWEsTIVJYh3N4=;\n\tb=wym32FnpVcg434JuSzYvgjwd0L3PNwer1FRxxfrQM3xgVKLUOBc13kdEsMOMi9DbeH\n\t8P9GraXjRbVfvWgkOm6M2OUjERo70F0gpCX/M1OmS5cSEvfuwFVCio0oAeXfOf1qQdbH\n\twimPV8bVltStwuYMqzv4yTIN6C4suvwPZ6w8Bxi6bYy6wWzL3iIzNUu6g22KvRIdJAoq\n\tD0ZVxyVeFmD07KrrQSg+0UeqqBySCQkgUfc9eQLt7G/MErtKcRSv3/oFwCmABed6wnf0\n\t8o3ZwWy5c9FC2AdBaXb5L6StsgptjHeKl9KTOBIcnNMHjPM7b+wRv6MNpRA2ONEdD7uw\n\t043g==","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=0kFbPBIMqS7L+2eEriqFxCMkoq2+JIdWEsTIVJYh3N4=;\n\tb=sgf/IvWXse2/xJeVi+Pp0ep5HH1xSRYp+KCYo+AzUVjemYdmPYNE9kY7AUDR9hIN18\n\tGwPQEcTWzjlFMrT/z8PHFUmsMOQazaI7Uha1d5yA/EYfYMqQ5Lns7zvM37OQFhYTNSfD\n\tUeveNIlGXRUK741dp4AGgMmER68+htBxF4LkQQiXbXioA0pCe7/85B5U+Q89YL0tPjD/\n\tJNiCSsKccoqTELHigT9mUzWNw1kchhZFOTp//PdVuCtOr90aV2pCtxMtDkK5dGN2EWBl\n\t/kH6Dk6R+EhcB5HbcrrQ6WcVExaNBcr54XwwwdHgj2FBUjNegBcCxG3qdiLJx3fySqtN\n\tcAxw==","X-Gm-Message-State":"AHPjjUjh4oZLME6vlPbvqdch+1XR1AVKSGOm/6vTSxfWKxVJXuJU605m\n\tf8FIPmEFgGG789U9pHaTYoe1J99I","X-Google-Smtp-Source":"AOwi7QCflgiC94c+wvUIuTp33ejVKnAxwdlzaIOQlJt1wNqYkV8IPmZsyGaQ9SvvEYpJwpPHZKvlqA==","X-Received":"by 10.28.103.195 with SMTP id b186mr989326wmc.101.1505976223363; \n\tWed, 20 Sep 2017 23:43:43 -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 05/12] net: ipmr: Add MFC offload indication","Date":"Thu, 21 Sep 2017 08:43:31 +0200","Message-Id":"<20170921064338.1282-6-jiri@resnulli.us>","X-Mailer":"git-send-email 2.9.5","In-Reply-To":"<20170921064338.1282-1-jiri@resnulli.us>","References":"<20170921064338.1282-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\nAllow drivers, registered to the fib notification chain indicate whether a\nmulticast MFC route is offloaded or not, similarly to unicast routes. The\nindication of whether a route is offloaded is done using the mfc_flags\nfield on an mfc_cache struct, and the information is sent to the userspace\nvia the RTNetlink interface only.\n\nCurrently, MFC routes are either offloaded or not, thus there is no need to\nadd per-VIF offload indication.\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 include/linux/mroute.h | 1 +\n net/ipv4/ipmr.c        | 3 +++\n 2 files changed, 4 insertions(+)","diff":"diff --git a/include/linux/mroute.h b/include/linux/mroute.h\nindex ba5a976..9b64587 100644\n--- a/include/linux/mroute.h\n+++ b/include/linux/mroute.h\n@@ -93,6 +93,7 @@ struct mr_table {\n  */\n enum {\n \tMFC_STATIC = BIT(0),\n+\tMFC_OFFLOAD = BIT(1),\n };\n \n struct mfc_cache_cmp_arg {\ndiff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c\nindex 7891d95..6804885 100644\n--- a/net/ipv4/ipmr.c\n+++ b/net/ipv4/ipmr.c\n@@ -2268,6 +2268,9 @@ static int __ipmr_fill_mroute(struct mr_table *mrt, struct sk_buff *skb,\n \t    nla_put_u32(skb, RTA_IIF, mrt->vif_table[c->mfc_parent].dev->ifindex) < 0)\n \t\treturn -EMSGSIZE;\n \n+\tif (c->mfc_flags & MFC_OFFLOAD)\n+\t\trtm->rtm_flags |= RTNH_F_OFFLOAD;\n+\n \tif (!(mp_attr = nla_nest_start(skb, RTA_MULTIPATH)))\n \t\treturn -EMSGSIZE;\n \n","prefixes":["net-next","05/12"]}