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 3A441A00C2; Thu, 3 Feb 2022 08:06:19 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C380E4014F; Thu, 3 Feb 2022 08:06:18 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 28A1740143 for ; Thu, 3 Feb 2022 08:06:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643871977; x=1675407977; h=message-id:date:subject:to:cc:references:from: in-reply-to:mime-version; bh=CvuTlukPYSH9CEMjcdi2e4jniIvGm1+IOfz4wgOS7dQ=; b=EXSJYsdSDsHx5ZgTaUzQBTa2OYz3xVmC/0Uoq4u7+nYy9b+SdYvzSatH Dc9zdwjYUyKdaz5UPFMzKx+DKsWCI69OMB2Z/RJ+78624jKrOfOYgI7Xx aYYZxmkOh3PimUkbJBI0U9S76OK9JTPOA1PiM+fc7KJm5jRDodfSAgV/d XBJ2/vjh64K9RH6gHANeF57L9oGQXAnNf4XIt+btwaYmkACvI+cc7sW50 0zl+ohjrszBQOpM/AlETFy4UV6rIl/RQ1zWWTXYMinh14qlXfMFIfV9B3 2OEK5CtXE1+3HAJTWCJYnI0j67ZzM6RhKNcgIprOQVakw92ugnkGQrm4z w==; X-IronPort-AV: E=McAfee;i="6200,9189,10246"; a="245683888" X-IronPort-AV: E=Sophos;i="5.88,339,1635231600"; d="scan'208,217";a="245683888" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2022 23:06:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,339,1635231600"; d="scan'208,217";a="566314494" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by orsmga001.jf.intel.com with ESMTP; 02 Feb 2022 23:06:15 -0800 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Wed, 2 Feb 2022 23:06:15 -0800 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Wed, 2 Feb 2022 23:06:14 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Wed, 2 Feb 2022 23:06:14 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.174) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Wed, 2 Feb 2022 23:06:14 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jBg/RqfTV1VHdZN6DOgu2I+9LJuBJZET6qqL2XD0MgDqdX6LCVvD9KWmkGeW9rWX+rZR20xrfBFTyXKtzlw7zPHA1itKgeJbNBGsvxvsrh/RPAWH56NmsEbqwiWTQAIOuun8URdKbH9jw2ipKGz3diaJWIHQ3vvx02ftbALN7QXw8efRH9pG6k//Xp8idowuS3+DfoSJzDujM10L7bd191FpAhiuXjd70da6tIzNGpCKxGgB56Kp/Y62io0RlNBKVpMY/VTIB5ivvz3NkwkiCqsk6beJG7s/80PyR4c9Sdza1X3L2uNG88iLDtidnnbDARS1RBAxXm6iPRCWHCZzyA== 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=e4f+GNc5liNxu3XbS/G67Fc7foMA75ujGOBYsdyl+8g=; b=KdZV8mLXX0Dqb30vWq6Bj7cumJMUKJK/VUjNz8mjUCqyD2zvxUgrs+rXtQhhehiKENurinWGl1DF39UsR9B6gKNO0FWOzs2156rNAoHjMgMUenJ0WdW3O91ZTz3u+yKE3Itlvawu8x4UfTBz/KOdtREdi6QTU5+ffLQ9Y2+elPsKWcvnw4mW41UBUNCTxcDk2u9Sp98ogLZVRY1hHskDu6Ri+dZf6Ux9HkLqX6DfW5/tlt9sL7APNVwXkc8svb6F6j0Ea/w98yZsyORDTMSmbIPfXC9MgkxfcsG64RyBcziq5V7mndYAiFKKgumY/vJeFYdrTNVYP9MeAMzqXHsCAQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MWHPR11MB0062.namprd11.prod.outlook.com (2603:10b6:301:67::34) by BYAPR11MB2902.namprd11.prod.outlook.com (2603:10b6:a03:83::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Thu, 3 Feb 2022 07:06:13 +0000 Received: from MWHPR11MB0062.namprd11.prod.outlook.com ([fe80::417b:7df4:d3fb:2b0a]) by MWHPR11MB0062.namprd11.prod.outlook.com ([fe80::417b:7df4:d3fb:2b0a%3]) with mapi id 15.20.4930.020; Thu, 3 Feb 2022 07:06:13 +0000 Content-Type: multipart/alternative; boundary="------------KRk5XO0TxD2I6gyTLJ2DzGnv" Message-ID: <6d905b89-a3f1-c3d1-8127-94144574c3a3@intel.com> Date: Thu, 3 Feb 2022 12:36:04 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [dpdk-dev] [PATCH 1/3] app/testpmd: fix port status of active slave device Content-Language: en-US To: "lihuisong (C)" , "Min Hu (Connor)" , CC: , , References: <20211025063922.34066-1-humin29@huawei.com> <20211025063922.34066-2-humin29@huawei.com> From: "Singh, Aman Deep" In-Reply-To: X-ClientProxiedBy: BM1PR01CA0118.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::34) To MWHPR11MB0062.namprd11.prod.outlook.com (2603:10b6:301:67::34) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 34373672-faf5-4d91-c247-08d9e6e3a990 X-MS-TrafficTypeDiagnostic: BYAPR11MB2902:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2887; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: v3505HGI5HQBoQ3t2QlXPMNloHDPUqDexCW/dYG/qnF8wyQZgRVFJYoEx388bPHGZtgcNXb1g6CaimakwsFdlajqjJ+Rkf71bUjkes8KppfY3vmd1LearUApFPcRTLP/nDZWsWyjx1C1PHKmvcZM4NjaY32BeSKLLSn3dPJBDCm9A1zhkf9v4uTUJj3iMl84+XFXuiK/XMi4vIfvQkoSfyT8Fcj00XTFCkuG1A56qk+EawbB1X3fx0tLAvoZ9WxjRhhiTc8Cl+UiC4d4K6vNa3Ad2fL8KBNfPrQh6bBd5mRJGnTiMJti3l/N0bEH5BcxbQYTNa4a67Yqmosa1LczBFVLOTmu3wum77SUmVXr0pUL6qns+SJav0H82l3rTWEnu6Esdwi/FtCpFt9qBMvPT8jaFQQZ8Xb/lr/TfUM8VgDzAHSSnkgzCkdCwijkI+H+hKQ4fEG/efdm2+ggDZc+xULUYjmu4RaLyvXQ41Do/AMgNVz8BP6O1YLlTL39qbo9lWCIc2WDCJrbsKZnn7LfPYvK68buKspj/qE7vLTIYs//b1H01zzG+UcTD48wbgFHMyVWBGao7LrX7UN6Zve3SqeQjRrTBJd/CoZmOKScjWd6+btcBN21yA0QlJdX0HjMKu4cpk6RJyLGEOWjc0jFNmueuS6capGDWDriYwAmzAmpLSOBpAAW4KG1gDbejREyv8ppmY4VHU6uEXWMqJNSbdh84cyr/dLdOVray4AtIn8= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB0062.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(508600001)(107886003)(31696002)(38100700002)(53546011)(2616005)(36756003)(6666004)(26005)(186003)(33964004)(31686004)(6506007)(6486002)(6512007)(2906002)(5660300002)(82960400001)(66556008)(66476007)(8936002)(4326008)(66946007)(8676002)(86362001)(316002)(110136005)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RW5NUDI1TG9NbXlreG5GQXBJbUlWUFRHRFZOTFlENTlpZlZETkszS0NIa1BY?= =?utf-8?B?QTZjUUhhWG1qS1FaYWFNVXl3KzM4K0ZPbXBScG9vQ3o5UUMxTHNmYVVKRU0y?= =?utf-8?B?S1VsU01tcnhXSVVBOExrV1M1ZEJDVUFLU2UzcUpubnpwOFR2UmRkWFpMY3FC?= =?utf-8?B?aDFnRUY1TjNNWHhhZzErYUlKTUF6NVJmbitnb1FaajZWTWcrUnBKUFozV0JL?= =?utf-8?B?ejQwREs1VEpjVDd4UXVEMUZzZ1FaSFZOeW1kNUZGejVGWXQ4algzRHltRXBs?= =?utf-8?B?aUladEZ1TGdmdGpReVVOeDRxYk5abWE1T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eHVIMlJrY2xiakU1aHZXLzJ0eWl3Z3pVQkJCdXh5Y25PT2ovS05UL3lObE5G?= =?utf-8?B?QTBKWFlmcFM1ckdsWjlXMzlQblRiMFdjUmxKRkF2NVFWNUR3Vkk5TGgyYjNT?= =?utf-8?Q?htIpTXbRnDiygEZh2aJ7ue1WNjpNnRRXVph3sE1qTU=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 34373672-faf5-4d91-c247-08d9e6e3a990 X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB0062.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Feb 2022 07:06:13.0499 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hx7qGDLs/avUUVCCMK3l1QpEPB5EYQwCnvM3crbMvvIWR/JHk5TpGEKsfCOo0SaqIkfgkYyB1+NYPxENI8GHm2y2yIspmHJzhxfiAXEs/nI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB2902 X-OriginatorOrg: intel.com 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 --------------KRk5XO0TxD2I6gyTLJ2DzGnv Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit On 11/16/2021 6:50 AM, lihuisong (C) wrote: > > 在 2021/11/15 21:01, Singh, Aman Deep 写道: >> On 10/25/2021 12:09 PM, Min Hu (Connor) wrote: >>> From: Huisong Li >>> >>> Stopping a bond device also stops all active slaves under the bond >>> device. >>> If this port is bond device, we need to modify the port status of all >>> slaves from RTE_PORT_STARTED to RTE_PORT_STOPPED. >>> >>> Fixes: 0e545d3047fe ("app/testpmd: check stopping port is not in >>> bonding") >>> Cc: stable@dpdk.org >>> >>> Signed-off-by: Huisong Li >>> Signed-off-by: Min Hu (Connor) >>> --- >> Looks good to me. Acked-by: Aman Singh --------------KRk5XO0TxD2I6gyTLJ2DzGnv Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: 8bit


On 11/16/2021 6:50 AM, lihuisong (C) wrote:

在 2021/11/15 21:01, Singh, Aman Deep 写道:
On 10/25/2021 12:09 PM, Min Hu (Connor) wrote:
From: Huisong Li <lihuisong@huawei.com>

Stopping a bond device also stops all active slaves under the bond device.
If this port is bond device, we need to modify the port status of all
slaves from RTE_PORT_STARTED to RTE_PORT_STOPPED.

Fixes: 0e545d3047fe ("app/testpmd: check stopping port is not in bonding")
Cc: stable@dpdk.org

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
---

Looks good to me.
Acked-by: Aman Singh <aman.deep.singh@intel.com>

<snip>

--------------KRk5XO0TxD2I6gyTLJ2DzGnv--