From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3496F423AC; Wed, 11 Jan 2023 11:28:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 20A5540691; Wed, 11 Jan 2023 11:28:06 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2041.outbound.protection.outlook.com [40.107.237.41]) by mails.dpdk.org (Postfix) with ESMTP id 44AEB4014F for ; Wed, 11 Jan 2023 11:28:05 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DsmRjfvIQDoowwO/0WbOf9A3VVwD33qc5Idq84sqwHtmJDIhnnPeKqCefO57N5jnPlsAUtKEIczOdL1Nc4grQ0SFpkwpdP8F8tsPppN1u+Wxy2uPBiySsJ5d9pvvs/sj11/dnut8347eXVkg+4z1qwZj7cbKxstgBOvcgg63sCe0BY8rY0e7dLUe2k9YfGgx67JdM7R5IKh5SWG0Uj++OTBNTQZ7kHoMxSSEPvLJZNCLGNUbWhvwYqMeIYr0Jj1mTk7CHKrmZzeagu3tDk0dw6OgqLWhDGjip0YZHb13VT7XSDSL4fjNKYikWJKytRAXy0E6N7q6xz068VdWi0A/9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iBmZCUXyMMUhykoCRPIvm7dXGjTLip5qHdMhXcg7bbU=; b=YoVyFu2UybJcuW1JbzlDtbQ4X5+6T32UDQh7NjjNiBkMb+Ml27/EEHBS1k7bMEp8LQMSCZ6Ct1P0Ex9btu4qpTeHu/TBnNxTYrDwJnz6Q5ggGOXRDnspBuO2U7ZmaSCEuYi5jO4xUVvhocfTMoStQD67n0ACT3+V8CwQJ8oUANfjSfD54n94XgxUZ6M7JcdJKekMTCRyNTOyU6T3AIoQ2jpmA0nmS64XZGEJ8k6x3jbNp30TQWBxC+E65qRIJtMpZm3Qkz8M/cHGIyHRq1VaR37lVuYq7kJIRVOzphiaZqnFqXIhq2WNEfy4wTlSg9yyXR1bElHsFA6IoF5CB+2Zjw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iBmZCUXyMMUhykoCRPIvm7dXGjTLip5qHdMhXcg7bbU=; b=HDaLJ4jLTru1fXYcjVCB/l5XPL0vcFwafIGNLg1Ja3irZZQLw8YmMKP55BmmMOWLqluMJP1DFY3magA7WvBfGr1lj0ZksIylZlVbF/7hyLjGUlW8u4kSSf5Qyvbkd9+E1dkbSBfx0ww0/37+RDca7Z+soFXbdzEZijKcc6X5k+o= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by BN9PR12MB5289.namprd12.prod.outlook.com (2603:10b6:408:102::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13; Wed, 11 Jan 2023 10:28:03 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::4807:1f44:5e04:e05a]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::4807:1f44:5e04:e05a%9]) with mapi id 15.20.5986.018; Wed, 11 Jan 2023 10:28:03 +0000 Message-ID: Date: Wed, 11 Jan 2023 10:27:57 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH V4 0/5] app/testpmd: support mulitple process attach and detach port Content-Language: en-US To: "lihuisong (C)" , dev@dpdk.org, andrew.rybchenko@oktetlabs.ru Cc: thomas@monjalon.net, liudongdong3@huawei.com, huangdaode@huawei.com, fengchengwen@huawei.com References: <20220825024425.10534-1-lihuisong@huawei.com> <20221206092649.8287-1-lihuisong@huawei.com> <6c448463-b3f0-d128-b144-d4e93c5c11d7@amd.com> <0a87026d-770a-dd4f-4c48-fdd3c16992dd@huawei.com> From: Ferruh Yigit In-Reply-To: <0a87026d-770a-dd4f-4c48-fdd3c16992dd@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P265CA0084.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2bd::17) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|BN9PR12MB5289:EE_ X-MS-Office365-Filtering-Correlation-Id: dfaa1ce3-da99-47bf-b36f-08daf3be8541 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pibCWOoDjg44NJg9JepoBC+EGLcayvDNQ5RpWDY7T5cGSHii2drfHruIxdcU9kNntYPYRhid6cglW7ENzAxD3Zpq+qbLdLSRVBUqEMYP5LFjTSNTga3zm4V1uQOPjhWtOHpPzzr3sOaxon6dFlsDEy7q+1XF+A57BC2W4Fi24G+4VZ9XHWTCmBH65JRg6hvj2DXXePW7Js7J7+E8G1VoDNCK8Wl6UaVAuG9iBd40MzwLs0GnSaILMfhG1g/djApJX4d/vo2Rl9q5GihGX6vs62zIZ+PILYE05TMHu7WmzayIBKz5TSMYZ6zRmoad48cmif4je4ypho0cfaXCXJ/nJQkq5gJf2yrpk7yONhg7ypkcURTmkAcM8cFRMFEYunI1ea3jrMKowllV6v/db93b2ailYdCAyv/mAX4x9LW7DOBYOa3thFCZDDD4Zt9MgQZnCuSPYHId/g/WMnH/5KzV2mKgTH3qbN58Tr/hWhJsvLow/D0xsfnrghpv7OnEZLYYSKwiBBpNEJwjsp23ojcngyg4FkcPkdtjnLJSRnVCdwvgpLHv6mBAlOk0rCs+A4v0iHSs2stKtq+/x8LFM77DRtMWTXs8S2AJqpYj4A4CkuG7n8di5XIxMjh0k0PHzh8svHNRd1V733VCC2vvDyLpHuvY7AFVC5YmCZU9JWGJmrarbhNCNyLxP+EvFaxAsHjWvrjnvPvwYZ+5Fc+LiYGKLuF+v1pVAK3ncQB5Q948rt4= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(39860400002)(396003)(136003)(346002)(366004)(376002)(451199015)(6666004)(6506007)(2906002)(6512007)(8676002)(66476007)(36756003)(53546011)(5660300002)(8936002)(83380400001)(44832011)(31686004)(38100700002)(41300700001)(4326008)(478600001)(6486002)(186003)(66556008)(26005)(66946007)(86362001)(31696002)(316002)(2616005)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VmY2cWwrOVRGMk45UG83c3BHWGwrY2ZOM1VpTDlkL3ErdDBIL2xyYTZpdzNE?= =?utf-8?B?ZmJXcXBRK1pkY2UyWVZyTGNuZDFCOXNUTlpTZTdkbXFhNll4VzF2OGhZZ0Zn?= =?utf-8?B?cFlIRGs3ZTBvdllpWXlmMmNVeEcrdk1pQXhwYVQ1QjdnSVFIVU1wZFFIREtK?= =?utf-8?B?ZDNMOTJCZnFUcnJpeXYrdUYzbE1RVjd6Y1J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N0p6QzZWRFhWRGxueEllWDBQRHk1ZWRLRWxVU1dkMUFYaEhySEtOQXFR?= =?utf-8?B?eUFJamVGbUNjZTRmS0x1WFNyTERMUGZMR2dhWFpxVjBpZmg1dGsyOWNweHd1?= =?utf-8?Q?tuVhOxHw9KqYuNSbfRmY496hO?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: dfaa1ce3-da99-47bf-b36f-08daf3be8541 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2023 10:28:03.3701 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 01/CCmZhpSPdZcEoUwOMX9dgNd6v3AfRzyNOwaeba7pllE91N5VzDBpazy/NjEVp X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5289 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 1/11/2023 12:53 AM, lihuisong (C) wrote: > > 在 2023/1/11 0:51, Ferruh Yigit 写道: >> On 12/6/2022 9:26 AM, Huisong Li wrote: >>> This patchset fix some bugs and support attaching and detaching port >>> in primary and secondary. >>> >>> --- >>>   -v4: fix a misspelling. >>>   -v3: >>>     1) merge patch 1/6 and patch 2/6 into patch 1/5, and add >>> modification >>>        for other bus type. >>>     2) add a RTE_ETH_DEV_ALLOCATED state in rte_eth_dev_state to resolve >>>        the probelm in patch 2/5. >>>   -v2: resend due to CI unexplained failure. >>> >>> Huisong Li (5): >>>    drivers/bus: restore driver assignment at front of probing >>>    ethdev: fix skip valid port in probing callback >>>    app/testpmd: check the validity of the port >>>    app/testpmd: add attach and detach port for multiple process >>>    app/testpmd: stop forwarding in new or destroy event >>> >> Hi Huisong, >> >> I haven't checked the patch in detail yet, but I can see it gives some >> ABI compatibility warnings, is this expected: > This is to be expected. Because we insert a device state, > RTE_ETH_DEV_ALLOCATED, > before RTE_ETH_DEV_ATTACHED for resolving the issue patch 2/5 mentioned. > We may have to announce it. What do you think? If there is an actual ABI break, it can't go in this release, need to wait LTS release and yes needs deprecation notice in advance. But not all enum value change warnings are real break, need to investigate all warnings one by one. Need to investigate if old application & new dpdk library may cause any unexpected behavior for application. >> >> 1 function with some indirect sub-type change: >> >>    [C] 'function int dpaa_eth_eventq_attach(const rte_eth_dev*, int, u16, >> const rte_event_eth_rx_adapter_queue_conf*)' at dpaa_ethdev.c:1149:1 has >> some indirect sub-type changes: >>      parameter 1 of type 'const rte_eth_dev*' has sub-type changes: >>        in pointed to type 'const rte_eth_dev': >>          in unqualified underlying type 'struct rte_eth_dev' at >> ethdev_driver.h:50:1: >>            type size hasn't changed >>            1 data member change: >>              type of 'rte_eth_dev_state state' changed: >>                type size hasn't changed >>                1 enumerator insertion: >>                  'rte_eth_dev_state::RTE_ETH_DEV_ALLOCATED' value '1' >>                2 enumerator changes: >>                  'rte_eth_dev_state::RTE_ETH_DEV_ATTACHED' from value '1' >> to '2' at rte_ethdev.h:2000:1 >>                  'rte_eth_dev_state::RTE_ETH_DEV_REMOVED' from value '2' >> to '3' at rte_ethdev.h:2000:1 >> >> 1 function with some indirect sub-type change: >> >>    [C] 'function int rte_pmd_i40e_set_switch_dev(uint16_t, rte_eth_dev*)' >> at rte_pmd_i40e.c:3266:1 has some indirect sub-type changes: >>      parameter 2 of type 'rte_eth_dev*' has sub-type changes: >>        in pointed to type 'struct rte_eth_dev' at ethdev_driver.h:50:1: >>          type size hasn't changed >>          1 data member change: >>            type of 'rte_eth_dev_state state' changed: >>              type size hasn't changed >>              1 enumerator insertion: >>                'rte_eth_dev_state::RTE_ETH_DEV_ALLOCATED' value '1' >>              2 enumerator changes: >>                'rte_eth_dev_state::RTE_ETH_DEV_ATTACHED' from value '1' >> to '2' at rte_ethdev.h:2000:1 >>                'rte_eth_dev_state::RTE_ETH_DEV_REMOVED' from value '2' to >> '3' at rte_ethdev.h:2000:1 >> >> 1 function with some indirect sub-type change: >> >>    [C] 'function rte_eth_dev* rte_eth_dev_allocate(const char*)' at >> ethdev_driver.c:72:1 has some indirect sub-type changes: >>      return type changed: >>        in pointed to type 'struct rte_eth_dev' at ethdev_driver.h:50:1: >>          type size hasn't changed >>          1 data member change: >>            type of 'rte_eth_dev_state state' changed: >>              type size hasn't changed >>              1 enumerator insertion: >>                'rte_eth_dev_state::RTE_ETH_DEV_ALLOCATED' value '1' >>              2 enumerator changes: >>                'rte_eth_dev_state::RTE_ETH_DEV_ATTACHED' from value '1' >> to '2' at rte_ethdev.h:2000:1 >>                'rte_eth_dev_state::RTE_ETH_DEV_REMOVED' from value '2' to >> '3' at rte_ethdev.h:2000:1 >> >> ... there are more warnings for same issue ... >> >> .