Cover Detail
Show a cover letter.
GET /api/covers/133/?format=api
https://patches.dpdk.org/api/covers/133/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/cover/20230913114351.1940459-1-thomas@monjalon.net/", "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": "<20230913114351.1940459-1-thomas@monjalon.net>", "list_archive_url": "https://inbox.dpdk.org/dev/20230913114351.1940459-1-thomas@monjalon.net", "date": "2023-09-13T11:28:13", "name": "[v3,00/11] rework thread management", "submitter": { "id": 685, "url": "https://patches.dpdk.org/api/people/685/?format=api", "name": "Thomas Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/cover/20230913114351.1940459-1-thomas@monjalon.net/mbox/", "series": [ { "id": 29494, "url": "https://patches.dpdk.org/api/series/29494/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=29494", "date": "2023-09-13T11:28:13", "name": "rework thread management", "version": 3, "mbox": "https://patches.dpdk.org/series/29494/mbox/" } ], "comments": "https://patches.dpdk.org/api/covers/133/comments/", "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 0DFD442588;\n\tWed, 13 Sep 2023 13:45:02 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id EE64340633;\n\tWed, 13 Sep 2023 13:45:01 +0200 (CEST)", "from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com\n [64.147.123.21]) by mails.dpdk.org (Postfix) with ESMTP id C057940608\n for <dev@dpdk.org>; Wed, 13 Sep 2023 13:45:00 +0200 (CEST)", "from compute1.internal (compute1.nyi.internal [10.202.2.41])\n by mailout.west.internal (Postfix) with ESMTP id 6EA5A320096C;\n Wed, 13 Sep 2023 07:44:58 -0400 (EDT)", "from mailfrontend1 ([10.202.2.162])\n by compute1.internal (MEProxy); Wed, 13 Sep 2023 07:44:58 -0400", "by mail.messagingengine.com (Postfix) with ESMTPA; Wed,\n 13 Sep 2023 07:44:56 -0400 (EDT)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n cc:cc:content-transfer-encoding:content-type:content-type:date\n :date:from:from:in-reply-to:in-reply-to:message-id:mime-version\n :references:reply-to:sender:subject:subject:to:to; s=fm2; t=\n 1694605497; x=1694691897; bh=bpHu6NzKw3yp9FA+ayYpODYUMLWvrFQSXe+\n uRfKUTs0=; b=jaok4RdPWG6C/FP05BSZbHnYH37hUYWRqf68whr4Lmf89CvkG+E\n 0fM1mXs9sBQtM1xjqsiFDZTHeuYNjPxzxg+3Cjx3fuUyTBM5k4+M9icEA1WcSS8o\n Fb3h/Nbp64oWG960MObql97SlGkiufIfweqBKN86NfUqyuM2Kp8ba7b42prS+FZ8\n QpRFQerO71mTvWxvPYQlVHANxD2n5niXR1dxjj1B0ciz6sg0IrqNhQ7Arsc2f2pa\n 02qOeM19cFec9mHdO8yrTzO9fSFg3tEIiONL+pvsROncULA0H/FPnwwILpSaDWsi\n aEsbcUJf9uakxsWMv6vOBs48KmGUDxfk0Vw==", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n messagingengine.com; h=cc:cc:content-transfer-encoding\n :content-type:content-type:date:date:feedback-id:feedback-id\n :from:from:in-reply-to:in-reply-to:message-id:mime-version\n :references:reply-to:sender:subject:subject:to:to:x-me-proxy\n :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=\n 1694605497; x=1694691897; bh=bpHu6NzKw3yp9FA+ayYpODYUMLWvrFQSXe+\n uRfKUTs0=; b=a3Zmm4/SUHR3m+dGqTmCCyhyERYNbv7ffWlX3AGTHebE+6wlV3r\n bcTO4id/VcCxXARHfTRpgdp/VJb0FG9Z+hlYHeEUKlHBFia+vNSg2KFEJAUrj74r\n AcdH6TW5kDNmYJ0M3+tekhNniCfO8pVSo23TxNssGBQv08+kh2fPTY8n1BjDRgrC\n kYfKCc0OaK5kBpmIDl+cCHBwEgycVqLYLmFdZrfRdcphbqsvhtTlLfNMtCsOcRe2\n FQI48dt0GGUE8pv31kOvMH9jJqEcX4StKFxfHLTNG6qijBLpzxHsfUUvIpCdzG2r\n cgEaqDCkLr0sjDLBuwi5q/ER5ZrFctojT4g==" ], "X-ME-Sender": "<xms:uaABZaZIuDGaiGgEVAxjGN_OkCZRSYc17UOdAMjSQVcxmtqJZpGEww>\n <xme:uaABZdYuuvElavA9BGODn57y_0PvFJpjto-zSUYd0n5N8Ykj5bxE045Ex3V86-i8o\n E2PYcrYCn1EFn4pcA>", "X-ME-Received": "\n <xmr:uaABZU-NAuvJVROecaBgqVwK2su7iG4opeHU4vLSnGkd4tJB0PGQphYMCRRleb99wK2ijA>", "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgedviedrudeikedggeegucetufdoteggodetrfdotf\n fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen\n uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne\n cujfgurhephffvvefufffkofgjfhggtgfgsehtkeertdertdejnecuhfhrohhmpefvhhho\n mhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqne\n cuggftrfgrthhtvghrnheptdeiffffgeefteelhfekueetueduffejgfelvedtieejudek\n gfevheetheehgeejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh\n hfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth", "X-ME-Proxy": "<xmx:uaABZcqQwmYTYyy1jcwvjo3tGe6KGHwCHx7Y5WW1Qcxg9W1oDH4q1A>\n <xmx:uaABZVrmaHGU7qL0Uhb347H0_mx6AdTx2aJWF67UQnvwGSlyoyjyZA>\n <xmx:uaABZaSMfXAknEtxxxlgvXAZozwj5JuxsAINn_4PANxAawz4jQv2Sw>\n <xmx:uaABZc2kZLP2dHSagB-LlUQ2M_Km9d0PSBB10vce9CnPY-6bX5QRQA>", "Feedback-ID": "i47234305:Fastmail", "From": "Thomas Monjalon <thomas@monjalon.net>", "To": "dev@dpdk.org", "Cc": "Tyler Retzlaff <roretzla@linux.microsoft.com>,\n David Marchand <david.marchand@redhat.com>,\n Ferruh Yigit <ferruh.yigit@amd.com>", "Subject": "[PATCH v3 00/11] rework thread management", "Date": "Wed, 13 Sep 2023 13:28:13 +0200", "Message-ID": "<20230913114351.1940459-1-thomas@monjalon.net>", "X-Mailer": "git-send-email 2.42.0", "In-Reply-To": "<20230906162226.1618088-1-thomas@monjalon.net>", "References": "<20230906162226.1618088-1-thomas@monjalon.net>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "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 main effect of this patch series is to\nremove calls to pthread functions except for pthread_cancel and locks.\n\nThe function rte_thread_create_control() does not take thread attributes\nsettings anymore as it looks a useless complication of the API.\nThen the rte_thread API is made stable,\nso we can remove the old deprecated functions\nrte_thread_setname() and rte_ctrl_thread_create().\n\nSome new internal functions are added in rte_thread to make sure\nall internal thread names are prefixed with \"dpdk-\".\n\nFew other cleanups are done.\n\nFuture work about pthread portability are about:\n - cancel\n - mutex\n\n---\n\nv2 changes:\n - replace (|_) with _? in checkpatch\n - simplify thread name size doc\n - build time check of internal thread name size\n - clean control thread params struct\nv3 change:\n - fix build (wrong placement of RTE_BUILD_BUG_ON)\n note for later: never send a patch during a summit!\n\n\nThomas Monjalon (11):\n devtools: warn when adding some pthread calls\n eal: rename thread name length definition\n eal: remove attributes from control thread creation\n eal: promote thread API as stable\n eal: force prefix for internal threads\n lib: convert to internal control threads\n drivers: convert to internal control threads\n examples: convert to normal control threads\n test: convert threads creation\n eal: remove deprecated thread functions\n lib: remove pthread.h from includes\n\n app/test/process.h | 10 +-\n app/test/test_lcores.c | 9 +-\n app/test/test_link_bonding.c | 2 +\n app/test/test_pdump.c | 6 +-\n app/test/test_pdump.h | 2 +-\n app/test/test_threads.c | 2 +-\n devtools/checkpatches.sh | 16 +++\n .../prog_guide/env_abstraction_layer.rst | 2 +-\n doc/guides/rel_notes/deprecation.rst | 5 -\n doc/guides/rel_notes/release_23_11.rst | 6 +\n drivers/common/cnxk/roc_dev.c | 16 +--\n drivers/common/cnxk/roc_dev_priv.h | 2 +-\n drivers/common/cnxk/roc_nix_inl_dev.c | 9 +-\n drivers/common/cnxk/roc_nix_inl_priv.h | 2 +-\n drivers/common/cnxk/roc_platform.h | 3 +-\n drivers/common/mlx5/mlx5_common.c | 1 +\n drivers/common/mlx5/windows/mlx5_win_ext.h | 2 +\n drivers/dma/skeleton/skeleton_dmadev.c | 8 +-\n drivers/event/dlb2/pf/base/dlb2_osdep.h | 14 +-\n drivers/event/dlb2/pf/base/dlb2_resource.c | 39 +++---\n drivers/event/dlb2/pf/dlb2_main.h | 1 -\n drivers/net/ark/ark_ethdev.c | 11 +-\n drivers/net/ark/ark_pktgen.c | 8 +-\n drivers/net/ark/ark_pktgen.h | 2 +-\n drivers/net/bnxt/bnxt.h | 1 +\n drivers/net/iavf/iavf_vchnl.c | 4 +-\n drivers/net/ice/ice_dcf_parent.c | 7 +-\n drivers/net/ipn3ke/ipn3ke_representor.c | 17 ++-\n drivers/net/ixgbe/ixgbe_ethdev.c | 8 +-\n drivers/net/mlx5/mlx5.h | 2 +-\n drivers/net/mlx5/mlx5_hws_cnt.c | 42 +++---\n drivers/net/qede/base/bcm_osal.h | 1 +\n drivers/net/sfc/sfc_mae.h | 2 +-\n drivers/net/sfc/sfc_mae_counter.c | 11 +-\n drivers/net/txgbe/txgbe_ethdev.c | 6 +-\n drivers/raw/ifpga/base/opae_osdep.h | 1 +\n drivers/raw/ifpga/ifpga_rawdev.c | 19 ++-\n drivers/vdpa/ifc/ifcvf_vdpa.c | 86 ++++++------\n drivers/vdpa/mlx5/mlx5_vdpa.c | 2 +-\n drivers/vdpa/mlx5/mlx5_vdpa.h | 10 +-\n drivers/vdpa/mlx5/mlx5_vdpa_cthread.c | 70 +++-------\n drivers/vdpa/mlx5/mlx5_vdpa_event.c | 64 +++------\n drivers/vdpa/sfc/sfc_vdpa.c | 1 +\n drivers/vdpa/sfc/sfc_vdpa_ops.c | 15 +-\n drivers/vdpa/sfc/sfc_vdpa_ops.h | 3 +-\n examples/vhost/main.c | 9 +-\n examples/vhost_blk/vhost_blk.c | 21 +--\n lib/eal/common/eal_common_options.c | 1 +\n lib/eal/common/eal_common_proc.c | 15 +-\n lib/eal/common/eal_common_thread.c | 131 +++++++-----------\n lib/eal/common/eal_common_trace.c | 1 +\n lib/eal/common/malloc_mp.c | 1 +\n lib/eal/freebsd/eal.c | 2 +-\n lib/eal/freebsd/eal_alarm.c | 1 +\n lib/eal/freebsd/eal_interrupts.c | 10 +-\n lib/eal/freebsd/eal_thread.c | 9 +-\n lib/eal/include/rte_eal.h | 3 -\n lib/eal/include/rte_lcore.h | 42 ------\n lib/eal/include/rte_per_lcore.h | 2 -\n lib/eal/include/rte_thread.h | 131 +++++++++---------\n lib/eal/linux/eal.c | 2 +-\n lib/eal/linux/eal_alarm.c | 1 +\n lib/eal/linux/eal_interrupts.c | 10 +-\n lib/eal/linux/eal_thread.c | 18 +--\n lib/eal/linux/eal_timer.c | 11 +-\n lib/eal/unix/rte_thread.c | 2 +-\n lib/eal/version.map | 44 +++---\n lib/eal/windows/eal.c | 2 +-\n lib/eal/windows/eal_interrupts.c | 2 +-\n lib/eal/windows/eal_thread.c | 8 --\n lib/eal/windows/rte_thread.c | 2 +-\n lib/ethdev/ethdev_driver.c | 1 +\n lib/ethdev/ethdev_driver.h | 2 +\n lib/ethdev/rte_ethdev_core.h | 2 -\n lib/ethdev/rte_flow.c | 1 +\n lib/eventdev/rte_event_eth_rx_adapter.c | 24 ++--\n lib/vhost/fd_man.c | 6 +-\n lib/vhost/fd_man.h | 2 +-\n lib/vhost/socket.c | 23 ++-\n lib/vhost/vduse.c | 5 +-\n lib/vhost/vhost.c | 1 +\n 81 files changed, 466 insertions(+), 632 deletions(-)" }{ "id": 133, "url": "