get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1287,
    "url": "https://patches.dpdk.org/api/patches/1287/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1416067424-31699-4-git-send-email-helin.zhang@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<1416067424-31699-4-git-send-email-helin.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1416067424-31699-4-git-send-email-helin.zhang@intel.com",
    "date": "2014-11-15T16:03:39",
    "name": "[dpdk-dev,v6,3/8] i40e: support of setting hash lookup table size",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "f40a09c8a93f0de60885c9a83de8df1bfc346fc3",
    "submitter": {
        "id": 14,
        "url": "https://patches.dpdk.org/api/people/14/?format=api",
        "name": "Zhang, Helin",
        "email": "helin.zhang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1416067424-31699-4-git-send-email-helin.zhang@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/1287/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/1287/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 D82C77F91;\n\tSat, 15 Nov 2014 16:54:05 +0100 (CET)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id B8ACE7F80\n\tfor <dev@dpdk.org>; Sat, 15 Nov 2014 16:53:51 +0100 (CET)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby fmsmga102.fm.intel.com with ESMTP; 15 Nov 2014 08:03:59 -0800",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby FMSMGA003.fm.intel.com with ESMTP; 15 Nov 2014 07:54:50 -0800",
            "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id sAFG3ukg022244;\n\tSun, 16 Nov 2014 00:03:56 +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 sAFG3sSV031755; Sun, 16 Nov 2014 00:03:56 +0800",
            "(from hzhan75@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id sAFG3sCN031751; \n\tSun, 16 Nov 2014 00:03:54 +0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"4.97,862,1389772800\"; d=\"scan'208\";a=\"417015806\"",
        "From": "Helin Zhang <helin.zhang@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Sun, 16 Nov 2014 00:03:39 +0800",
        "Message-Id": "<1416067424-31699-4-git-send-email-helin.zhang@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1416067424-31699-1-git-send-email-helin.zhang@intel.com>",
        "References": "<1415283932-20724-1-git-send-email-helin.zhang@intel.com>\n\t<1416067424-31699-1-git-send-email-helin.zhang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v6 3/8] i40e: support of setting hash lookup\n\ttable size",
        "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": "Add support of setting hash lookup table size according\nto the hardawre capability.\n\nSigned-off-by: Helin Zhang <helin.zhang@intel.com>\n---\n lib/librte_ether/rte_ethdev.h     |  9 ++++++++-\n lib/librte_pmd_i40e/i40e_ethdev.c | 14 +++++++++++++-\n lib/librte_pmd_i40e/i40e_ethdev.h |  1 +\n 3 files changed, 22 insertions(+), 2 deletions(-)\n\nv5 changes:\n* Reworked the annotations of macros of RETA sizes.",
    "diff": "diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h\nindex c29525b..2c8f129 100644\n--- a/lib/librte_ether/rte_ethdev.h\n+++ b/lib/librte_ether/rte_ethdev.h\n@@ -443,9 +443,16 @@ struct rte_eth_rss_conf {\n \t\tETH_RSS_FRAG_IPV6 | \\\n \t\tETH_RSS_L2_PAYLOAD)\n \n-/* Definitions used for redirection table entry size */\n+/*\n+ * Definitions used for redirection table entry size.\n+ * Some RSS RETA sizes may not be supported by some drivers, check the\n+ * documentation or the description of relevant functions for more details.\n+ */\n #define ETH_RSS_RETA_NUM_ENTRIES 128\n #define ETH_RSS_RETA_MAX_QUEUE   16\n+#define ETH_RSS_RETA_SIZE_64  64\n+#define ETH_RSS_RETA_SIZE_128 128\n+#define ETH_RSS_RETA_SIZE_512 512\n \n /* Definitions used for VMDQ and DCB functionality */\n #define ETH_VMDQ_MAX_VLAN_FILTERS   64 /**< Maximum nb. of VMDQ vlan filters. */\ndiff --git a/lib/librte_pmd_i40e/i40e_ethdev.c b/lib/librte_pmd_i40e/i40e_ethdev.c\nindex 5074262..d90718e 100644\n--- a/lib/librte_pmd_i40e/i40e_ethdev.c\n+++ b/lib/librte_pmd_i40e/i40e_ethdev.c\n@@ -3195,7 +3195,19 @@ i40e_pf_setup(struct i40e_pf *pf)\n \n \t/* Configure filter control */\n \tmemset(&settings, 0, sizeof(settings));\n-\tsettings.hash_lut_size = I40E_HASH_LUT_SIZE_128;\n+\tif (hw->func_caps.rss_table_size == ETH_RSS_RETA_SIZE_128)\n+\t\tsettings.hash_lut_size = I40E_HASH_LUT_SIZE_128;\n+\telse if (hw->func_caps.rss_table_size == ETH_RSS_RETA_SIZE_512)\n+\t\tsettings.hash_lut_size = I40E_HASH_LUT_SIZE_512;\n+\telse {\n+\t\tPMD_DRV_LOG(ERR, \"Hash lookup table size (%u) not supported\\n\",\n+\t\t\t\t\t\thw->func_caps.rss_table_size);\n+\t\treturn I40E_ERR_PARAM;\n+\t}\n+\tPMD_DRV_LOG(INFO, \"Hardware capability of hash lookup table \"\n+\t\t\t\"size: %u\\n\", hw->func_caps.rss_table_size);\n+\tpf->hash_lut_size = hw->func_caps.rss_table_size;\n+\n \t/* Enable ethtype and macvlan filters */\n \tsettings.enable_ethtype = TRUE;\n \tsettings.enable_macvlan = TRUE;\ndiff --git a/lib/librte_pmd_i40e/i40e_ethdev.h b/lib/librte_pmd_i40e/i40e_ethdev.h\nindex 96361c2..c7ad384 100644\n--- a/lib/librte_pmd_i40e/i40e_ethdev.h\n+++ b/lib/librte_pmd_i40e/i40e_ethdev.h\n@@ -270,6 +270,7 @@ struct i40e_pf {\n \tuint16_t vmdq_nb_qps; /* The number of queue pairs of VMDq */\n \tuint16_t vf_nb_qps; /* The number of queue pairs of VF */\n \tuint16_t fdir_nb_qps; /* The number of queue pairs of Flow Director */\n+\tuint16_t hash_lut_size; /* The size of hash lookup table */\n \n \t/* store VXLAN UDP ports */\n \tuint16_t vxlan_ports[I40E_MAX_PF_UDP_OFFLOAD_PORTS];\n",
    "prefixes": [
        "dpdk-dev",
        "v6",
        "3/8"
    ]
}