Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/119169/?format=api
http://patches.dpdk.org/api/patches/119169/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20221026194613.1008232-3-john.miller@atomicrules.com/", "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": "<20221026194613.1008232-3-john.miller@atomicrules.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20221026194613.1008232-3-john.miller@atomicrules.com", "date": "2022-10-26T19:46:02", "name": "[03/14] common/ark: move common files to common subdirectory", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "f71256c976c4973de732e4a894bc30e031304f3e", "submitter": { "id": 719, "url": "http://patches.dpdk.org/api/people/719/?format=api", "name": "John Miller", "email": "john.miller@atomicrules.com" }, "delegate": { "id": 2642, "url": "http://patches.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20221026194613.1008232-3-john.miller@atomicrules.com/mbox/", "series": [ { "id": 25445, "url": "http://patches.dpdk.org/api/series/25445/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=25445", "date": "2022-10-26T19:46:00", "name": "[01/14] doc/guides/bbdevs: add ark baseband device documentation", "version": 1, "mbox": "http://patches.dpdk.org/series/25445/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/119169/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/119169/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 75328A04FD;\n\tWed, 26 Oct 2022 21:46:43 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 84A7042836;\n\tWed, 26 Oct 2022 21:46:37 +0200 (CEST)", "from mail-io1-f44.google.com (mail-io1-f44.google.com\n [209.85.166.44]) by mails.dpdk.org (Postfix) with ESMTP id 86F8D4281B\n for <dev@dpdk.org>; Wed, 26 Oct 2022 21:46:34 +0200 (CEST)", "by mail-io1-f44.google.com with SMTP id q75so4714713iod.7\n for <dev@dpdk.org>; Wed, 26 Oct 2022 12:46:34 -0700 (PDT)", "from john-System-Product-Name.tds\n (h64-35-205-155.cntcnh.broadband.dynamic.tds.net. [64.35.205.155])\n by smtp.googlemail.com with ESMTPSA id\n m1-20020a056e020de100b002faecf63c48sm2336169ilj.79.2022.10.26.12.46.32\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 26 Oct 2022 12:46:33 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=atomicrules-com.20210112.gappssmtp.com; s=20210112;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=1doBRfFVSwgt+ia96Mh9rhdGTfho9s28aylezOj4KTI=;\n b=ZrSmo35wdJzEJvNQHNFZxa1iOjz1kNiku91PdIXWugL4WNxiHPwJ63fFeyek7+ZeYS\n L/exGIAo4ehOIvjtoN/7OEP0JnmUYRNzHRKI28v3NfRzyOofiMu5OfxP9LsubzeybBcb\n OagdG9fErjK817vJQ88dn7DLzVQ00ciUiOCmpUhAbijs+H2lIcXlb+ZS4aLY4PgfACGJ\n x1xExeuVGTbRxDEd70S3che1cVT04Qn6ZMPVv3Aw5JkqKIoBLLCRnQGwMln9fJd8Fwcc\n Kz9I0Sp2zKEeM8xjtcCskeqPYbfB4at2U3SMaccIsYVXNvG9KjNbe0vweOlt3HI9Rfw2\n LU3w==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=1doBRfFVSwgt+ia96Mh9rhdGTfho9s28aylezOj4KTI=;\n b=k7dzRYJSu5xdOSv01N+vyr9dDv+ZR69xi91ZRQTeA5Jj5AMQRLS42G+EuxhIQCfZeo\n 4sWYCHy7z6q2tFuU4T17D733E8QA+z2cvKLVYAQL6CrA6gXpEaarIb0v/ZN5UiyhaA8X\n zFYZxTqcvwcyb/NEEKUIRXMczx6vr9NxnhemZhufiskGOcp0VnrI/HjELEvbS6CFmbXZ\n DgyqyaGUjK5OBeKemh04S20ZbYJrzT5tkuKzwtc9A4UBHQgCRXHMPfn5KimqSKP2i/H7\n /ZxDo0ATuEy3bI2/j5JUKBH9hBmTS8t526+9K2kP+WLwNl94KY/9fwjIAdWD5d37qEXJ\n y8CQ==", "X-Gm-Message-State": "ACrzQf1umxD0WsJMxf/TXm7jRtMxyEwQC2mAtuh/2GLym6GIbm/fVFSz\n M2tFJDXUL/8I93/P+iWx+ayJZw==", "X-Google-Smtp-Source": "\n AMsMyM7LjOn92zSxkyr5wsYxTUanvRP3ZLtwzfbNSypGrehPZqLQVsIM6Xwl2CTIlowHWHRbq4wjwA==", "X-Received": "by 2002:a05:6638:d11:b0:375:1ba7:bb11 with SMTP id\n q17-20020a0566380d1100b003751ba7bb11mr1593836jaj.28.1666813593951;\n Wed, 26 Oct 2022 12:46:33 -0700 (PDT)", "From": "John Miller <john.miller@atomicrules.com>", "To": "nicolas.chautru@intel.com", "Cc": "dev@dpdk.org, ed.czeck@atomicrules.com, shepard.siegel@atomicrules.com,\n John Miller <john.miller@atomicrules.com>", "Subject": "[PATCH 03/14] common/ark: move common files to common subdirectory", "Date": "Wed, 26 Oct 2022 15:46:02 -0400", "Message-Id": "<20221026194613.1008232-3-john.miller@atomicrules.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20221026194613.1008232-1-john.miller@atomicrules.com>", "References": "<20221026194613.1008232-1-john.miller@atomicrules.com>", "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": "Add common ark files to drivers/common directory in\npreparation to support Arkville baseband device.\n\nSigned-off-by: John Miller <john.miller@atomicrules.com>\n---\n drivers/common/ark/ark_common.c | 9 ++++\n drivers/common/ark/ark_common.h | 47 ++++++++++++++++\n drivers/common/ark/meson.build | 19 +++++++\n drivers/common/ark/version.map | 95 +++++++++++++++++++++++++++++++++\n 4 files changed, 170 insertions(+)\n create mode 100644 drivers/common/ark/ark_common.c\n create mode 100644 drivers/common/ark/ark_common.h\n create mode 100644 drivers/common/ark/meson.build\n create mode 100644 drivers/common/ark/version.map", "diff": "diff --git a/drivers/common/ark/ark_common.c b/drivers/common/ark/ark_common.c\nnew file mode 100644\nindex 0000000000..abc169fd14\n--- /dev/null\n+++ b/drivers/common/ark/ark_common.c\n@@ -0,0 +1,9 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright (c) 2020-2021 Atomic Rules LLC\n+ */\n+\n+#include \"ark_common.h\"\n+\n+int ark_common_logtype;\n+\n+RTE_LOG_REGISTER_DEFAULT(ark_common_logtype, NOTICE);\ndiff --git a/drivers/common/ark/ark_common.h b/drivers/common/ark/ark_common.h\nnew file mode 100644\nindex 0000000000..ba4c70f804\n--- /dev/null\n+++ b/drivers/common/ark/ark_common.h\n@@ -0,0 +1,47 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright (c) 2015-2018 Atomic Rules LLC\n+ */\n+\n+#ifndef _ARK_COMMON_H_\n+#define _ARK_COMMON_H_\n+\n+#include <inttypes.h>\n+#include <rte_log.h>\n+\n+/* system camel case definition changed to upper case */\n+#define PRIU32 PRIu32\n+#define PRIU64 PRIu64\n+\n+/* Atomic Rules vendor id */\n+#define AR_VENDOR_ID 0x1d6c\n+\n+/*\n+ * This structure is used to statically define the capabilities\n+ * of supported devices.\n+ * Capabilities:\n+ * rqpacing -\n+ * Some HW variants require that PCIe read-requests be correctly throttled.\n+ * This is called \"rqpacing\" and has to do with credit and flow control\n+ * on certain Arkville implementations.\n+ */\n+struct ark_caps {\n+\tbool rqpacing;\n+};\n+struct ark_dev_caps {\n+\tuint32_t device_id;\n+\tstruct ark_caps caps;\n+};\n+#define SET_DEV_CAPS(id, rqp) \\\n+\t{id, {.rqpacing = rqp} }\n+\n+/* Format specifiers for string data pairs */\n+#define ARK_SU32 \"\\n\\t%-20s %'20\" PRIU32\n+#define ARK_SU64 \"\\n\\t%-20s %'20\" PRIU64\n+#define ARK_SU64X \"\\n\\t%-20s %#20\" PRIx64\n+#define ARK_SPTR \"\\n\\t%-20s %20p\"\n+\n+extern int ark_common_logtype;\n+#define ARK_PMD_LOG(level, fmt, args...)\t\\\n+\trte_log(RTE_LOG_ ##level, ark_common_logtype, \"ARK_COMMON: \" fmt, ## args)\n+\n+#endif\ndiff --git a/drivers/common/ark/meson.build b/drivers/common/ark/meson.build\nnew file mode 100644\nindex 0000000000..a54acf5e3a\n--- /dev/null\n+++ b/drivers/common/ark/meson.build\n@@ -0,0 +1,19 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright 2019 Mellanox Technologies, Ltd\n+\n+if is_windows\n+ build = false\n+ reason = 'not supported on Windows'\n+ subdir_done()\n+endif\n+\n+sources += files(\n+\t'ark_ddm.c',\n+\t'ark_common.c',\n+\t'ark_mpu.c',\n+\t'ark_pktchkr.c',\n+\t'ark_pktdir.c',\n+\t'ark_pktgen.c',\n+\t'ark_rqp.c',\n+\t'ark_udm.c'\n+)\ndiff --git a/drivers/common/ark/version.map b/drivers/common/ark/version.map\nnew file mode 100644\nindex 0000000000..74d9f4b668\n--- /dev/null\n+++ b/drivers/common/ark/version.map\n@@ -0,0 +1,95 @@\n+DPDK_22 {\n+\tlocal: *;\n+};\n+\n+INTERNAL {\n+\tglobal:\n+\n+\tark_api_num_queues;\n+\tark_api_num_queues_per_port;\n+\n+\tark_ddm_dump_stats;\n+\tark_ddm_queue_byte_count;\n+\tark_ddm_queue_pkt_count;\n+\tark_ddm_queue_reset_stats;\n+\tark_ddm_stats_reset;\n+\tark_ddm_verify;\n+\n+\tark_mpu_configure;\n+\tark_mpu_dump;\n+\tark_mpu_dump_setup;\n+\tark_mpu_reset;\n+\tark_mpu_start;\n+\tark_mpu_stop;\n+\tark_mpu_verify;\n+\n+\tark_pktchkr_dump_stats;\n+\tark_pktchkr_get_pkts_sent;\n+\tark_pktchkr_init;\n+\tark_pktchkr_is_running;\n+\tark_pktchkr_parse;\n+\tark_pktchkr_run;\n+\tark_pktchkr_set_dst_mac_addr;\n+\tark_pktchkr_set_eth_type;\n+\tark_pktchkr_set_hdr_dW;\n+\tark_pktchkr_set_num_pkts;\n+\tark_pktchkr_set_payload_byte;\n+\tark_pktchkr_set_pkt_size_incr;\n+\tark_pktchkr_set_pkt_size_max;\n+\tark_pktchkr_set_pkt_size_min;\n+\tark_pktchkr_set_src_mac_addr;\n+\tark_pktchkr_setup;\n+\tark_pktchkr_stop;\n+\tark_pktchkr_stopped;\n+\tark_pktchkr_uninit;\n+\tark_pktchkr_wait_done;\n+\tark_pktdir_init;\n+\tark_pktdir_setup;\n+\tark_pktdir_stall_cnt;\n+\tark_pktdir_status;\n+\tark_pktdir_uninit;\n+\n+\tark_pktgen_get_pkts_sent;\n+\tark_pktgen_init;\n+\tark_pktgen_is_gen_forever;\n+\tark_pktgen_is_running;\n+\tark_pktgen_parse;\n+\tark_pktgen_pause;\n+\tark_pktgen_paused;\n+\tark_pktgen_reset;\n+\tark_pktgen_run;\n+\tark_pktgen_set_dst_mac_addr;\n+\tark_pktgen_set_eth_type;\n+\tark_pktgen_set_hdr_dW;\n+\tark_pktgen_set_num_pkts;\n+\tark_pktgen_set_payload_byte;\n+\tark_pktgen_set_pkt_size_incr;\n+\tark_pktgen_set_pkt_size_max;\n+\tark_pktgen_set_pkt_size_min;\n+\tark_pktgen_set_pkt_spacing;\n+\tark_pktgen_set_src_mac_addr;\n+\tark_pktgen_set_start_offset;\n+\tark_pktgen_setup;\n+\tark_pktgen_tx_done;\n+\tark_pktgen_uninit;\n+\tark_pktgen_wait_done;\n+\n+\tark_rqp_dump;\n+\tark_rqp_lasped;\n+\tark_rqp_stats_reset;\n+\n+\tark_udm_bytes;\n+\tark_udm_configure;\n+\tark_udm_dropped;\n+\tark_udm_dump_queue_stats;\n+\tark_udm_dump_setup;\n+\tark_udm_dump_stats;\n+\tark_udm_packets;\n+\tark_udm_queue_enable;\n+\tark_udm_queue_stats_reset;\n+\tark_udm_verify;\n+\tark_udm_write_addr;\n+\tark_pktgen_delay_start;\n+\n+\tlocal: *;\n+};\n", "prefixes": [ "03/14" ] }{ "id": 119169, "url": "