Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/606659/?format=api
{ "id": 606659, "url": "http://patchwork.ozlabs.org/api/patches/606659/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1459877947-8241-1-git-send-email-sridhar.samudrala@intel.com/", "project": { "id": 46, "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api", "name": "Intel Wired Ethernet development", "link_name": "intel-wired-lan", "list_id": "intel-wired-lan.osuosl.org", "list_email": "intel-wired-lan@osuosl.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1459877947-8241-1-git-send-email-sridhar.samudrala@intel.com>", "list_archive_url": null, "date": "2016-04-05T17:39:06", "name": "[net-next,1/2] net_sched: act_mirred: add helper inlines to access tcf_mirred info", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "4372b1539388b744217c95c6830fd5b9b9d214b5", "submitter": { "id": 65219, "url": "http://patchwork.ozlabs.org/api/people/65219/?format=api", "name": "Samudrala, Sridhar", "email": "sridhar.samudrala@intel.com" }, "delegate": { "id": 68, "url": "http://patchwork.ozlabs.org/api/users/68/?format=api", "username": "jtkirshe", "first_name": "Jeff", "last_name": "Kirsher", "email": "jeffrey.t.kirsher@intel.com" }, "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1459877947-8241-1-git-send-email-sridhar.samudrala@intel.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/606659/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/606659/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@lists.osuosl.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Delivered-To": [ "patchwork-incoming@bilbo.ozlabs.org", "intel-wired-lan@lists.osuosl.org" ], "Received": [ "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ozlabs.org (Postfix) with ESMTP id 3qfbnC4Jvfz9t5W\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 6 Apr 2016 03:43:42 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 0A8EF30BE0;\n\tTue, 5 Apr 2016 17:43:42 +0000 (UTC)", "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id cYyU+QMLB9RR; Tue, 5 Apr 2016 17:43:41 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id 53F3E2F20B;\n\tTue, 5 Apr 2016 17:43:41 +0000 (UTC)", "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id 7A72E1C15E0\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 5 Apr 2016 17:43:39 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 7423030410\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 5 Apr 2016 17:43:39 +0000 (UTC)", "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id oDzOeY1Ke+bd for <intel-wired-lan@lists.osuosl.org>;\n\tTue, 5 Apr 2016 17:43:38 +0000 (UTC)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby silver.osuosl.org (Postfix) with ESMTP id 927AE2F20B\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 5 Apr 2016 17:43:38 +0000 (UTC)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby fmsmga102.fm.intel.com with ESMTP; 05 Apr 2016 10:43:39 -0700", "from sri02.jf.intel.com ([10.166.39.21])\n\tby fmsmga002.fm.intel.com with ESMTP; 05 Apr 2016 10:43:38 -0700" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.24,444,1455004800\"; d=\"scan'208\";a=\"952260618\"", "From": "Sridhar Samudrala <sridhar.samudrala@intel.com>", "To": "intel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@intel.com,\n\tjohn.r.fastabend@intel.com", "Date": "Tue, 5 Apr 2016 10:39:06 -0700", "Message-Id": "<1459877947-8241-1-git-send-email-sridhar.samudrala@intel.com>", "X-Mailer": "git-send-email 2.1.0", "Subject": "[Intel-wired-lan] [PATCH net-next 1/2] net_sched: act_mirred: add\n\thelper inlines to access tcf_mirred info", "X-BeenThere": "intel-wired-lan@lists.osuosl.org", "X-Mailman-Version": "2.1.18-1", "Precedence": "list", "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.lists.osuosl.org>", "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>", "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>", "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>", "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>", "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "intel-wired-lan-bounces@lists.osuosl.org", "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>" }, "content": "Signed-off-by: Sridhar Samudrala <sridhar.samudrala@intel.com>\n---\n include/net/tc_act/tc_mirred.h | 15 +++++++++++++++\n 1 file changed, 15 insertions(+)", "diff": "diff --git a/include/net/tc_act/tc_mirred.h b/include/net/tc_act/tc_mirred.h\nindex dae96ba..e891835 100644\n--- a/include/net/tc_act/tc_mirred.h\n+++ b/include/net/tc_act/tc_mirred.h\n@@ -2,6 +2,7 @@\n #define __NET_TC_MIR_H\n \n #include <net/act_api.h>\n+#include <linux/tc_act/tc_mirred.h>\n \n struct tcf_mirred {\n \tstruct tcf_common\tcommon;\n@@ -14,4 +15,18 @@ struct tcf_mirred {\n #define to_mirred(a) \\\n \tcontainer_of(a->priv, struct tcf_mirred, common)\n \n+static inline bool is_tcf_mirred_redirect(const struct tc_action *a)\n+{\n+#ifdef CONFIG_NET_CLS_ACT\n+\tif (a->ops && a->ops->type == TCA_ACT_MIRRED)\n+\t\treturn to_mirred(a)->tcfm_eaction == TCA_EGRESS_REDIR;\n+#endif\n+\treturn false;\n+}\n+\n+static inline int tcf_mirred_ifindex(const struct tc_action *a)\n+{\n+\treturn to_mirred(a)->tcfm_ifindex;\n+}\n+\n #endif /* __NET_TC_MIR_H */\n", "prefixes": [ "net-next", "1/2" ] }