get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 429,
    "url": "http://patches.dpdk.org/api/patches/429/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1411089280-23595-3-git-send-email-helin.zhang@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": "<1411089280-23595-3-git-send-email-helin.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1411089280-23595-3-git-send-email-helin.zhang@intel.com",
    "date": "2014-09-19T01:14:39",
    "name": "[dpdk-dev,v2,2/3] i40e: extern two functions and relevant macros",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e2fa0da65940874082c14d2fe391d3c8e7a5b0ba",
    "submitter": {
        "id": 14,
        "url": "http://patches.dpdk.org/api/people/14/?format=api",
        "name": "Zhang, Helin",
        "email": "helin.zhang@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1411089280-23595-3-git-send-email-helin.zhang@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/429/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/429/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 893A8B3AF;\n\tFri, 19 Sep 2014 03:09:06 +0200 (CEST)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id 634D9B3AF\n\tfor <dev@dpdk.org>; Fri, 19 Sep 2014 03:09:03 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby fmsmga102.fm.intel.com with ESMTP; 18 Sep 2014 18:14:50 -0700",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby fmsmga002.fm.intel.com with ESMTP; 18 Sep 2014 18:14:49 -0700",
            "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id s8J1Em5j024749;\n\tFri, 19 Sep 2014 09:14:48 +0800",
            "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid s8J1EjrC023644; Fri, 19 Sep 2014 09:14:48 +0800",
            "(from hzhan75@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s8J1Ej0c023640; \n\tFri, 19 Sep 2014 09:14:45 +0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.04,550,1406617200\"; d=\"scan'208\";a=\"601946618\"",
        "From": "Helin Zhang <helin.zhang@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Fri, 19 Sep 2014 09:14:39 +0800",
        "Message-Id": "<1411089280-23595-3-git-send-email-helin.zhang@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1411089280-23595-1-git-send-email-helin.zhang@intel.com>",
        "References": "<1411089280-23595-1-git-send-email-helin.zhang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2 2/3] i40e: extern two functions and relevant\n\tmacros",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "To reuse code, 'i40e_config_hena()' and 'i40e_parse_hena()' and\ntheir relevant macros need to be extern, and then can be used for\nboth PF and VF parts.\n\nSigned-off-by: Helin Zhang <helin.zhang@intel.com>\nReviewed-by: Cunming Liang <cunming.liang@intel.com>\nReviewed-by: Jijiang Liu <jijiang.liu@intel.com>\n---\n lib/librte_pmd_i40e/i40e_ethdev.c |  4 ++--\n lib/librte_pmd_i40e/i40e_ethdev.h | 34 +++++++++++++++++++++++++++++++++-\n 2 files changed, 35 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/lib/librte_pmd_i40e/i40e_ethdev.c b/lib/librte_pmd_i40e/i40e_ethdev.c\nindex 4e65ca4..f7a40a9 100644\n--- a/lib/librte_pmd_i40e/i40e_ethdev.c\n+++ b/lib/librte_pmd_i40e/i40e_ethdev.c\n@@ -3919,7 +3919,7 @@ DONE:\n }\n \n /* Configure hash enable flags for RSS */\n-static uint64_t\n+uint64_t\n i40e_config_hena(uint64_t flags)\n {\n \tuint64_t hena = 0;\n@@ -3954,7 +3954,7 @@ i40e_config_hena(uint64_t flags)\n }\n \n /* Parse the hash enable flags */\n-static uint64_t\n+uint64_t\n i40e_parse_hena(uint64_t flags)\n {\n \tuint64_t rss_hf = 0;\ndiff --git a/lib/librte_pmd_i40e/i40e_ethdev.h b/lib/librte_pmd_i40e/i40e_ethdev.h\nindex 64deef2..c801345 100644\n--- a/lib/librte_pmd_i40e/i40e_ethdev.h\n+++ b/lib/librte_pmd_i40e/i40e_ethdev.h\n@@ -68,6 +68,36 @@\n \t\t       I40E_FLAG_HEADER_SPLIT_ENABLED | \\\n \t\t       I40E_FLAG_FDIR)\n \n+#define I40E_RSS_OFFLOAD_ALL ( \\\n+\tETH_RSS_NONF_IPV4_UDP | \\\n+\tETH_RSS_NONF_IPV4_TCP | \\\n+\tETH_RSS_NONF_IPV4_SCTP | \\\n+\tETH_RSS_NONF_IPV4_OTHER | \\\n+\tETH_RSS_FRAG_IPV4 | \\\n+\tETH_RSS_NONF_IPV6_UDP | \\\n+\tETH_RSS_NONF_IPV6_TCP | \\\n+\tETH_RSS_NONF_IPV6_SCTP | \\\n+\tETH_RSS_NONF_IPV6_OTHER | \\\n+\tETH_RSS_FRAG_IPV6 | \\\n+\tETH_RSS_L2_PAYLOAD)\n+\n+/* All bits of RSS hash enable */\n+#define I40E_RSS_HENA_ALL ( \\\n+\t(1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_UDP) | \\\n+\t(1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_TCP) | \\\n+\t(1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_SCTP) | \\\n+\t(1ULL << I40E_FILTER_PCTYPE_NONF_IPV4_OTHER) | \\\n+\t(1ULL << I40E_FILTER_PCTYPE_FRAG_IPV4) | \\\n+\t(1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_UDP) | \\\n+\t(1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_TCP) | \\\n+\t(1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_SCTP) | \\\n+\t(1ULL << I40E_FILTER_PCTYPE_NONF_IPV6_OTHER) | \\\n+\t(1ULL << I40E_FILTER_PCTYPE_FRAG_IPV6) | \\\n+\t(1ULL << I40E_FILTER_PCTYPE_FCOE_OX) | \\\n+\t(1ULL << I40E_FILTER_PCTYPE_FCOE_RX) | \\\n+\t(1ULL << I40E_FILTER_PCTYPE_FCOE_OTHER) | \\\n+\t(1ULL << I40E_FILTER_PCTYPE_L2_PAYLOAD))\n+\n struct i40e_adapter;\n \n TAILQ_HEAD(i40e_mac_filter_list, i40e_mac_filter);\n@@ -310,8 +340,10 @@ int i40e_dev_link_update(struct rte_eth_dev *dev,\n void i40e_vsi_queues_bind_intr(struct i40e_vsi *vsi);\n void i40e_vsi_queues_unbind_intr(struct i40e_vsi *vsi);\n int i40e_vsi_vlan_pvid_set(struct i40e_vsi *vsi,\n-\t\t\t\tstruct i40e_vsi_vlan_pvid_info *info);\n+\t\t\t   struct i40e_vsi_vlan_pvid_info *info);\n int i40e_vsi_config_vlan_stripping(struct i40e_vsi *vsi, bool on);\n+uint64_t i40e_config_hena(uint64_t flags);\n+uint64_t i40e_parse_hena(uint64_t flags);\n \n /* I40E_DEV_PRIVATE_TO */\n #define I40E_DEV_PRIVATE_TO_PF(adapter) \\\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "2/3"
    ]
}