Cover Detail
Show a cover letter.
GET /api/covers/67/?format=api
http://patchwork.dpdk.org/api/covers/67/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/cover/20230817042820.137957-1-okaya@kernel.org/", "project": { "id": 1, "url": "http://patchwork.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": "<20230817042820.137957-1-okaya@kernel.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20230817042820.137957-1-okaya@kernel.org", "date": "2023-08-17T04:28:11", "name": "[v5,00/10] support reinit flow", "submitter": { "id": 2903, "url": "http://patchwork.dpdk.org/api/people/2903/?format=api", "name": "Sinan Kaya", "email": "okaya@kernel.org" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/cover/20230817042820.137957-1-okaya@kernel.org/mbox/", "series": [ { "id": 29258, "url": "http://patchwork.dpdk.org/api/series/29258/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29258", "date": "2023-08-17T04:28:11", "name": "support reinit flow", "version": 5, "mbox": "http://patchwork.dpdk.org/series/29258/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/covers/67/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 E0A794308A;\n\tThu, 17 Aug 2023 06:28:25 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B27D940ED9;\n\tThu, 17 Aug 2023 06:28:25 +0200 (CEST)", "from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217])\n by mails.dpdk.org (Postfix) with ESMTP id D44A140685\n for <dev@dpdk.org>; Thu, 17 Aug 2023 06:28:24 +0200 (CEST)", "from smtp.kernel.org (relay.kernel.org [52.25.139.140])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits))\n (No client certificate requested)\n by dfw.source.kernel.org (Postfix) with ESMTPS id 4670D6223B\n for <dev@dpdk.org>; Thu, 17 Aug 2023 04:28:24 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 6320CC433C7;\n Thu, 17 Aug 2023 04:28:23 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n s=k20201202; t=1692246503;\n bh=A8XWWn/d3+DCe8TRhnbxyF516+FtuU8bJcB/m2Rt0qE=;\n h=From:To:Cc:Subject:Date:From;\n b=iW/Q20aSUHGudg6Ix6Di9y3BxJHqycA7mkNDZ1Lr7I98HV5ALBuWo4D58nbM582iK\n zvn0tn3pTV+lCdUB3F6DWZspA3WWQEXUUek3AVvnysqqpywdulT91JpAcMtjXdJFAs\n lrRrzT6Qh7lozLiR4m3HFZvS3NL9hddpUKD+NCw7TGMkKPF6a6AAPwl5QY0GH60Uba\n FXggzEiDHFKI5K6XHbu65u924d+g+sEd+gsI97JPpYmVFEmcO2mwla+VWGxarZMpRV\n dFCr19wShRobnw3+VxFjjTFZdx8BHVIUq9s7izfqzMpGik/s+5At0nfQQLdgPC5rVT\n VlPdTptI+8knQ==", "From": "okaya@kernel.org", "To": "", "Cc": "dev@dpdk.org,\n\tSinan Kaya <okaya@kernel.org>", "Subject": "[PATCH v5 00/10] support reinit flow", "Date": "Thu, 17 Aug 2023 00:28:11 -0400", "Message-Id": "<20230817042820.137957-1-okaya@kernel.org>", "X-Mailer": "git-send-email 2.25.1", "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": "From: Sinan Kaya <okaya@kernel.org>\n\nWe want to be able to call rte_eal_init() and rte_eal_cleanup()\nAPIs back to back for maintanance reasons.\n\nHere is a summary of the code we have seen so far:\n\n1. some code support getting called multiple times by keeping\na static variable.\n2. some code initializes once but never clean up after them and\ndon't have a cleanup API.\n3. some code assumes that they only get called once during the\nlifecycle of the process.\n\nMost changes in this patch center around following the #1 design\nprinciple.\n\nWhy?\n\nIt is not always ideal to reinitialize a DPDK process. Memory needs\nto be reinitialized, hugetables need to warm up etc.\n\nLimitations:\n\nThis sequence could only be done by main lcore, and never ever in a signal handler.\nDo not try and trap signals like abort, bus error, illegal instruction and try to\nuse this for recovery. It is a recipe for failure.\n\n\nChanged from\n\nv1:\nFix checkpatch warnings\n\nv2:\nrebase to most recent DPDK.\n\nv3:\npick up Stephen's \"eal: cleanup plugins data\" as a pre-requisite\npatch.\n\nv4:\nfix windows build\nrename variables to run_once where possible\nmove run_once inside the functions where possible\n\nGraham Whyte (1):\n eal: fixes for re-initialization issues\n\nSinan Kaya (8):\n tailq: skip init if already initialized\n eal_memzone: bail out on initialized\n memseg: init once\n eal_memory: skip initialization\n eal_interrupts: don't reinitialize threads\n eal: initialize worker threads once\n eal: declare the reinit via cleanup/init feature unsupported\n test: remove double registration check\n\nStephen Hemminger (1):\n eal: cleanup plugins data\n\n app/test/test_tailq.c | 5 ---\n lib/eal/common/eal_common_memory.c | 6 +++\n lib/eal/common/eal_common_memzone.c | 6 +++\n lib/eal/common/eal_common_options.c | 21 +++++++++\n lib/eal/common/eal_common_tailqs.c | 20 ++++++---\n lib/eal/common/eal_options.h | 1 +\n lib/eal/common/malloc_heap.c | 7 +++\n lib/eal/include/rte_eal.h | 5 +++\n lib/eal/linux/eal.c | 66 ++++++++++++++++-------------\n lib/eal/linux/eal_interrupts.c | 6 +++\n lib/eal/linux/eal_memory.c | 12 +++++-\n 11 files changed, 113 insertions(+), 42 deletions(-)" }{ "id": 67, "url": "