Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/41072/?format=api
https://patches.dpdk.org/api/patches/41072/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1528916894-1991-1-git-send-email-dariuszx.stojaczyk@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": "<1528916894-1991-1-git-send-email-dariuszx.stojaczyk@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1528916894-1991-1-git-send-email-dariuszx.stojaczyk@intel.com", "date": "2018-06-13T19:08:14", "name": "memory: fix alignment in eal_get_virtual_area()", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "c13df433a4dd5af1acf14a0716fa835f48e4f135", "submitter": { "id": 744, "url": "https://patches.dpdk.org/api/people/744/?format=api", "name": "Stojaczyk, DariuszX", "email": "dariuszx.stojaczyk@intel.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1528916894-1991-1-git-send-email-dariuszx.stojaczyk@intel.com/mbox/", "series": [ { "id": 112, "url": "https://patches.dpdk.org/api/series/112/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=112", "date": "2018-06-13T19:08:14", "name": "memory: fix alignment in eal_get_virtual_area()", "version": 1, "mbox": "https://patches.dpdk.org/series/112/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/41072/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/41072/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 4B2671EFB6;\n\tWed, 13 Jun 2018 17:27:57 +0200 (CEST)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id AA8D01EFB2;\n\tWed, 13 Jun 2018 17:27:55 +0200 (CEST)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t13 Jun 2018 08:27:54 -0700", "from kraken.imu.intel.com (HELO Sent) ([10.217.246.153])\n\tby fmsmga001.fm.intel.com with SMTP; 13 Jun 2018 08:27:51 -0700", "by Sent (sSMTP sendmail emulation); Wed, 13 Jun 2018 21:08:44 +0200" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.51,219,1526367600\"; d=\"scan'208\";a=\"63776422\"", "From": "Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>", "To": "dev@dpdk.org,\n\tAnatoly Burakov <anatoly.burakov@intel.com>", "Cc": "Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>,\n\tstable@dpdk.org", "Date": "Wed, 13 Jun 2018 21:08:14 +0200", "Message-Id": "<1528916894-1991-1-git-send-email-dariuszx.stojaczyk@intel.com>", "X-Mailer": "git-send-email 2.7.4", "Subject": "[dpdk-dev] [PATCH] memory: fix alignment in eal_get_virtual_area()", "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://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": "<https://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": "Although the alignment mechanism works as intended, the\n`no_align` bool flag was set incorrectly. We were aligning\nbuffers that didn't need extra alignment, and weren't\naligning ones that really needed it.\n\nFixes: b7cc54187ea4 (\"mem: move virtual area function in common directory\")\nCc: anatoly.burakov@intel.com\nCc: stable@dpdk.org\n\nSigned-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>\n---\n lib/librte_eal/common/eal_common_memory.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/lib/librte_eal/common/eal_common_memory.c b/lib/librte_eal/common/eal_common_memory.c\nindex 4f0688f..a7c89f0 100644\n--- a/lib/librte_eal/common/eal_common_memory.c\n+++ b/lib/librte_eal/common/eal_common_memory.c\n@@ -70,7 +70,7 @@ eal_get_virtual_area(void *requested_addr, size_t *size,\n \t * system page size is the same as requested page size.\n \t */\n \tno_align = (requested_addr != NULL &&\n-\t\t((uintptr_t)requested_addr & (page_sz - 1)) == 0) ||\n+\t\t((uintptr_t)requested_addr & (page_sz - 1))) ||\n \t\tpage_sz == system_page_sz;\n \n \tdo {\n", "prefixes": [] }{ "id": 41072, "url": "