get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 28305,
    "url": "https://patches.dpdk.org/api/patches/28305/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1504442189-4384-1-git-send-email-pbhagavatula@caviumnetworks.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": "<1504442189-4384-1-git-send-email-pbhagavatula@caviumnetworks.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1504442189-4384-1-git-send-email-pbhagavatula@caviumnetworks.com",
    "date": "2017-09-03T12:36:27",
    "name": "[dpdk-dev,v3,1/3] eal: introduce integer divide through reciprocal",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "3255648d591332fbaa72f0b5c067a3f806dc327b",
    "submitter": {
        "id": 768,
        "url": "https://patches.dpdk.org/api/people/768/?format=api",
        "name": "Pavan Nikhilesh",
        "email": "pbhagavatula@caviumnetworks.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1504442189-4384-1-git-send-email-pbhagavatula@caviumnetworks.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/28305/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/28305/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 3A5FF7CAF;\n\tSun,  3 Sep 2017 14:37:08 +0200 (CEST)",
            "from NAM03-BY2-obe.outbound.protection.outlook.com\n\t(mail-by2nam03on0071.outbound.protection.outlook.com [104.47.42.71])\n\tby dpdk.org (Postfix) with ESMTP id B26217CAB\n\tfor <dev@dpdk.org>; Sun,  3 Sep 2017 14:37:06 +0200 (CEST)",
            "from localhost.localdomain (103.16.71.101) by\n\tBN6PR07MB3457.namprd07.prod.outlook.com (10.161.153.20) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id\n\t15.20.13.10; Sun, 3 Sep 2017 12:37:02 +0000"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version;\n\tbh=RHV5pZ5iak36Sg3uzTaw61g6A4IBpXEZBgBQQIH5XSg=;\n\tb=mhviw20xbpOF1jP4FrCpFkeOkJQmwMMaE7tXDMoyD2ahIQIbyj/ejHBoAqgPustBb5cVTpi8yVA6XkhZyPEICLKpv/KkClzvjimlGZKcIl0uceNXNdrXXD1gP+6/65uo/03+VCHcaPOXepQA0NDSQmN7623jAGHHlT9KOeYToJI=",
        "Authentication-Results": "spf=none (sender IP is )\n\tsmtp.mailfrom=Pavan.Bhagavatula@cavium.com; ",
        "From": "Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>",
        "To": "dev@dpdk.org",
        "Cc": "cristian.dumitrescu@intel.com, stephen@networkplumber.org,\n\tPavan Nikhilesh <pbhagavatula@caviumnetworks.com>",
        "Date": "Sun,  3 Sep 2017 18:06:27 +0530",
        "Message-Id": "<1504442189-4384-1-git-send-email-pbhagavatula@caviumnetworks.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[103.16.71.101]",
        "X-ClientProxiedBy": "SG2PR0601CA0005.apcprd06.prod.outlook.com (10.170.128.15)\n\tTo BN6PR07MB3457.namprd07.prod.outlook.com (10.161.153.20)",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-Correlation-Id": "d7e0c547-9779-4dd6-7ff7-08d4f2c87b77",
        "X-Microsoft-Antispam": "UriScan:; BCL:0; PCL:0;\n\tRULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);\n\tSRVR:BN6PR07MB3457; ",
        "X-Microsoft-Exchange-Diagnostics": [
            "1; BN6PR07MB3457;\n\t3:C3EtqvOtvV42nBnPAbyhPoVJCmq7/hnW3PoeZdgE3jqT+Ykr/q61v6SO9Fjef9ZCkAMc6u+ma1vhC5CHhJqBOSWMCvNdLhj5FuWiBWtD4mGI3TxY9ykUomdFNsjVXMlmeUwN2BCKltqNkJq5SzRwf4pWqhrnSNIbMZhnxGCDJdSHkxeeS7UUHzqDCiMvpRRRhY1kJFLSa5AcDtZ8TTJDYPhbJKJyUzUKdgQl7zez8i3cOuNJNgVhbnnTTfZwLD5Q;\n\t25:SGZzGaEXP1VBnf9ICI2Vdgc9ut0hgwcYYgthpFIYthbJdIOy6lPFq1SY1MjGDZExp2myv5pOlmmxC07nHscK+pMvG01Bw3QqcIdR2zW193IgmIlETxqxISTSZioRr+rS5E+ALZWcOre/fLj20wGP1iOV7gtdyxZpESueEroKX6qh/5W6g7glioDHkNloQYlflZfg3k0P7EZ1GLi3LH8OfJ+T+NyMR5pm8lNBfCMooiOdk4EdN8cojNY2rgg+VFGEjDCNO6vOpvk8mHFO68vJAcVfmY8ToswOfeLoGY0W8tjcTx6LE+7mUb4iUZyIamJJows5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v7iXhw/XDrOE+BxNHpSvQ5JRuvVkhm/LPzVAA="
        ],
        "X-MS-TrafficTypeDiagnostic": "BN6PR07MB3457:",
        "X-Exchange-Antispam-Report-Test": "UriScan:(278428928389397);",
        "X-Microsoft-Antispam-PRVS": "<BN6PR07MB34572965A4FD32E345C52C3980900@BN6PR07MB3457.namprd07.prod.outlook.com>",
        "X-Exchange-Antispam-Report-CFA-Test": "BCL:0; PCL:0;\n\tRULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);\n\tSRVR:BN6PR07MB3457; BCL:0; PCL:0;\n\tRULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);\n\tSRVR:BN6PR07MB3457; ",
        "X-Forefront-PRVS": "041963B986",
        "X-Forefront-Antispam-Report": "SFV:NSPM;\n\tSFS:(10009020)(6009001)(6069001)(189002)(199003)(107886003)(5003940100001)(6116002)(3846002)(2906002)(189998001)(5660300001)(575784001)(110136004)(48376002)(53936002)(6512007)(97736004)(50466002)(33646002)(66066001)(2351001)(106356001)(2361001)(105586002)(36756003)(6506006)(50986999)(42186005)(47776003)(101416001)(478600001)(6486002)(25786009)(81156014)(50226002)(68736007)(8936002)(305945005)(72206003)(8676002)(81166006)(7736002)(6666003)(42882006)(6916009)(4326008)(42262002);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3457; H:localhost.localdomain;\n\tFPR:; \n\tSPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; ",
        "Received-SPF": "None (protection.outlook.com: cavium.com does not designate\n\tpermitted sender hosts)",
        "SpamDiagnosticOutput": "1:99",
        "SpamDiagnosticMetadata": "NSPM",
        "X-OriginatorOrg": "caviumnetworks.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "03 Sep 2017 12:37:02.9579\n\t(UTC)",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "Hosted",
        "X-MS-Exchange-CrossTenant-Id": "711e4ccf-2e9b-4bcf-a551-4094005b6194",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "BN6PR07MB3457",
        "Subject": "[dpdk-dev] [PATCH v3 1/3] eal: introduce integer divide through\n\treciprocal",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <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 some use cases of integer division, denominator remains constant and\nnumerator varies. It is possible to optimize division for such specific\nscenarios.\n\nThe librte_sched uses rte_reciprocal to optimize division so, moving it to\neal/common would allow other libraries and applications to use it.\n\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>\n---\n\nv3 changes:\n - fix x86_32 compilation issue\n - fix improper licence in test\n\nv2 changes:\n - fix compilation issues with .map files\n - add test cases for correctness and performance\n - remove extra licence inclusion\n - fix coding style issues\n\n lib/librte_eal/bsdapp/eal/Makefile                               | 1 +\n lib/librte_eal/bsdapp/eal/rte_eal_version.map                    | 7 +++++++\n lib/librte_eal/common/Makefile                                   | 1 +\n lib/{librte_sched => librte_eal/common/include}/rte_reciprocal.h | 6 ++++--\n lib/{librte_sched => librte_eal/common}/rte_reciprocal.c         | 6 ++++--\n lib/librte_eal/linuxapp/eal/Makefile                             | 1 +\n lib/librte_eal/linuxapp/eal/rte_eal_version.map                  | 7 +++++++\n lib/librte_sched/Makefile                                        | 2 --\n lib/librte_sched/rte_sched.c                                     | 2 +-\n 9 files changed, 26 insertions(+), 7 deletions(-)\n rename lib/{librte_sched => librte_eal/common/include}/rte_reciprocal.h (87%)\n rename lib/{librte_sched => librte_eal/common}/rte_reciprocal.c (96%)\n\n--\n2.7.4",
    "diff": "diff --git a/lib/librte_eal/bsdapp/eal/Makefile b/lib/librte_eal/bsdapp/eal/Makefile\nindex 005019e..56f9804 100644\n--- a/lib/librte_eal/bsdapp/eal/Makefile\n+++ b/lib/librte_eal/bsdapp/eal/Makefile\n@@ -88,6 +88,7 @@ SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += malloc_elem.c\n SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += malloc_heap.c\n SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += rte_keepalive.c\n SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += rte_service.c\n+SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += rte_reciprocal.c\n\n # from arch dir\n SRCS-$(CONFIG_RTE_EXEC_ENV_BSDAPP) += rte_cpuflags.c\ndiff --git a/lib/librte_eal/bsdapp/eal/rte_eal_version.map b/lib/librte_eal/bsdapp/eal/rte_eal_version.map\nindex 79e7d31..d0bda66 100644\n--- a/lib/librte_eal/bsdapp/eal/rte_eal_version.map\n+++ b/lib/librte_eal/bsdapp/eal/rte_eal_version.map\n@@ -238,3 +238,10 @@ EXPERIMENTAL {\n \trte_service_unregister;\n\n } DPDK_17.08;\n+\n+DPDK_17.11 {\n+\tglobal:\n+\n+\trte_reciprocal_value;\n+\n+} DPDK_17.08;\ndiff --git a/lib/librte_eal/common/Makefile b/lib/librte_eal/common/Makefile\nindex e8fd67a..a680b2d 100644\n--- a/lib/librte_eal/common/Makefile\n+++ b/lib/librte_eal/common/Makefile\n@@ -42,6 +42,7 @@ INC += rte_hexdump.h rte_devargs.h rte_bus.h rte_dev.h rte_vdev.h\n INC += rte_pci_dev_feature_defs.h rte_pci_dev_features.h\n INC += rte_malloc.h rte_keepalive.h rte_time.h\n INC += rte_service.h rte_service_component.h\n+INC += rte_reciprocal.h\n\n GENERIC_INC := rte_atomic.h rte_byteorder.h rte_cycles.h rte_prefetch.h\n GENERIC_INC += rte_spinlock.h rte_memcpy.h rte_cpuflags.h rte_rwlock.h\ndiff --git a/lib/librte_sched/rte_reciprocal.h b/lib/librte_eal/common/include/rte_reciprocal.h\nsimilarity index 87%\nrename from lib/librte_sched/rte_reciprocal.h\nrename to lib/librte_eal/common/include/rte_reciprocal.h\nindex 5e21f09..b6d752f 100644\n--- a/lib/librte_sched/rte_reciprocal.h\n+++ b/lib/librte_eal/common/include/rte_reciprocal.h\n@@ -29,13 +29,15 @@ struct rte_reciprocal {\n \tuint8_t sh1, sh2;\n };\n\n-static inline uint32_t rte_reciprocal_divide(uint32_t a, struct rte_reciprocal R)\n+static inline uint32_t\n+rte_reciprocal_divide(uint32_t a, struct rte_reciprocal R)\n {\n \tuint32_t t = (uint32_t)(((uint64_t)a * R.m) >> 32);\n\n \treturn (t + ((a - t) >> R.sh1)) >> R.sh2;\n }\n\n-struct rte_reciprocal rte_reciprocal_value(uint32_t d);\n+struct rte_reciprocal\n+rte_reciprocal_value(uint32_t d);\n\n #endif /* _RTE_RECIPROCAL_H_ */\ndiff --git a/lib/librte_sched/rte_reciprocal.c b/lib/librte_eal/common/rte_reciprocal.c\nsimilarity index 96%\nrename from lib/librte_sched/rte_reciprocal.c\nrename to lib/librte_eal/common/rte_reciprocal.c\nindex 652f023..7ab99b4 100644\n--- a/lib/librte_sched/rte_reciprocal.c\n+++ b/lib/librte_eal/common/rte_reciprocal.c\n@@ -41,7 +41,8 @@\n /* find largest set bit.\n  * portable and slow but does not matter for this usage.\n  */\n-static inline int fls(uint32_t x)\n+static inline int\n+fls(uint32_t x)\n {\n \tint b;\n\n@@ -53,7 +54,8 @@ static inline int fls(uint32_t x)\n \treturn 0;\n }\n\n-struct rte_reciprocal rte_reciprocal_value(uint32_t d)\n+struct rte_reciprocal\n+rte_reciprocal_value(uint32_t d)\n {\n \tstruct rte_reciprocal R;\n \tuint64_t m;\ndiff --git a/lib/librte_eal/linuxapp/eal/Makefile b/lib/librte_eal/linuxapp/eal/Makefile\nindex 90bca4d..98f3b8e 100644\n--- a/lib/librte_eal/linuxapp/eal/Makefile\n+++ b/lib/librte_eal/linuxapp/eal/Makefile\n@@ -100,6 +100,7 @@ SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += malloc_elem.c\n SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += malloc_heap.c\n SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += rte_keepalive.c\n SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += rte_service.c\n+SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += rte_reciprocal.c\n\n # from arch dir\n SRCS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += rte_cpuflags.c\ndiff --git a/lib/librte_eal/linuxapp/eal/rte_eal_version.map b/lib/librte_eal/linuxapp/eal/rte_eal_version.map\nindex 468c706..65117cb 100644\n--- a/lib/librte_eal/linuxapp/eal/rte_eal_version.map\n+++ b/lib/librte_eal/linuxapp/eal/rte_eal_version.map\n@@ -243,3 +243,10 @@ EXPERIMENTAL {\n \trte_service_unregister;\n\n } DPDK_17.08;\n+\n+DPDK_17.11 {\n+\tglobal:\n+\n+\trte_reciprocal_value;\n+\n+} DPDK_17.08;\ndiff --git a/lib/librte_sched/Makefile b/lib/librte_sched/Makefile\nindex 18274e7..569656b 100644\n--- a/lib/librte_sched/Makefile\n+++ b/lib/librte_sched/Makefile\n@@ -52,10 +52,8 @@ LIBABIVER := 1\n # all source are stored in SRCS-y\n #\n SRCS-$(CONFIG_RTE_LIBRTE_SCHED) += rte_sched.c rte_red.c rte_approx.c\n-SRCS-$(CONFIG_RTE_LIBRTE_SCHED) += rte_reciprocal.c\n\n # install includes\n SYMLINK-$(CONFIG_RTE_LIBRTE_SCHED)-include := rte_sched.h rte_bitmap.h rte_sched_common.h rte_red.h rte_approx.h\n-SYMLINK-$(CONFIG_RTE_LIBRTE_SCHED)-include += rte_reciprocal.h\n\n include $(RTE_SDK)/mk/rte.lib.mk\ndiff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c\nindex b7cba11..3b8ccaa 100644\n--- a/lib/librte_sched/rte_sched.c\n+++ b/lib/librte_sched/rte_sched.c\n@@ -42,12 +42,12 @@\n #include <rte_prefetch.h>\n #include <rte_branch_prediction.h>\n #include <rte_mbuf.h>\n+#include <rte_reciprocal.h>\n\n #include \"rte_sched.h\"\n #include \"rte_bitmap.h\"\n #include \"rte_sched_common.h\"\n #include \"rte_approx.h\"\n-#include \"rte_reciprocal.h\"\n\n #ifdef __INTEL_COMPILER\n #pragma warning(disable:2259) /* conversion may lose significant bits */\n",
    "prefixes": [
        "dpdk-dev",
        "v3",
        "1/3"
    ]
}