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 07D76A0540; Thu, 22 Sep 2022 07:07:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D8A224067C; Thu, 22 Sep 2022 07:07:31 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 6EF3940156 for ; Thu, 22 Sep 2022 07:07:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663823249; x=1695359249; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=Ptr4NRu7c/UYy28jzx1ct6ikOKLFjGZCQJQAPmtFGJ0=; b=REVtB1vbh94TcTfJ1OOX61f9KJdpetSAJxXYRwdhtEvKZVBeJSV1akzY OXvnLm1a0vYLw+U0VxRBJjQe9JQaNeMQGoTR9DBKKb7Nhkp/LFBXTsnEI gax3kjYaf4nHfy7IZzfafGOuX90MU7kWF4ZgrB/VQa1b8Lx95TPCgq0vo Lwveog3eqzPFICseLYMagSfA0h3iXhtP28ykLnqTG/sHz4m0Q71neLDTH EfhZMXViJ2VNJvhkQYphwHlZWxjt5trcfjOAcfj8v39kkVFVHZ5jSkkIl X2vqq/WR5DF2Ve86mgXWMWtCO5E2Ozc1Qktvjwfzj5ctW3EVAoX0YSa9+ Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10477"; a="283248062" X-IronPort-AV: E=Sophos;i="5.93,335,1654585200"; d="scan'208";a="283248062" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2022 22:07:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,335,1654585200"; d="scan'208";a="619647547" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga002.jf.intel.com with ESMTP; 21 Sep 2022 22:07:27 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 21 Sep 2022 22:07:28 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 21 Sep 2022 22:07:27 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Wed, 21 Sep 2022 22:07:27 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.47) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Wed, 21 Sep 2022 22:07:26 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YpTP0CIJb+SlT0xii0H+kkrwuKdKDq3rItpuKnhhdjZ08T/Uz5R4K8ft4cqCYse2ZtaXWj1zvlWqo1gUsk93gI8MQ6Do0HhHHRDRZXskL/N3x0GHAAta6RGPyPCHi4qVXl+/WJQp6eb8w6elTTkNmVCaklQZ7x6Mi03vnPlHRS/X9BVlal5R6VQ/FT9DONb+vtoiOP0ZBVOsi6c95dUVTGSow/rPaVeAKu3e9tZ36S0+/HyrQg/GMM8XLNqUPkqZXg+bFffKCOulwyNaZmnVlAx+NriNcouCi1lSKe2PgK2buru7PbWjW4E0Q+lTPO/3SG3hchgm7otS0NMBfYJGvA== 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=bbWAxa8UxSF+udigG/Sk+RDziw+IxI+gJIhb8t9Wf4Q=; b=jzVGIygu8TtMirxC2TTfyu7iDk1alGchCztpmGG/HFRdU16raOBNOb3spk8/wXrG9HLEoIWejLGeJ9/teaphAjx+n72SBZ9+0Yj0D+pnmV3Sd9oKU8sVSEGlTGN4uFc5Wt5e46p4HU46QqZ9im5w+DaEgiyr+3XwHjrNQaUyjPcph4H4Yc0FDqbl7ZxGtJ5tIaWXh0G5jE83afU3BGZ38toBV+7BIfZQpG9/lzTIcLCaEG74xkgATjN6MLfOiIVML+4KRRMwJ3jWABDuZmXeCtOM161ohIyBDTl6YW/LT+rbfOTzFPNKAreImr0gwaiWtemz4sEGsuh/sOXVSG1hwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; 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 DS0PR11MB7285.namprd11.prod.outlook.com (2603:10b6:8:13d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.18; Thu, 22 Sep 2022 05:07:24 +0000 Received: from MWHPR11MB0062.namprd11.prod.outlook.com ([fe80::fcb9:27d1:21c2:2624]) by MWHPR11MB0062.namprd11.prod.outlook.com ([fe80::fcb9:27d1:21c2:2624%7]) with mapi id 15.20.5654.017; Thu, 22 Sep 2022 05:07:24 +0000 Message-ID: Date: Thu, 22 Sep 2022 10:37:13 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH V2 4/6] app/testpmd: check the validity of the port To: Huisong Li , CC: , , , References: <20220825024425.10534-1-lihuisong@huawei.com> <20220915124522.5407-1-lihuisong@huawei.com> <20220915124522.5407-5-lihuisong@huawei.com> Content-Language: en-US From: "Singh, Aman Deep" In-Reply-To: <20220915124522.5407-5-lihuisong@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN0PR01CA0010.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:4f::15) To MWHPR11MB0062.namprd11.prod.outlook.com (2603:10b6:301:67::34) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR11MB0062:EE_|DS0PR11MB7285:EE_ X-MS-Office365-Filtering-Correlation-Id: acbb4d2c-662e-4479-c8f5-08da9c5855e2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: noPYf2qZ0NhklwcL38QGs7g/MOXVemjUMWZ/x4foRPmAq0m3Se1HJ0bE2mEEJBqTeQA/KTY47EIauRHIJqifwDp3dBPeebhQCPqeITHW71FGbsZT/70nVW/KIbXuOh1mmRIsIHFB+PWMZH7z1E/3bsAUZkZ1yfTlxvQy8H2tmHjXimJ2hnc0rxUaGWzyc2FY4cL+ih/eGQqryFSX9H9CKdrAbg6/Hbu7mfZnUQrgcNL8I4Kgdws4C4i6qScPZ0w8iNNNAnMlOLyRcU60MxYPeSHM6Uw+opcLVnIA1FUCS9UynUlKINO3KnOPEVJY2LGM0agtslXROAas8b75GiMDjDhgRi4jZBo3wreSBQjksBTC4vAG5X0237cLvjB9AxT+kIzD7uAF54HJRU75I6u+hJA7TYrxXVP40K1zZh5Opsxh6slOjXPDEF9H0WZo0Hckpdy+b1DWm0YQOczKRo1j5RiQH+yxIN++CiNruQPVqFeZKp196NngbeXkFu9h05gXSP+fLO5X1nAqKkXOrwJDA13LQ/2Ly+5bSOdvFrtOO8Cr0QwIeO6bL8ahlJvXVXjrJkbc+eCxiL3QoKpknCpyvWwJdwMAoQcvbqTc5coQQcDs3OUnzN47uZjDmPXGbJ8Jl9kgZrOXsaAbJdN1unrKjNN790ZXrYqIR+mIsQ7JlI6hu5mzJG9f0JAqxNkxRCJMxxc6Fi+VKFeu4e0KSMiFtCY/16j02X6jaQ3BLNENrnJJbrWBldTN/eXKvdYJcmYxLzkMNxsFU1VF1lzesvlGZ9fPn8DCEK4hlUpmZJix97w= 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:(13230022)(376002)(396003)(346002)(366004)(136003)(39860400002)(451199015)(41300700001)(26005)(6512007)(478600001)(6666004)(66946007)(53546011)(6506007)(316002)(6486002)(82960400001)(8676002)(31696002)(86362001)(2616005)(186003)(558084003)(38100700002)(4326008)(5660300002)(8936002)(2906002)(66556008)(36756003)(66476007)(31686004)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TVBDTnNIekxLYTNSSzJsWUN4MGE5bHBNQXY5ZzN2V2htMmtDVk5yMFcxMmNE?= =?utf-8?B?QmRGaDNTZ2YyejFZSjNKdnEzb1hBazQ5TjZNVnIzbHlTQ09palk1UFVla1lP?= =?utf-8?B?NVh6WkhrcFA3b3htNHc2bHY0Tlo5OGZOREMzcmFUYm90Z2Y4dkVBVDZHT0k0?= =?utf-8?B?R2R3YytqczZlMkpLN25sVVV3RmJVOUdEYmxDc0hKemR4QnNWWktGODk0SH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OTN0Q0REOSt1eFVzbTFtdWJyZDRoWFk3ampudGZvOEhSYTVoU3FI?= =?utf-8?B?SVJLMW12Um05QnJsRzdyOXRUOXBOTHdKYXh1WFdpNlZGc2NMWVJjd0FtM2xU?= =?utf-8?B?c0F3djV0TmJiS0ljSlo3NGR5azNrMWxUZDNhWmFGUWhINTRvQ05pZjZtS0w5?= =?utf-8?B?VlE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: acbb4d2c-662e-4479-c8f5-08da9c5855e2 X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB0062.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2022 05:07:24.4733 (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: pQcJTIXN1ZI67z2/NmA1J8DI4jroeZH67eewZKnK2fJMbQg2pCAkMaKN8sEwWdMsCrhR3Vl9JAOAakU8Lu97c9HjqaciQcOJUMCKW690070= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB7285 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 On 9/15/2022 6:15 PM, Huisong Li wrote: > This patch checks the validity of port id for all events in > 'eth_event_callback()'. > > Signed-off-by: Huisong Li Acked-by: Aman Singh > ---