Show a patch.

GET /api/patches/44086/
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 44086,
    "url": "http://patches.dpdk.org/api/patches/44086/",
    "web_url": "http://patches.dpdk.org/patch/44086/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk"
    },
    "msgid": "<20180831092038.23051-7-adrien.mazarguil@6wind.com>",
    "date": "2018-08-31T09:57:38",
    "name": "[6/8] net/mlx5: add convenience macros to switch flow rule engine",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "2edd8f668a6363df510b7e807b04ddb3417ae3ad",
    "submitter": {
        "id": 165,
        "url": "http://patches.dpdk.org/api/people/165/",
        "name": "Adrien Mazarguil",
        "email": "adrien.mazarguil@6wind.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/patch/44086/mbox/",
    "series": [
        {
            "id": 1126,
            "url": "http://patches.dpdk.org/api/series/1126/",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1126",
            "date": "2018-08-31T09:57:25",
            "name": "net/mlx5: add switch offload for VXLAN encap/decap",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/1126/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/44086/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/44086/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "In-Reply-To": "<20180831092038.23051-1-adrien.mazarguil@6wind.com>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Mailer": "git-send-email 2.11.0",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B4A4A5681;\n\tFri, 31 Aug 2018 11:57:57 +0200 (CEST)",
            "from mail-wr1-f66.google.com (mail-wr1-f66.google.com\n\t[209.85.221.66]) by dpdk.org (Postfix) with ESMTP id CBCDA4CB9\n\tfor <dev@dpdk.org>; Fri, 31 Aug 2018 11:57:54 +0200 (CEST)",
            "by mail-wr1-f66.google.com with SMTP id z96-v6so10652863wrb.8\n\tfor <dev@dpdk.org>; Fri, 31 Aug 2018 02:57:54 -0700 (PDT)",
            "from 6wind.com (host.78.145.23.62.rev.coltfrance.com.\n\t[62.23.145.78]) by smtp.gmail.com with ESMTPSA id\n\tr140-v6sm5486828wmd.7.2018.08.31.02.57.53\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 31 Aug 2018 02:57:53 -0700 (PDT)"
        ],
        "References": "<20180831092038.23051-1-adrien.mazarguil@6wind.com>",
        "X-Google-Smtp-Source": "ANB0Vdb/+N9QdR5ItLHLVYdzqM+NCExHdnAlWL6ZuBYeYF/NWEhtjMHeq/nsGw8mSv2DVhgzo7D45A==",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=date:from:to:cc:subject:message-id:references:mime-version\n\t:content-disposition:in-reply-to;\n\tbh=rarnz3f0GEmpK7cdDOAEvkq8MvWAANHQL8tfpTPjUGA=;\n\tb=J0TbvJIE2KuiTK9yO5riSKdDnOixC7gI4xFoKxuA+6yHn7yWaM5FqzNtL5ezCu+f35\n\temQz2qitKE7oezNKvi2cbvuaKMNr8vjibk93CaCeUX0ezXXTSaCGQCuzUVIE7ni1VywL\n\td2LZ8gxVYYctunMNBNOxFxV1r0FWSXMtJ6tjvW1KWN1n3SlqzeYG7hUd9B6K16LWTrpD\n\tlc6zaV1CJoz+3gY04x0euo91bMxDIoHW3MkSiZmgTV4VrYpt6Ulcpp4kp+zjekmovA3Y\n\tLYKWrBCCGrdOqfgZ3s5oWKftFN7F+D5/IraGzUCDto1FNrUvcPwMYQZsjLYYlJmWiPoT\n\tXt/w==",
        "MIME-Version": "1.0",
        "X-Received": "by 2002:adf:e3c4:: with SMTP id\n\tk4-v6mr9958403wrm.94.1535709474555; \n\tFri, 31 Aug 2018 02:57:54 -0700 (PDT)",
        "Message-ID": "<20180831092038.23051-7-adrien.mazarguil@6wind.com>",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:references\n\t:mime-version:content-disposition:in-reply-to;\n\tbh=rarnz3f0GEmpK7cdDOAEvkq8MvWAANHQL8tfpTPjUGA=;\n\tb=tECfOQrfUFmAzx7Ro07R3artrM+2kBMjHjhXnzaMSxnh5eUG0kvjO9k1vUgwgXabIg\n\ttJM8GcNPpmkff5KsZRQmX/7flL4BmHKLvd3HyixPxER9JQyo75NfSQ3IVEGwr+BxOoFE\n\tdBqMHykpXwin9tHBAeQPgfzQuGY/nLk7nadP15+TXQCwY7rnoOhrS6hd5JunxD7+EmRY\n\t+IFd9wgOamAjbjd0JVm91+2AmnFK0MsHCoXzAgOl6EuCR62sEEa9SGlbiDScZyh/YAuK\n\t1wWIkRe8iR4GoTWZmRYXkNraVMeYq03rq11MiX5w2A1jg1Npq6o8RrR3oM9bNda4RrNk\n\tGbWw==",
        "Delivered-To": "patchwork@dpdk.org",
        "Precedence": "list",
        "From": "Adrien Mazarguil <adrien.mazarguil@6wind.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "Content-Type": "text/plain; charset=us-ascii",
        "Content-Disposition": "inline",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "To": "Shahaf Shuler <shahafs@mellanox.com>, Yongseok Koh <yskoh@mellanox.com>, \n\tSlava Ovsiienko <viacheslavo@mellanox.com>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Date": "Fri, 31 Aug 2018 11:57:38 +0200",
        "X-Gm-Message-State": "APzg51A5CtsAvYL4MOJtayl156ktfpeOwtI3hPIMBHPncCcqfabTtANK\n\tYuSddBwFHPactdVjkC7tnXHa+A==",
        "Cc": "dev@dpdk.org",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "X-BeenThere": "dev@dpdk.org",
        "Subject": "[dpdk-dev] [PATCH 6/8] net/mlx5: add convenience macros to switch\n\tflow rule engine"
    },
    "content": "Upcoming patches will rely on them.\n\nSigned-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>\n---\n drivers/net/mlx5/mlx5_nl_flow.c | 31 +++++++++++++++++--------------\n 1 file changed, 17 insertions(+), 14 deletions(-)",
    "diff": "diff --git a/drivers/net/mlx5/mlx5_nl_flow.c b/drivers/net/mlx5/mlx5_nl_flow.c\nindex d20416026..91ff90a13 100644\n--- a/drivers/net/mlx5/mlx5_nl_flow.c\n+++ b/drivers/net/mlx5/mlx5_nl_flow.c\n@@ -236,6 +236,13 @@ static const union {\n \tstruct rte_flow_item_udp udp;\n } mlx5_nl_flow_mask_empty;\n \n+#define ETHER_ADDR_MASK \"\\xff\\xff\\xff\\xff\\xff\\xff\"\n+#define IN_ADDR_MASK RTE_BE32(0xffffffff)\n+#define IN6_ADDR_MASK \\\n+\t\"\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\" \\\n+\t\"\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\"\n+#define BE16_MASK RTE_BE16(0xffff)\n+\n /** Supported masks for known item types. */\n static const struct {\n \tstruct rte_flow_item_port_id port_id;\n@@ -251,8 +258,8 @@ static const struct {\n \t},\n \t.eth = {\n \t\t.type = RTE_BE16(0xffff),\n-\t\t.dst.addr_bytes = \"\\xff\\xff\\xff\\xff\\xff\\xff\",\n-\t\t.src.addr_bytes = \"\\xff\\xff\\xff\\xff\\xff\\xff\",\n+\t\t.dst.addr_bytes = ETHER_ADDR_MASK,\n+\t\t.src.addr_bytes = ETHER_ADDR_MASK,\n \t},\n \t.vlan = {\n \t\t/* PCP and VID only, no DEI. */\n@@ -261,25 +268,21 @@ static const struct {\n \t},\n \t.ipv4.hdr = {\n \t\t.next_proto_id = 0xff,\n-\t\t.src_addr = RTE_BE32(0xffffffff),\n-\t\t.dst_addr = RTE_BE32(0xffffffff),\n+\t\t.src_addr = IN_ADDR_MASK,\n+\t\t.dst_addr = IN_ADDR_MASK,\n \t},\n \t.ipv6.hdr = {\n \t\t.proto = 0xff,\n-\t\t.src_addr =\n-\t\t\t\"\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\"\n-\t\t\t\"\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\",\n-\t\t.dst_addr =\n-\t\t\t\"\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\"\n-\t\t\t\"\\xff\\xff\\xff\\xff\\xff\\xff\\xff\\xff\",\n+\t\t.src_addr = IN6_ADDR_MASK,\n+\t\t.dst_addr = IN6_ADDR_MASK,\n \t},\n \t.tcp.hdr = {\n-\t\t.src_port = RTE_BE16(0xffff),\n-\t\t.dst_port = RTE_BE16(0xffff),\n+\t\t.src_port = BE16_MASK,\n+\t\t.dst_port = BE16_MASK,\n \t},\n \t.udp.hdr = {\n-\t\t.src_port = RTE_BE16(0xffff),\n-\t\t.dst_port = RTE_BE16(0xffff),\n+\t\t.src_port = BE16_MASK,\n+\t\t.dst_port = BE16_MASK,\n \t},\n };\n \n",
    "prefixes": [
        "6/8"
    ]
}