get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 45591,
    "url": "http://patches.dpdk.org/api/patches/45591/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1538151535-761-1-git-send-email-reshma.pattan@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "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",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<1538151535-761-1-git-send-email-reshma.pattan@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1538151535-761-1-git-send-email-reshma.pattan@intel.com",
    "date": "2018-09-28T16:18:54",
    "name": "net/softnic: fix ipv6 address from big endian to cpu order",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "b84e30710ab58414ac09d0d0389e154789f7c9b6",
    "submitter": {
        "id": 70,
        "url": "http://patches.dpdk.org/api/people/70/?format=api",
        "name": "Pattan, Reshma",
        "email": "reshma.pattan@intel.com"
    },
    "delegate": {
        "id": 10018,
        "url": "http://patches.dpdk.org/api/users/10018/?format=api",
        "username": "cristian_dumitrescu",
        "first_name": "Cristian",
        "last_name": "Dumitrescu",
        "email": "cristian.dumitrescu@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1538151535-761-1-git-send-email-reshma.pattan@intel.com/mbox/",
    "series": [
        {
            "id": 1577,
            "url": "http://patches.dpdk.org/api/series/1577/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1577",
            "date": "2018-09-28T16:18:54",
            "name": "net/softnic: fix ipv6 address from big endian to cpu order",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/1577/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/45591/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/45591/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 417D91B142;\n\tFri, 28 Sep 2018 18:19:06 +0200 (CEST)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n\tby dpdk.org (Postfix) with ESMTP id A25661B12F\n\tfor <dev@dpdk.org>; Fri, 28 Sep 2018 18:19:04 +0200 (CEST)",
            "from fmsmga007.fm.intel.com ([10.253.24.52])\n\tby orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t28 Sep 2018 09:19:03 -0700",
            "from sivswdev02.ir.intel.com (HELO localhost.localdomain)\n\t([10.237.217.46])\n\tby fmsmga007.fm.intel.com with ESMTP; 28 Sep 2018 09:19:02 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.54,315,1534834800\"; d=\"scan'208\";a=\"73868255\"",
        "From": "Reshma Pattan <reshma.pattan@intel.com>",
        "To": "dev@dpdk.org, cristian.dumitrescu@intel.com, jasvinder.singh@intel.com",
        "Cc": "Reshma Pattan <reshma.pattan@intel.com>",
        "Date": "Fri, 28 Sep 2018 17:18:54 +0100",
        "Message-Id": "<1538151535-761-1-git-send-email-reshma.pattan@intel.com>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "Subject": "[dpdk-dev] [PATCH] net/softnic: fix ipv6 address from big endian to\n\tcpu order",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "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>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Fix ipv6 endianness from big endian to cpu order.\n\nFixes: ee19326a4b (\"net/softnic: add command for pipeline table entries\")\n\nSigned-off-by: Reshma Pattan <reshma.pattan@intel.com>\n---\n drivers/net/softnic/rte_eth_softnic_thread.c | 40 ++++++++++++--------\n 1 file changed, 24 insertions(+), 16 deletions(-)",
    "diff": "diff --git a/drivers/net/softnic/rte_eth_softnic_thread.c b/drivers/net/softnic/rte_eth_softnic_thread.c\nindex 8a1509030..2be81900a 100644\n--- a/drivers/net/softnic/rte_eth_softnic_thread.c\n+++ b/drivers/net/softnic/rte_eth_softnic_thread.c\n@@ -2202,29 +2202,37 @@ match_convert(struct softnic_table_rule_match *mh,\n \t\t\t\tml->acl_add.field_value[0].mask_range.u8 =\n \t\t\t\t\tmh->match.acl.proto_mask;\n \n-\t\t\t\tml->acl_add.field_value[1].value.u32 = sa32[0];\n+\t\t\t\tml->acl_add.field_value[1].value.u32 =\n+\t\t\t\t\trte_be_to_cpu_32(sa32[0]);\n \t\t\t\tml->acl_add.field_value[1].mask_range.u32 =\n \t\t\t\t\tsa32_depth[0];\n-\t\t\t\tml->acl_add.field_value[2].value.u32 = sa32[1];\n+\t\t\t\tml->acl_add.field_value[2].value.u32 =\n+\t\t\t\t\trte_be_to_cpu_32(sa32[1]);\n \t\t\t\tml->acl_add.field_value[2].mask_range.u32 =\n \t\t\t\t\tsa32_depth[1];\n-\t\t\t\tml->acl_add.field_value[3].value.u32 = sa32[2];\n+\t\t\t\tml->acl_add.field_value[3].value.u32 =\n+\t\t\t\t\trte_be_to_cpu_32(sa32[2]);\n \t\t\t\tml->acl_add.field_value[3].mask_range.u32 =\n \t\t\t\t\tsa32_depth[2];\n-\t\t\t\tml->acl_add.field_value[4].value.u32 = sa32[3];\n+\t\t\t\tml->acl_add.field_value[4].value.u32 =\n+\t\t\t\t\trte_be_to_cpu_32(sa32[3]);\n \t\t\t\tml->acl_add.field_value[4].mask_range.u32 =\n \t\t\t\t\tsa32_depth[3];\n \n-\t\t\t\tml->acl_add.field_value[5].value.u32 = da32[0];\n+\t\t\t\tml->acl_add.field_value[5].value.u32 =\n+\t\t\t\t\trte_be_to_cpu_32(da32[0]);\n \t\t\t\tml->acl_add.field_value[5].mask_range.u32 =\n \t\t\t\t\tda32_depth[0];\n-\t\t\t\tml->acl_add.field_value[6].value.u32 = da32[1];\n+\t\t\t\tml->acl_add.field_value[6].value.u32 =\n+\t\t\t\t\trte_be_to_cpu_32(da32[1]);\n \t\t\t\tml->acl_add.field_value[6].mask_range.u32 =\n \t\t\t\t\tda32_depth[1];\n-\t\t\t\tml->acl_add.field_value[7].value.u32 = da32[2];\n+\t\t\t\tml->acl_add.field_value[7].value.u32 =\n+\t\t\t\t\trte_be_to_cpu_32(da32[2]);\n \t\t\t\tml->acl_add.field_value[7].mask_range.u32 =\n \t\t\t\t\tda32_depth[2];\n-\t\t\t\tml->acl_add.field_value[8].value.u32 = da32[3];\n+\t\t\t\tml->acl_add.field_value[8].value.u32 =\n+\t\t\t\t\trte_be_to_cpu_32(da32[3]);\n \t\t\t\tml->acl_add.field_value[8].mask_range.u32 =\n \t\t\t\t\tda32_depth[3];\n \n@@ -2264,36 +2272,36 @@ match_convert(struct softnic_table_rule_match *mh,\n \t\t\t\t\tmh->match.acl.proto_mask;\n \n \t\t\t\tml->acl_delete.field_value[1].value.u32 =\n-\t\t\t\t\tsa32[0];\n+\t\t\t\t\trte_be_to_cpu_32(sa32[0]);\n \t\t\t\tml->acl_delete.field_value[1].mask_range.u32 =\n \t\t\t\t\tsa32_depth[0];\n \t\t\t\tml->acl_delete.field_value[2].value.u32 =\n-\t\t\t\t\tsa32[1];\n+\t\t\t\t\trte_be_to_cpu_32(sa32[1]);\n \t\t\t\tml->acl_delete.field_value[2].mask_range.u32 =\n \t\t\t\t\tsa32_depth[1];\n \t\t\t\tml->acl_delete.field_value[3].value.u32 =\n-\t\t\t\t\tsa32[2];\n+\t\t\t\t\trte_be_to_cpu_32(sa32[2]);\n \t\t\t\tml->acl_delete.field_value[3].mask_range.u32 =\n \t\t\t\t\tsa32_depth[2];\n \t\t\t\tml->acl_delete.field_value[4].value.u32 =\n-\t\t\t\t\tsa32[3];\n+\t\t\t\t\trte_be_to_cpu_32(sa32[3]);\n \t\t\t\tml->acl_delete.field_value[4].mask_range.u32 =\n \t\t\t\t\tsa32_depth[3];\n \n \t\t\t\tml->acl_delete.field_value[5].value.u32 =\n-\t\t\t\t\tda32[0];\n+\t\t\t\t\trte_be_to_cpu_32(da32[0]);\n \t\t\t\tml->acl_delete.field_value[5].mask_range.u32 =\n \t\t\t\t\tda32_depth[0];\n \t\t\t\tml->acl_delete.field_value[6].value.u32 =\n-\t\t\t\t\tda32[1];\n+\t\t\t\t\trte_be_to_cpu_32(da32[1]);\n \t\t\t\tml->acl_delete.field_value[6].mask_range.u32 =\n \t\t\t\t\tda32_depth[1];\n \t\t\t\tml->acl_delete.field_value[7].value.u32 =\n-\t\t\t\t\tda32[2];\n+\t\t\t\t\trte_be_to_cpu_32(da32[2]);\n \t\t\t\tml->acl_delete.field_value[7].mask_range.u32 =\n \t\t\t\t\tda32_depth[2];\n \t\t\t\tml->acl_delete.field_value[8].value.u32 =\n-\t\t\t\t\tda32[3];\n+\t\t\t\t\trte_be_to_cpu_32(da32[3]);\n \t\t\t\tml->acl_delete.field_value[8].mask_range.u32 =\n \t\t\t\t\tda32_depth[3];\n \n",
    "prefixes": []
}