Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/816780/?format=api
{ "id": 816780, "url": "http://patchwork.ozlabs.org/api/patches/816780/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/1505985924-12479-2-git-send-email-amine.kherbouche@6wind.com/", "project": { "id": 7, "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api", "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": "<1505985924-12479-2-git-send-email-amine.kherbouche@6wind.com>", "list_archive_url": null, "date": "2017-09-21T09:25:23", "name": "[1/2] mpls: expose stack entry function", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "241e6580add9f5a0e85924ced1a2415ea65e16a8", "submitter": { "id": 72147, "url": "http://patchwork.ozlabs.org/api/people/72147/?format=api", "name": "Amine Kherbouche", "email": "amine.kherbouche@6wind.com" }, "delegate": { "id": 34, "url": "http://patchwork.ozlabs.org/api/users/34/?format=api", "username": "davem", "first_name": "David", "last_name": "Miller", "email": "davem@davemloft.net" }, "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/1505985924-12479-2-git-send-email-amine.kherbouche@6wind.com/mbox/", "series": [ { "id": 4338, "url": "http://patchwork.ozlabs.org/api/series/4338/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=4338", "date": "2017-09-21T09:25:22", "name": "Introduce MPLS over GRE", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/4338/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/816780/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/816780/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=6wind-com.20150623.gappssmtp.com\n\theader.i=@6wind-com.20150623.gappssmtp.com\n\theader.b=\"Q7VaTPeK\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xyWSl0dnsz9t43\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 21 Sep 2017 19:26:15 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751724AbdIUJ0M (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 21 Sep 2017 05:26:12 -0400", "from mail-wr0-f174.google.com ([209.85.128.174]:45272 \"EHLO\n\tmail-wr0-f174.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751786AbdIUJZ7 (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Thu, 21 Sep 2017 05:25:59 -0400", "by mail-wr0-f174.google.com with SMTP id m18so4057198wrm.2\n\tfor <netdev@vger.kernel.org>; Thu, 21 Sep 2017 02:25:59 -0700 (PDT)", "from griffon.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com.\n\t[62.23.145.78]) by smtp.gmail.com with ESMTPSA id\n\tt15sm748591wrb.41.2017.09.21.02.25.57\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 21 Sep 2017 02:25:57 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=kyLkxqrIPypgFJGi2HZJUwT6fF3EoCCw9Xr6WAaxRtw=;\n\tb=Q7VaTPeKv/grAuucGeumRvtK4CKoEPCdft4yZrpMK6wWWjhphOmg9EVh6jPZW7jUdo\n\tA/nfyD75dV6UchdwUgOsFXhaIX4pT5q32PZTlWUMgesASODuXQ3ammAUvYQIW7OyQGp6\n\t+1kRTZ6XvTEJbYUoq3Y9aT/WbGYuVZaTMrB4dRMxNfJaJRtURUqIab7/qZsBlC5pxN10\n\tqyZjVFLt76vEmAYfsiSIGmN7lU72BtUEOhBihfYAjv42cDxJvzlLcx1D2v5YK+SjkbNY\n\tXzN+C4yCdoQnmhidxRcHn81/IFT8vcSQMUNbaDCrtrPpD6sEZRsl8X9w076ieDpzCAdm\n\tTbjw==", "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=kyLkxqrIPypgFJGi2HZJUwT6fF3EoCCw9Xr6WAaxRtw=;\n\tb=Pv28qSvoOAX+MuSsYya5kznwrycK1+ag+0lXjhFCWibGuXRkFwyk96u6UmtwmpaveC\n\tAAvUjDy0acxb0B1+oSqBCf1p5h74x8AjR2wWD7iqGPuCA67VhimdQ6CYrbtMlCXNpmpj\n\tn090LUQUyfBY+AbN0g0/U9P01R7weclajtQA2KUYrEbV7II5NPsxL0TmvnGoHfhW29jm\n\t64kvrwgP2qD7t6sB09a521h24Of+hXbu6cx/QDRy5Qxsjw76F2551oUkev3rgzfI+ZOu\n\tYZX6MEzVoUONaumwiCstes58JSKvGf/Ua9WCVXOhWloPIKTGWge1rnMzSg+yoHDu64eN\n\t8Axw==", "X-Gm-Message-State": "AHPjjUhi+P3tpsHIju6dPrdkwzrzTHfr2TKb6K3NAgf/udTWotFqXDuf\n\tnQAURoEEgDv+ghm9pzCLUv1bnXPX", "X-Google-Smtp-Source": "AOwi7QBRMjKRBgFEBf5FLqXj7botvhoIZTSTaw6IxDOU/zW4Pmf72Ht+L3CbYj5D/au4sePAxUYNdw==", "X-Received": "by 10.223.184.250 with SMTP id c55mr1257892wrg.134.1505985958225;\n\tThu, 21 Sep 2017 02:25:58 -0700 (PDT)", "From": "Amine Kherbouche <amine.kherbouche@6wind.com>", "To": "netdev@vger.kernel.org, xeb@mail.ru, roopa@cumulusnetworks.com", "Cc": "amine.kherbouche@6wind.com, equinox@diac24.net", "Subject": "[PATCH 1/2] mpls: expose stack entry function", "Date": "Thu, 21 Sep 2017 11:25:23 +0200", "Message-Id": "<1505985924-12479-2-git-send-email-amine.kherbouche@6wind.com>", "X-Mailer": "git-send-email 2.1.4", "In-Reply-To": "<1505985924-12479-1-git-send-email-amine.kherbouche@6wind.com>", "References": "<1505985924-12479-1-git-send-email-amine.kherbouche@6wind.com>", "Sender": "netdev-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "Exposing mpls_forward() function to be able to be called from elsewhere\nsuch as MPLS over GRE in the next commit.\n\nSigned-off-by: Amine Kherbouche <amine.kherbouche@6wind.com>\n---\n include/linux/mpls.h | 3 +++\n net/mpls/af_mpls.c | 5 +++--\n 2 files changed, 6 insertions(+), 2 deletions(-)", "diff": "diff --git a/include/linux/mpls.h b/include/linux/mpls.h\nindex 384fb22..d5c7599 100644\n--- a/include/linux/mpls.h\n+++ b/include/linux/mpls.h\n@@ -2,10 +2,13 @@\n #define _LINUX_MPLS_H\n \n #include <uapi/linux/mpls.h>\n+#include <linux/netdevice.h>\n \n #define MPLS_TTL_MASK\t\t(MPLS_LS_TTL_MASK >> MPLS_LS_TTL_SHIFT)\n #define MPLS_BOS_MASK\t\t(MPLS_LS_S_MASK >> MPLS_LS_S_SHIFT)\n #define MPLS_TC_MASK\t\t(MPLS_LS_TC_MASK >> MPLS_LS_TC_SHIFT)\n #define MPLS_LABEL_MASK\t\t(MPLS_LS_LABEL_MASK >> MPLS_LS_LABEL_SHIFT)\n \n+int mpls_forward(struct sk_buff *skb, struct net_device *dev,\n+\t\t struct packet_type *pt, struct net_device *orig_dev);\n #endif /* _LINUX_MPLS_H */\ndiff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c\nindex c5b9ce4..36ea2ad 100644\n--- a/net/mpls/af_mpls.c\n+++ b/net/mpls/af_mpls.c\n@@ -307,8 +307,8 @@ static bool mpls_egress(struct net *net, struct mpls_route *rt,\n \treturn success;\n }\n \n-static int mpls_forward(struct sk_buff *skb, struct net_device *dev,\n-\t\t\tstruct packet_type *pt, struct net_device *orig_dev)\n+int mpls_forward(struct sk_buff *skb, struct net_device *dev,\n+\t\t struct packet_type *pt, struct net_device *orig_dev)\n {\n \tstruct net *net = dev_net(dev);\n \tstruct mpls_shim_hdr *hdr;\n@@ -442,6 +442,7 @@ static int mpls_forward(struct sk_buff *skb, struct net_device *dev,\n \tkfree_skb(skb);\n \treturn NET_RX_DROP;\n }\n+EXPORT_SYMBOL(mpls_forward);\n \n static struct packet_type mpls_packet_type __read_mostly = {\n \t.type = cpu_to_be16(ETH_P_MPLS_UC),\n", "prefixes": [ "1/2" ] }