Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/106262/?format=api
http://patches.dpdk.org/api/patches/106262/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220124000518.319850-24-stephen@networkplumber.org/", "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": "<20220124000518.319850-24-stephen@networkplumber.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20220124000518.319850-24-stephen@networkplumber.org", "date": "2022-01-24T00:04:19", "name": "[23/82] common/dpaax: simplify kernel compat macros", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "cb059a72c58d5cfef9d844676f2a532c65f43ee0", "submitter": { "id": 27, "url": "http://patches.dpdk.org/api/people/27/?format=api", "name": "Stephen Hemminger", "email": "stephen@networkplumber.org" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220124000518.319850-24-stephen@networkplumber.org/mbox/", "series": [ { "id": 21315, "url": "http://patches.dpdk.org/api/series/21315/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=21315", "date": "2022-01-24T00:03:56", "name": "remove unnecessary null checks", "version": 1, "mbox": "http://patches.dpdk.org/series/21315/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/106262/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/106262/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 37BBCA04A6;\n\tMon, 24 Jan 2022 01:07:37 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E002C42816;\n\tMon, 24 Jan 2022 01:05:49 +0100 (CET)", "from mail-pj1-f49.google.com (mail-pj1-f49.google.com\n [209.85.216.49]) by mails.dpdk.org (Postfix) with ESMTP id A3EE242827\n for <dev@dpdk.org>; Mon, 24 Jan 2022 01:05:46 +0100 (CET)", "by mail-pj1-f49.google.com with SMTP id q63so9997004pja.1\n for <dev@dpdk.org>; Sun, 23 Jan 2022 16:05:46 -0800 (PST)", "from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199])\n by smtp.gmail.com with ESMTPSA id\n ck21sm10935350pjb.51.2022.01.23.16.05.44\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 23 Jan 2022 16:05:45 -0800 (PST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20210112.gappssmtp.com; s=20210112;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=6kHUYjHGPzaVjF61Z0vG8E/yxaEieN8nyYlr8bY65z8=;\n b=BO3AqzVVc3DmnAjMeswbBoiBeYsZpyffC4GKJ+J74uWDRtpPmf7ZzfjmzG8+8/yZ/j\n bGfXmMsQpCWpIdMB/G1aR3XcnbT2y5O0Qw8k47G7OoLQzjIML99+Gw5f1Cg8DiLpXc43\n FsF73VqCPspDs51XhaTgya1ixcU8r5uR7yxrgjxGQniVpMRcrDnoRP3cixaVJjJEq3+C\n CCfrYguF0NQoretV4DsaVG10LztKxjd0tTMSlWW/afUrWMalPGI+Hj1fNpWbr+gwlRTD\n bixctduIiSZNKWdQZHFpT2dd6pOm6I38KeeiDBmIQJuO2Ce03ixze+HbMfp1XUIDR9PJ\n AF8w==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=6kHUYjHGPzaVjF61Z0vG8E/yxaEieN8nyYlr8bY65z8=;\n b=VsVXBnGDIt0ufF+VsAm/s1hMjP6OJqBmbu9Hob+eD+ZokpVb/LbVYZLJI4G2h61Mve\n QLBBn9QrADg/PLjL8/I9Va0imyJfBBDhQ5/bYnu7ErqsnwFvbE/xEzybNh+KN6aWBABF\n Y1MyQNtGa1H8NKzyRW1hpDRuZ8fXT9dv88rWg89Jy3ktxXPny2hofuUHE/rvXKhXuYPu\n 5h5M6FiBEJQXmpCcijYegOq0qWJaf7hV5X4v//dywQmnTHH7H8HJLAiHKraofkvxDAdd\n SttauWXH2tobAPhfAzXM9QW7XiEKkhvpMsPF5oN8oUDZ2V7A6B6NnCqWnJszYEPAfQAJ\n VopA==", "X-Gm-Message-State": "AOAM533jIPua5ba3Bji2+kfh09YMjEtmV5Xrcs2upGWXmPUcksWY9xXd\n 85vO76ZIZTfdOkaftpcDZy5mZoYX1MkVLw==", "X-Google-Smtp-Source": "\n ABdhPJzLSqeA7bXOyS8kwFgwbT0vCwVuifIc+i/NIdnw4QBhAar/7ZcaO8Yp2YBgFZD1bQPSlhtzUQ==", "X-Received": "by 2002:a17:90a:e17:: with SMTP id\n v23mr10785191pje.130.1642982745694;\n Sun, 23 Jan 2022 16:05:45 -0800 (PST)", "From": "Stephen Hemminger <stephen@networkplumber.org>", "To": "dev@dpdk.org", "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n Hemant Agrawal <hemant.agrawal@nxp.com>,\n Sachin Saxena <sachin.saxena@oss.nxp.com>", "Subject": "[PATCH 23/82] common/dpaax: simplify kernel compat macros", "Date": "Sun, 23 Jan 2022 16:04:19 -0800", "Message-Id": "<20220124000518.319850-24-stephen@networkplumber.org>", "X-Mailer": "git-send-email 2.30.2", "In-Reply-To": "<20220124000518.319850-1-stephen@networkplumber.org>", "References": "<20220124000518.319850-1-stephen@networkplumber.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "The compat wrapper had unnecessary NULL check and also\nthe emulation of kzalloc() should just use equivalent rte_zmalloc().\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n drivers/common/dpaax/compat.h | 11 ++---------\n 1 file changed, 2 insertions(+), 9 deletions(-)", "diff": "diff --git a/drivers/common/dpaax/compat.h b/drivers/common/dpaax/compat.h\nindex 7166f8cceb41..cbabc1588b21 100644\n--- a/drivers/common/dpaax/compat.h\n+++ b/drivers/common/dpaax/compat.h\n@@ -339,16 +339,9 @@ static inline void copy_bytes(void *dest, const void *src, size_t sz)\n \n /* Allocator stuff */\n #define kmalloc(sz, t)\trte_malloc(NULL, sz, 0)\n+#define kzalloc(sz, t) rte_zmalloc(NULL, sz, 0)\n #define vmalloc(sz)\trte_malloc(NULL, sz, 0)\n-#define kfree(p)\t{ if (p) rte_free(p); }\n-static inline void *kzalloc(size_t sz, gfp_t __foo __rte_unused)\n-{\n-\tvoid *ptr = rte_malloc(NULL, sz, 0);\n-\n-\tif (ptr)\n-\t\tmemset(ptr, 0, sz);\n-\treturn ptr;\n-}\n+#define kfree(p)\trte_free(p)\n \n static inline unsigned long get_zeroed_page(gfp_t __foo __rte_unused)\n {\n", "prefixes": [ "23/82" ] }{ "id": 106262, "url": "