get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2459,
    "url": "https://patches.dpdk.org/api/patches/2459/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1421912219-1946-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": "<1421912219-1946-4-git-send-email-helin.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1421912219-1946-4-git-send-email-helin.zhang@intel.com",
    "date": "2015-01-22T07:36:57",
    "name": "[dpdk-dev,v9,3/5] ethdev: support of configuring hash functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "fbd3c63759b89d0b5f52579cfe2bb4d1db08a256",
    "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/1421912219-1946-4-git-send-email-helin.zhang@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/2459/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/2459/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 0AF8F5A9E;\n\tThu, 22 Jan 2015 08:37:21 +0100 (CET)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id 8889F5A9D\n\tfor <dev@dpdk.org>; Thu, 22 Jan 2015 08:37:13 +0100 (CET)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby fmsmga102.fm.intel.com with ESMTP; 21 Jan 2015 23:37:11 -0800",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby FMSMGA003.fm.intel.com with ESMTP; 21 Jan 2015 23:23:49 -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 t0M7b8Wx009302;\n\tThu, 22 Jan 2015 15:37:08 +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 t0M7b6Vn002003; Thu, 22 Jan 2015 15:37:08 +0800",
            "(from hzhan75@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t0M7b6uN001999; \n\tThu, 22 Jan 2015 15:37:06 +0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"4.97,862,1389772800\"; d=\"scan'208\";a=\"443542582\"",
        "From": "Helin Zhang <helin.zhang@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Thu, 22 Jan 2015 15:36:57 +0800",
        "Message-Id": "<1421912219-1946-4-git-send-email-helin.zhang@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1421912219-1946-1-git-send-email-helin.zhang@intel.com>",
        "References": "<1417486760-24459-1-git-send-email-helin.zhang@intel.com>\n\t<1421912219-1946-1-git-send-email-helin.zhang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v9 3/5] ethdev: support of configuring hash\n\tfunctions",
        "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": "In order to support hash filter configuration, filter type of hash\nis added, also the corresponding structures, macros and definitions\nare added.\n\nSigned-off-by: Helin Zhang <helin.zhang@intel.com>\n---\n lib/librte_ether/rte_eth_ctrl.h | 63 +++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 63 insertions(+)\n\nv9 changes:\n* Added typo fixes.\n* Splitted the patch, one is for ethdev only.",
    "diff": "diff --git a/lib/librte_ether/rte_eth_ctrl.h b/lib/librte_ether/rte_eth_ctrl.h\nindex 4b3c5fc..0ce241e 100644\n--- a/lib/librte_ether/rte_eth_ctrl.h\n+++ b/lib/librte_ether/rte_eth_ctrl.h\n@@ -55,6 +55,7 @@ enum rte_filter_type {\n \tRTE_ETH_FILTER_ETHERTYPE,\n \tRTE_ETH_FILTER_TUNNEL,\n \tRTE_ETH_FILTER_FDIR,\n+\tRTE_ETH_FILTER_HASH,\n \tRTE_ETH_FILTER_MAX\n };\n \n@@ -449,6 +450,68 @@ struct rte_eth_fdir_stats {\n \tuint32_t best_cnt;     /**< Number of filters in best effort spaces. */\n };\n \n+/**\n+ * Hash filter information types.\n+ * - RTE_ETH_HASH_FILTER_SYM_HASH_ENA_PER_PORT is for getting/setting the\n+ *   information/configuration of 'symmetric hash enable' per port.\n+ * - RTE_ETH_HASH_FILTER_GLOBAL_CONFIG is for getting/setting the global\n+ *   configurations of hash filters. Those global configurations are valid\n+ *   for all ports of the same NIC.\n+ */\n+enum rte_eth_hash_filter_info_type {\n+\tRTE_ETH_HASH_FILTER_INFO_TYPE_UNKNOWN = 0,\n+\t/** Symmetric hash enable per port */\n+\tRTE_ETH_HASH_FILTER_SYM_HASH_ENA_PER_PORT,\n+\t/** Configure globally for hash filter */\n+\tRTE_ETH_HASH_FILTER_GLOBAL_CONFIG,\n+\tRTE_ETH_HASH_FILTER_INFO_TYPE_MAX,\n+};\n+\n+/**\n+ * Hash function types.\n+ */\n+enum rte_eth_hash_function {\n+\tRTE_ETH_HASH_FUNCTION_DEFAULT = 0,\n+\tRTE_ETH_HASH_FUNCTION_TOEPLITZ, /**< Toeplitz */\n+\tRTE_ETH_HASH_FUNCTION_SIMPLE_XOR, /**< Simple XOR */\n+\tRTE_ETH_HASH_FUNCTION_MAX,\n+};\n+\n+#define UINT32_BIT (CHAR_BIT * sizeof(uint32_t))\n+#define RTE_SYM_HASH_MASK_ARRAY_SIZE \\\n+\t(RTE_ALIGN(RTE_ETH_FLOW_TYPE_MAX, UINT32_BIT)/UINT32_BIT)\n+/**\n+ * A structure used to set or get global hash function configurations which\n+ * include symmetric hash enable per flow type and hash function type.\n+ * Each bit in sym_hash_enable_mask[] indicates if the symmetric hash of the\n+ * coresponding flow type is enabled or not.\n+ * Each bit in valid_bit_mask[] indicates if the corresponding bit in\n+ * sym_hash_enable_mask[] is valid or not. For the configurations gotten, it\n+ * also means if the flow type is supported by hardware or not.\n+ */\n+struct rte_eth_hash_global_conf {\n+\tenum rte_eth_hash_function hash_func; /**< Hash function type */\n+\t/** Bit mask for symmetric hash enable per flow type */\n+\tuint32_t sym_hash_enable_mask[RTE_SYM_HASH_MASK_ARRAY_SIZE];\n+\t/** Bit mask indicates if the corresponding bit is valid */\n+\tuint32_t valid_bit_mask[RTE_SYM_HASH_MASK_ARRAY_SIZE];\n+};\n+\n+/**\n+ * A structure used to set or get hash filter information, to support filter\n+ * type of 'RTE_ETH_FILTER_HASH' and its operations.\n+ */\n+struct rte_eth_hash_filter_info {\n+\tenum rte_eth_hash_filter_info_type info_type; /**< Information type */\n+\t/** Details of hash filter information */\n+\tunion {\n+\t\t/** For RTE_ETH_HASH_FILTER_SYM_HASH_ENA_PER_PORT */\n+\t\tuint8_t enable;\n+\t\t/** Global configurations of hash filter */\n+\t\tstruct rte_eth_hash_global_conf global_conf;\n+\t} info;\n+};\n+\n #ifdef __cplusplus\n }\n #endif\n",
    "prefixes": [
        "dpdk-dev",
        "v9",
        "3/5"
    ]
}