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 6AD3CA0547; Thu, 21 Oct 2021 10:56:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 03F4A4118E; Thu, 21 Oct 2021 10:56:56 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2042.outbound.protection.outlook.com [40.107.243.42]) by mails.dpdk.org (Postfix) with ESMTP id 95E4140142 for ; Thu, 21 Oct 2021 10:56:54 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NrD8rBCOd8yxx/Ny56jhEItN4XUkh7WKJsbCcZxAASyqNkELpAxp4nJCKF4IZGsKWJJ9Ij3XKHiImC+IvtQDPFDPHXyq+zRqz3K0xL1ImesFmxdy8J0eAr0azh7xTjmscWaJ5P8gESuDPSWiZ2uCSq5FXogTiGs11upSHYltDfVSR+GxoTBeeIx9B3sSFaHaFRIzyytrNsxk5hsSFl+00yhk1nXjfrRznZfNrLRcEY+uttigvLcllxtgbsXjn3YBm8mq72ggnObcNeS3S1hm1xbVDe1MM+tFqQ+brddhkQ7detB9gmBSU8OJJWH8HPc4gHMbTd4d9lmnajLRil5W7Q== 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=kwpiKQi5LTEVaMqKNi8UXOLeym89I5O40VOalr4WL3A=; b=UwvWLzv2oSPZE81OZwHrxJZkjZRlaspqLTGvrWptiNC1d7QeXsGxyjB1FOKq9kacJjS4J7yLKL5xwENSaRAfEZgCqQsvxbzIByg6KXXcsAYhmLm6VZm2jcTG89KtR/gxujFTte1xB67e/2MeBLWnqBvz6jq2D0gApY7q44BlulV+hwpblspMx79czLyIn4EEtH8PGS0gCM0ncno6sHDszEo7K++22GV5qLfH3a/fcXdTBRziW5pMBgXeT1UznWKIpWjzYFPOSOW6X3QZfk4CVrLoimfcGRB28H0RH5NElV8ZDEF9OIxhwijF8joIb3g0dpd6fwjqjMsBIeWCkLdr9Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); 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=kwpiKQi5LTEVaMqKNi8UXOLeym89I5O40VOalr4WL3A=; b=k0Qw5hcbZAq5gcrgRA8lB9gmLidSRoRYDGZHxv0DPMQnPE8xJRcAYevWg1CtwyHezeBzORkPYuaoPzOSMRcqBrxGxUq5k9qLMlMnsH0aZdohj4wvYQGWaVLUSqcmJ8tBndzfKGewYvqecj+60AbFLubSuzyrWYw7vkEzpjFZlMqqzePOkoQyNMeuy4CXJg3p9HSrSI6ZFwx/Gpw6XEsepT8YWfsS5XLZpaMfn1byuWNPGxFM7zNzPI/sXEzDm6msGYMPc72abRuAJy/m94/4N2CdqCuWKtp5qoF9URQqBANDagdFs5P/whug4q5/u4bDK651MEClfrCakV72kRIHrw== Received: from DM6PR13CA0005.namprd13.prod.outlook.com (2603:10b6:5:bc::18) by CH0PR12MB5330.namprd12.prod.outlook.com (2603:10b6:610:d5::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18; Thu, 21 Oct 2021 08:56:52 +0000 Received: from DM6NAM11FT056.eop-nam11.prod.protection.outlook.com (2603:10b6:5:bc:cafe::dc) by DM6PR13CA0005.outlook.office365.com (2603:10b6:5:bc::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.10 via Frontend Transport; Thu, 21 Oct 2021 08:56:52 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT056.mail.protection.outlook.com (10.13.173.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4628.16 via Frontend Transport; Thu, 21 Oct 2021 08:56:52 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 21 Oct 2021 08:56:49 +0000 From: Rongwei Liu To: , , , CC: , Date: Thu, 21 Oct 2021 11:56:34 +0300 Message-ID: <20211021085637.3627922-1-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2bbb402f-ff8e-4edc-0f05-08d99470ba04 X-MS-TrafficTypeDiagnostic: CH0PR12MB5330: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3968; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0dTw4/ROqcGNUINSSzfSHW+R7BCROzfZ40eeS0n7kcXASvPE2a8QiaOSmDPGaTMqM3fJ11YVTMmUyBXmnGa7FWOwO8dkLg8WLYI7m7Vm3uGbkPfBEmDMukts6wTjk/+yTJ4x/cfXh3EPfv5rWfdpNgbAVqPzwJQiHJayaFXlcHRKpkic8ogUk0LeVNcSaugHmbiJVGtqERpkAb3BUeqDoZByPq/6LxAq0CPEbeWCxwUQDI4CwwZXXm5ri9OUUj01ejhFCPollsHHTvQyPmNRdGF9KWVQzjDYl57VpYpgsi4pa1l1jxO40oRk1VDfo92CwpbfnY0poBn5lytA3wEpbdeB482NdIr5kNVENS8wIsyJyHKRMnBWvYtidRrNzs64Fg2lgFcdnCXn8WTaywY+gKqeiC+Ichuk4ald8c/8B7/OKOifK0i7fx06BpWIKCH4iQ/kuYwUsPcuHDzQPCN4feikkrcWAsrAEuUKoYftNO/AYj6kDS1E+8F8BUCS9nGSqmRiTDM7eNxXY5MMwQguY3NL+VAe+9To1g9jXyU2DgNB8UZayIQI+5sFjcf5hJPWnAQOyJEJH9L0KLDL9z6vKuvWJ1WHPw8JCfdzD+alsr3h5bTA4SGQPKUMmt0OwST8PdQ5iHRLE1yT9oxE+nUYlWlVF/D0XSid+eSjYVHREgQxSG+wBjs7V1vMKhPyh7dqcOl9z3d90rhLt4ngM0mYYw== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(70586007)(8936002)(36756003)(508600001)(36906005)(316002)(55016002)(26005)(82310400003)(1076003)(2906002)(336012)(16526019)(2616005)(186003)(6286002)(107886003)(426003)(7636003)(6666004)(70206006)(36860700001)(8676002)(110136005)(7696005)(356005)(4744005)(83380400001)(5660300002)(86362001)(54906003)(47076005)(4326008); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2021 08:56:52.2495 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2bbb402f-ff8e-4edc-0f05-08d99470ba04 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT056.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5330 Subject: [dpdk-dev] [PATCH v1 0/2] set txq affinity in round-robin 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 Sender: "dev" Create multiple TISs (number of PF) and bind TXQ to different TISs. The TXQ affinity is predictable and unchanged. Traffic is load-balanced per PMD process. v1: rebase on top of master-net-mlx Rongwei Liu (2): common/mlx5: support lag context query net/mlx5: set txq affinity in round-robin doc/guides/nics/mlx5.rst | 4 ++ drivers/common/mlx5/mlx5_devx_cmds.c | 40 ++++++++++++++ drivers/common/mlx5/mlx5_devx_cmds.h | 13 +++++ drivers/common/mlx5/mlx5_prm.h | 45 +++++++++++++++- drivers/common/mlx5/version.map | 1 + drivers/net/mlx5/linux/mlx5_os.c | 2 +- drivers/net/mlx5/mlx5.c | 81 +++++++++++++++++++++++++--- drivers/net/mlx5/mlx5.h | 10 +++- drivers/net/mlx5/mlx5_devx.c | 37 ++++++++++++- drivers/net/mlx5/mlx5_txpp.c | 4 +- 10 files changed, 222 insertions(+), 15 deletions(-) -- 2.27.0