Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/129368/?format=api
https://patches.dpdk.org/api/patches/129368/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230707050701.21433-1-yong.liu@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": "<20230707050701.21433-1-yong.liu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230707050701.21433-1-yong.liu@intel.com", "date": "2023-07-07T05:07:01", "name": "eal: allow both allow and block options coexistence", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "a3ac2fcccfa22da79f01d81fcdae1721fa46fdb0", "submitter": { "id": 17, "url": "https://patches.dpdk.org/api/people/17/?format=api", "name": "Marvin Liu", "email": "yong.liu@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/20230707050701.21433-1-yong.liu@intel.com/mbox/", "series": [ { "id": 28871, "url": "https://patches.dpdk.org/api/series/28871/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=28871", "date": "2023-07-07T05:07:01", "name": "eal: allow both allow and block options coexistence", "version": 1, "mbox": "https://patches.dpdk.org/series/28871/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/129368/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/129368/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 E004042DF2;\n\tFri, 7 Jul 2023 07:16:21 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B4331406B5;\n\tFri, 7 Jul 2023 07:16:21 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id 5314040685\n for <dev@dpdk.org>; Fri, 7 Jul 2023 07:16:20 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 06 Jul 2023 22:16:19 -0700", "from npg-dpdk-virtual-marvin.sh.intel.com ([10.67.119.3])\n by orsmga002.jf.intel.com with ESMTP; 06 Jul 2023 22:16:18 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1688706980; x=1720242980;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=Uqbul4lBj6Zu8qpvgOW0m9XzGw04eMNCgX2GN4I3cck=;\n b=Lo6HGfWsZOnZDcdiOtYzZQZlsWf2vrmgvIMzgPRxi4RYxdg/bDT0qd0b\n 5qOnOHw8E8m0vwTFJeqe4qV9zm1ESzPuG9AD/hRbmmrz1Kv6u8KnLyKpK\n hB+1roMuxICwafcO8j1ynD7Ce2RCmbY1gzY0CK4xbL8pAomZpQ0+xNM7W\n uSiEkyUsBTErwIwDuhcF4/iJjkpQ02rL8W56NdcVP0scpjXUFl1fiVqFx\n o9Ui3pJMgfWNhy6Dg43HTbA8D4+gphw9QQLUPGRjrG27yG7UoBmxPx8JF\n /hRXGAM6CG7Y3oUZcgg9AWeH0mljnRjal9RZ9BuA8RrEDyRlx3b8YO3kD A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10763\"; a=\"353648778\"", "E=Sophos;i=\"6.01,187,1684825200\"; d=\"scan'208\";a=\"353648778\"", "E=McAfee;i=\"6600,9927,10763\"; a=\"719832041\"", "E=Sophos;i=\"6.01,187,1684825200\"; d=\"scan'208\";a=\"719832041\"" ], "X-ExtLoop1": "1", "From": "Marvin Liu <yong.liu@intel.com>", "To": "thomas@monjalon.net,\n\tdev@dpdk.org", "Cc": "Marvin Liu <yong.liu@intel.com>", "Subject": "[PATCH] eal: allow both allow and block options coexistence", "Date": "Fri, 7 Jul 2023 13:07:01 +0800", "Message-Id": "<20230707050701.21433-1-yong.liu@intel.com>", "X-Mailer": "git-send-email 2.24.0.rc1", "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": "Currently, all buses use the same eal allow and block options. Need to\nallow both allow and block options for different buses to coexist.\nIt wouldn't be a problem for pci bus if both allow and block options\nwere present. When the first option occurs, the scan mode for pci bus is\nset.\n\nFor example:\n --allow 0000:05:00.0 --block wq0.0\n only pci device 0000:05:00.0 will be scanned\n all devices except wq0.0 on dsa bus will be scanned\n --allow 0000:05:00.0 --block 0000:05:00.1\n block option will be ignored\n --block 0000:05:00.1 --allow 0000:05:00.0\n allow option will be ignored\n\nSigned-off-by: Marvin Liu <yong.liu@intel.com>\n---\n .mailmap | 2 +-\n lib/eal/common/eal_common_options.c | 14 --------------\n 2 files changed, 1 insertion(+), 15 deletions(-)", "diff": "diff --git a/.mailmap b/.mailmap\nindex 0443e461a9..d256696485 100644\n--- a/.mailmap\n+++ b/.mailmap\n@@ -1548,7 +1548,7 @@ Yogesh Jangra <yogesh.jangra@intel.com>\n Yogev Chaimovich <yogev@cgstowernetworks.com>\n Yongjie Gu <yongjiex.gu@intel.com>\n Yongji Xie <xieyongji@baidu.com>\n-Yong Liu <yong.liu@intel.com>\n+Marvin Liu <yong.liu@intel.com>\n Yongping Zhang <yongping.zhang@broadcom.com>\n Yongseok Koh <yskoh@mellanox.com>\n Yong Wang <wang.yong19@zte.com.cn> <yongwang@vmware.com>\ndiff --git a/lib/eal/common/eal_common_options.c b/lib/eal/common/eal_common_options.c\nindex 0305933698..0d8f9c5a38 100644\n--- a/lib/eal/common/eal_common_options.c\n+++ b/lib/eal/common/eal_common_options.c\n@@ -1623,24 +1623,15 @@ int\n eal_parse_common_option(int opt, const char *optarg,\n \t\t\tstruct internal_config *conf)\n {\n-\tstatic int b_used;\n-\tstatic int a_used;\n-\n \tswitch (opt) {\n \tcase 'b':\n-\t\tif (a_used)\n-\t\t\tgoto ba_conflict;\n \t\tif (eal_option_device_add(RTE_DEVTYPE_BLOCKED, optarg) < 0)\n \t\t\treturn -1;\n-\t\tb_used = 1;\n \t\tbreak;\n \n \tcase 'a':\n-\t\tif (b_used)\n-\t\t\tgoto ba_conflict;\n \t\tif (eal_option_device_add(RTE_DEVTYPE_ALLOWED, optarg) < 0)\n \t\t\treturn -1;\n-\t\ta_used = 1;\n \t\tbreak;\n \t/* coremask */\n \tcase 'c': {\n@@ -1929,11 +1920,6 @@ eal_parse_common_option(int opt, const char *optarg,\n \t}\n \n \treturn 0;\n-\n-ba_conflict:\n-\tRTE_LOG(ERR, EAL,\n-\t\t\"Options allow (-a) and block (-b) can't be used at the same time\\n\");\n-\treturn -1;\n }\n \n static void\n", "prefixes": [] }{ "id": 129368, "url": "