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 E5944A00C2; Wed, 23 Feb 2022 19:59:52 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F9DF40DF6; Wed, 23 Feb 2022 19:59:52 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 53CE54067B; Wed, 23 Feb 2022 19:59:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645642791; x=1677178791; h=message-id:date:to:cc:references:from:subject: in-reply-to:content-transfer-encoding:mime-version; bh=JayTxVqcTVDREiMnvToDjY/jvTxei46J3mZbVqTT3Qk=; b=hTPg42fvhxVnJ36uHeA3wSdi1RnxYvZcMNzz9/1nvitBYWeWpW27Tmgb eIS/+Rn5NWglPVWwbzUsnI4RiBtXkrrGCyNp0UkeExk9WWSYWpbNiRTqR UXYPd3Cj2+p30ypTnb6fQzDcYRsCpVZy+xbo18bKthR7XXt+uPT60m/PY bfmlOSmej+Pyg+V9m/59ZLg3nivmyR4CGO2d6BCV61+WTNGpqeRAdnfyj 2vVG8UCBgWrH1jz6pXU1n8tgGYgB4vu9PbYjL57WuZhwLOeLYl4u1E8Wy TM1TtqYoK3fIxWq1Ito9eROwRQJdG8B3UoclIuFLGl3O2qO20JN2DVUzG w==; X-IronPort-AV: E=McAfee;i="6200,9189,10267"; a="250884922" X-IronPort-AV: E=Sophos;i="5.88,391,1635231600"; d="scan'208";a="250884922" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2022 10:59:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,391,1635231600"; d="scan'208";a="548397174" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga008.jf.intel.com with ESMTP; 23 Feb 2022 10:59:49 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) 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.21; Wed, 23 Feb 2022 10:59:49 -0800 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Wed, 23 Feb 2022 10:59:49 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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.2308.21 via Frontend Transport; Wed, 23 Feb 2022 10:59:49 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.177) 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.2308.20; Wed, 23 Feb 2022 10:59:48 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Lp/m5xS30BYGufLfwlsJKHN/lfoE/BXjBcfhWbhXkIhsx2rF3EZsfMTxNuE3D5a1dMxoZvu5w8MtFxWYpa5kYvYL80S/2drZVkeWmbflkEmrLbXwZrQ//NXv2pF+UkDUr/59IQM8hTYtq38kZaCvicwczcTMUtG1wbm/QexC0bcq1YZmP97Ga92ZnviWoJGQ05MdjxHfp4oJ+oWM14L1O5/DIzN82gQaXPmpU9A4DYI6plStHozqf2HFBdFc1QuSUg97QNO+mkqOlSV2hcjagTX2WdWy3SUcdEKl78WlJ6ym6naC2JN6AI4roPcsWjxilHsXkg4TUOu1FVRf3ihYNQ== 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=MA0B8zrGLllX3P/kPG4X68jX6uhpi2hrLBsBMFkad88=; b=SCB9PDKKPD4jZzPrAkD/d7JoMv8irhrGBm5tlR8c07bu+sZtBP/G4Tp2UU13VHZRjcT/daoyFoTkRpDWbQa5TozSlOI0+0yFoO8Ix+VPjgj2xiUoHlJzXEBRYrpHcP6qHJx5ykKNIaiRKQeWeCpm60Lw6qeyOMrFsShHQwIEFCiorAhUUe/zcTtx3IFlBLbfoheSK44O5rrCpakyZDrjDesouGxSky8CrvgHpKv7YPlWGKpW7uyDLCx2ffPx8WAaoPMfU5VGtmZe3JKHumyvWT68jnjEqJu4/m0lrsEwxaponTud8MSizaT9FEpTu4ozatuD5ohV4ec/bRL7gAMEjQ== 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 PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by DM6PR11MB3802.namprd11.prod.outlook.com (2603:10b6:5:143::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.17; Wed, 23 Feb 2022 18:59:47 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::98be:5506:5020:28a2]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::98be:5506:5020:28a2%4]) with mapi id 15.20.4995.027; Wed, 23 Feb 2022 18:59:46 +0000 Message-ID: Date: Wed, 23 Feb 2022 18:59:41 +0000 Content-Language: en-US To: Raslan Darawsheh , Shun Hao , "Matan Azrad" , Slava Ovsiienko , Ori Kam , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , "Xueming(Steven) Li" CC: dpdk-dev , "stable@dpdk.org" References: <20220222150717.12127-1-shunh@nvidia.com> From: Ferruh Yigit Subject: Re: [PATCH v1] drivers: fix incorrect E-Switch manager vport ID X-User: ferruhy In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0299.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:196::16) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 11dba44a-3f2a-431f-e856-08d9f6fea8f3 X-MS-TrafficTypeDiagnostic: DM6PR11MB3802:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zO8fHApuLoOtatosKqURWZk02nylx8jq9JoVCMB3jvOjj/80ksStb1sVgMD0yb4Tq5Slj2xv8FK0TqpE6/A+sZI+/pGogv0RTdTfG/9wh87/qPrW1WOajV6K29OnLtXsbgDieKA6WgZKM1dAJKF6JRP9R8d6rCQ9boXE7E/quI3awev47XoK7FfBvJ74BiXMZ3TtdrEBLOQ+ykKwMlbDokpcUxOGeeB9DRl2gaqlD4SIGQaHIFKR8F+RZP2l6FlWSnCdlYRRfIci0YXah3bFFL786NVo8YyjzbXAcsUck95uWvkAHYmVkaH9N8wcSvEfWaGU1jKKiU6xlpX2F8K9PbE//KD6Q/UJpqjM2Oz+mZfGNo6YdMzRqpZVXPDq69q7t79XgjC3cV9tc3lqv2WOOs4A9zzIe4mLfbhtHbakWwrCayRHHPKW4faSLO3QdNqkSLZ39A9neIen5aBk4VV5FAL+nakCVFvPENCI6gNmoz+P/5GiHqabhyz53raVxYLp6sjhN78YKckbjv0Tjh/MeKLOwG/A1H2V+cdkbYMY1A4PPlbZ7ST40oEd7Tc+YXtQ78ERJ8WXWFpT30dczeVEzroCYbzwQs8EUWsezkr3ZEh8KDn/4HvE2Qv4X+29BMnUPCL4Yi8Wz2rHVGP3EUK1dbYIyJEUyf2JBMSz9MVx6bk1S0YDVLTBAzYuAWz56n6Dhvte62V02lLDkMP6EgWKaw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(53546011)(31686004)(36756003)(2616005)(186003)(26005)(5660300002)(6506007)(8936002)(6666004)(6512007)(2906002)(44832011)(83380400001)(508600001)(6486002)(4326008)(66946007)(82960400001)(66476007)(66556008)(86362001)(38100700002)(110136005)(54906003)(31696002)(316002)(8676002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UkJLZGJncWc0eldQVnRNZzE1T3FOVWdnTERIMTFCUEpXZzVYQVBDRm5oZnlm?= =?utf-8?B?Y0RzTE5MWm45MGJXTFlYWGpTMGdBbkNFcUVzN1EvM3NFWVA5YmIzQmtrVVJY?= =?utf-8?B?SkhwOTZCa1lRWFErcGhqWGRweldZVzlpTStCTE5xbmwxU1NJZFFENGpSUjRj?= =?utf-8?B?K3MrRCtvdyt4bE1ZQnF5bjJsVGt4dWpJUGhjQlpjMDk5OTIzcUZLMlY2TTdK?= =?utf-8?B?VmNYVmpzeVV0bzQrL1IwRzhFU3R1NGEveUhHbmFSZzBUS2VhMkVnOW04MUl6?= =?utf-8?B?bU1zQnFDRFMxbWdlK2xvVmN6UHZmUWlDckRBenlQM3dDaDhieUo5NGhrMzVN?= =?utf-8?B?bWlwW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lVE?= =?utf-8?Q?geLGnexsv8QjqM8IjdzoJlg=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 11dba44a-3f2a-431f-e856-08d9f6fea8f3 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2022 18:59:46.8818 (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: pY78iwtiIfEn3DFGaVrb+cs5IvVnQEhbVceJXXjYTp2LsEdwksEsbFxj7PIysub1hK4+VygHG0y68g3SxWrw2w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3802 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 2/23/2022 2:39 PM, Raslan Darawsheh wrote: > Hi, > >> -----Original Message----- >> From: Shun Hao >> Sent: Tuesday, February 22, 2022 5:07 PM >> To: Matan Azrad ; Slava Ovsiienko >> ; orika@nvidia.com ; thomas@monjalon.net ; >> Xueming(Steven) Li >> Cc: dev@dpdk.org ; Raslan Darawsheh ; >> stable@dpdk.org >> Subject: [PATCH v1] drivers: fix incorrect E-Switch manager vport ID >> >> One of the E-Switch vports plays the special role - it is assigned as "E-Switch >> manager" and has some special exclusive rights and duties - it maintains all >> the representors, manages FDB domain flows, etc. By default, the E-Switch >> vport index was supposed to be zero on standalone NICs (regular ConnectX) >> and 0xFFFE SmartNIC (BlueField), but that was not always correct - this index >> can be assigned with any value by kernel/hypervisor. >> >> Currently the E-Switch manager vport id is supposed to be default - 0 for >> standalone NICs, and 0xFFFE for the SmartNICs, and is deduced from the >> device PCI id. >> >> To handle this and do not suggest any default values, can use DevX API to >> query E-Switch manager vport ID directly from the firmware during >> initialization, and use that value by default. If the new method is not >> provided (legacy firmware), fallback to use the PCI id approach. >> >> Fixes: a564038699f9 ("net/mlx5: support E-Switch manager egress traffic >> match") >> Cc: stable@dpdk.org >> >> Signed-off-by: Shun Hao >> Acked-by: Viacheslav Ovsiienko > > Patch applied to next-net-mlx, > Hi Raslan, Can you make a patch to add 'E-Switch' keyword to './devtools/words-case.txt', in the syntax how it suppose to be? (There are various variants of it in the commit history.)