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 2B62341CBA; Fri, 17 Feb 2023 07:45:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 142A040EE1; Fri, 17 Feb 2023 07:45:41 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2073.outbound.protection.outlook.com [40.107.220.73]) by mails.dpdk.org (Postfix) with ESMTP id 6A2CC40A8B for ; Fri, 17 Feb 2023 07:45:38 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fdgf68FhZy1WE1qmZFHPZHrzQpsSk9+OpXbyuVaDU7Abopo5TL65LeHSO1FTtiCBgNOY8OPlt+PTxXVc1qMxUbtM9tmHMsEpwAD9d+XYTtxp+qP2QCnKPvxNz0Qqd7e7WkoaO14rT6oY3b2gZj1XHhlo5DcrPyrsayR+lFAPC4HwUp7rZLuExyqt38lhA/2THXNScIhB+ev8R3p6DLzUbK8958mD1Mgz/ssetvzqUm4rrDQW/8VyikTZLQ+cc37Yq75LDfl7NQi7gAla3ke7lNw0ROhdsQDDRjNmA3Q1SfkfXlWHTHXWVdhmMRpSp0WghS2uaogYyfnthlkTtAbTFA== 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=i1GFQavGhSbiz+qyv2L7I2TbdQS7jab+qOFahjl6x1Q=; b=D3cXIG1dwXnLw/8CyQJuQsGxthQOiuw9VaIVrfOzze+NdYXyj+FYTWa+mQxIJ6P25/hH9xMUWaBXBAx+BMqqs64CTRXnLZrsB4xMblCWf8dsmN0TxQlbAeaLXx7fT0hknXCWmjnXULIC+DaMWjieEyHUbr7j7S0mP8/OrqtwYpIN7trmedNKQktAFHvAP3vI2jXZPn60rXhlddbgxz/+Xs5ZTVbeLAW33iXtPaFZyhsShRzo8uYbb52a9TQFP3h6/jzHhSn/dLwqztK6lOVfTODLbVegTN/K5qKTBFS1MGpHfsswHZlwwyHFbqJg1FYl1EX/KYwcRgBveDzk371R6g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i1GFQavGhSbiz+qyv2L7I2TbdQS7jab+qOFahjl6x1Q=; b=qUW5Cef4ohv0Bs6WYeEOLHAxZC5xbMS0BqIo+DI9Ug/uIvQSLK+lEOcXSFllYjtVeivlWOeAuU1WZlcS/16fHsAUpy1exlRUi3L8hnhROcjvm277rV5jf57kAa6xxa5AsHmABcek5sRGT6y0zLkNaZshYQE4O7U+upC7fBtGdQIrYBMSiGktxQUFbhWzZnPN5YJ6b/JskvkTy0l/iUswgfXMyKztGRsvJr9DOET7xG39ejSaDM8XerwpW8U5kIPxB/09nZ9vdvn00iCSX7jZGJBa9KIcEv1Bgz86qXOoCSsDEXJIoOZ7k7qwnErFn4Yv3kbBM++62XKX5d8q9MlLAg== Received: from PH0PR12MB5451.namprd12.prod.outlook.com (2603:10b6:510:ee::20) by PH7PR12MB8105.namprd12.prod.outlook.com (2603:10b6:510:2b7::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.15; Fri, 17 Feb 2023 06:45:29 +0000 Received: from PH0PR12MB5451.namprd12.prod.outlook.com ([fe80::eda3:8be9:a0a7:9f53]) by PH0PR12MB5451.namprd12.prod.outlook.com ([fe80::eda3:8be9:a0a7:9f53%6]) with mapi id 15.20.6111.015; Fri, 17 Feb 2023 06:45:29 +0000 From: "Jiawei(Jonny) Wang" To: "NBU-Contact-Thomas Monjalon (EXTERNAL)" CC: Slava Ovsiienko , Ori Kam , "andrew.rybchenko@oktetlabs.ru" , Aman Singh , Yuying Zhang , Ferruh Yigit , "dev@dpdk.org" , Raslan Darawsheh Subject: RE: [PATCH v5 2/2] ethdev: add Aggregated affinity match item Thread-Topic: [PATCH v5 2/2] ethdev: add Aggregated affinity match item Thread-Index: AQHZQIv5fb1ThKdZIEaqkj6ZBUhFp67R2/mAgADZlaA= Date: Fri, 17 Feb 2023 06:45:29 +0000 Message-ID: References: <20230203050717.46914-1-jiaweiw@nvidia.com> <20230214154836.9681-1-jiaweiw@nvidia.com> <20230214154836.9681-3-jiaweiw@nvidia.com> <2892561.2VHbPRQshP@thomas> In-Reply-To: <2892561.2VHbPRQshP@thomas> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR12MB5451:EE_|PH7PR12MB8105:EE_ x-ms-office365-filtering-correlation-id: 2b82f17e-c87d-4200-465a-08db10b28f09 x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uXjOQUQyMm5xDjhmqAQTixUhKfY9bmCT5BmvRqvsHAZ4Ml8ZFVPun15QYbjuhRn8aCaQGwkvT6Z9mIIt7ny0OaiB4vXta6/53JtSxJvw1Dib9RsVUbc+XNl3VxIEs1zAPqFsaa6n3iIalnSd1iYu5b1DUk8UDA2y6D/LbBdRQMeqNUZu+txU/n0xmHKr+wGN0bevU7hwCvzNXsOoin7rzVblPOlTQkk6+LqaO1pyw9WrkxxgpCANdxCFZOCY+zaUVeOEzo0Qo2CG7iaGZtNTeXaRuB6JxyxU1m2jlSLsRcxKPX/K0BMUEoyxzK9mFHaq9uurz0srKyNjEVtoixXH+zs53TmkDN15bTtDDlGKndLcOn4bU6W8rk2zwmVrBcpR3/hZt2RM5K9lcvzOKhd2F6UyyXh93qnGrorjBm+96T8V22ju5Zlb6+9OgawKsqbrwOFVMZF4E1mrQZEQlWogQ4GB/y0Kc8u2HPgMSVzGZ9S2wsI/iG1Zy59PVcgDLlT/rxpXHq7NcpiH/0Skh4MjmL4xFWXhXwVJCkvE6ECS+Tj+51R7OqUAcD/nJTjnR7TufLnSQheg4NqtHTD7+kRyoGxTeKVQ3Stt/kh1Jj4x60O7YWlfc2EgHxgiY3PKYsw3AXN0WyAedsF7ic9hrFcCp9s9MeihJsJHECXssqX/GkP7Z6ao6Wk4qxiR6ejr7oh7nYCK9m1WS+bEE3IGIkCMvA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR12MB5451.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(366004)(346002)(376002)(39860400002)(136003)(396003)(451199018)(54906003)(8936002)(52536014)(8676002)(6916009)(66946007)(76116006)(66446008)(66476007)(66556008)(4326008)(64756008)(316002)(5660300002)(2906002)(71200400001)(41300700001)(478600001)(55016003)(7696005)(107886003)(26005)(186003)(9686003)(6506007)(53546011)(83380400001)(33656002)(122000001)(38100700002)(86362001)(38070700005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?HIrPE4YUbxqiwzcUThq1v/0MaHzG5pRuR6lwn5z+A/YMRSfOXpz/5CtuFmDL?= =?us-ascii?Q?jBN9NR07/MHai3Nqlf0+SnUdTlshmo+vhgnnyYh0BCK8dKyBtyMh/G10Xjkb?= =?us-ascii?Q?Ftuc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R4Ese8cXvYwy3oQ4J?= =?us-ascii?Q?hcb+Y7xh9ZPuSPQ2V7sr0k/uQPlQvI4ujK7+VLqfzQfJT4AveGKiPG3WVMvu?= =?us-ascii?Q?/IlcpXcFfxcGlJynG4btsFdLJZZvlBSS8Ug+s/oLxzZF/idaxWQJTA9DFKHP?= =?us-ascii?Q?t100ewJykNaUS8KzmGJoIukMfTSCVlCtIExVPu2f3vHqRjeZjGJTMa6N3uLg?= =?us-ascii?Q?KXFf5zIaQj2jkxlHSIkcYfeyFn9twyuz+sQJHc0RgNq/JrBrBpUS8qSbsnWe?= =?us-ascii?Q?Zgq7ZBug5RzbOQaePnxegZwrs4QEqsSH1+O+jvD5st8aYhBazS+0/p2yid5W?= =?us-ascii?Q?ncKentQou54dCPM0N1BO4lAFCpLuCieDb/xWIkpLzsM+tOPdC/yRL/L0VeqE?= =?us-ascii?Q?IUGsUXEa6XRvoYry6dVfZ3HmUpZ2UFt3BFExBc/poL0RqG5KixwjSmhWMSse?= =?us-ascii?Q?2XoYwSm6aA1374DyGc/MTdprEtWz6lNSO4li5NxLssMVrbC91y66pCUMDP8b?= =?us-ascii?Q?zh4tV3Mv3IY0lNwKwziLXRWW5l9NmUPTon85zn5E1HpsoD+qo2SnK2GMZvIs?= =?us-ascii?Q?IahL9Y6+XRhL2ysLTl/u2DyjFSV+U167wscuOJ6D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR12MB5451.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2b82f17e-c87d-4200-465a-08db10b28f09 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Feb 2023 06:45:29.2717 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: HGOXHWGdK0jB9MNdscJ3mjuRk+lUip2qqLtc+mOdAFT5JayYhcxd+jsWm7zjgehOwSjjX5aiQQBLJkDNIpXTYQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB8105 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 Hi, > -----Original Message----- > From: Thomas Monjalon > Sent: Friday, February 17, 2023 1:46 AM > To: Jiawei(Jonny) Wang > Cc: Slava Ovsiienko ; Ori Kam ; > andrew.rybchenko@oktetlabs.ru; Aman Singh ; > Yuying Zhang ; Ferruh Yigit ; > dev@dpdk.org; Raslan Darawsheh > Subject: Re: [PATCH v5 2/2] ethdev: add Aggregated affinity match item >=20 > For the title, I suggest > ethdev: add flow matching of aggregated port >=20 > 14/02/2023 16:48, Jiawei Wang: > > When multiple ports are aggregated into a single DPDK port, > > (example: Linux bonding, DPDK bonding, failsafe, etc.), we want to > > know which port is used for Rx and Tx. > > > > This patch allows to map a Rx queue with an aggregated port by using a > > flow rule. The new item is called RTE_FLOW_ITEM_TYPE_AGGR_AFFINITY. > > > > While uses the aggregated affinity as a matching item in the flow > > rule, and sets the same affinity value by call > > rte_eth_dev_map_aggr_tx_affinity(), then the packet can be sent from > > the same port as the receiving one. > > The affinity numbering starts from 1, then trying to match on > > aggr_affinity 0 will result in an error. > > > > Add the testpmd command line to match the new item: > > flow create 0 ingress group 0 pattern aggr_affinity affinity is 1 / > > end actions queue index 0 / end > > > > The above command means that creates a flow on a single DPDK port and > > matches the packet from the first physical port and redirects these > > packets into Rx queue 0. > > > > Signed-off-by: Jiawei Wang >=20 > Acked-by: Thomas Monjalon >=20 OK, update the title next patch, thanks for Ack.