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 8F26EA0C53; Thu, 14 Oct 2021 04:58:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5A4BD40042; Thu, 14 Oct 2021 04:58:19 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2087.outbound.protection.outlook.com [40.107.244.87]) by mails.dpdk.org (Postfix) with ESMTP id AF38640041 for ; Thu, 14 Oct 2021 04:58:18 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QARzDB0byNJlf33/WCAK6WHzblFY60YpcJevMye9vODmwvOnesdOqp2MMzUqm2nw7lCEnz0E1ymauf9O5jHUtUjRrFARf0uRJzkP8jz7Ky82y6fCLfKp0NccW2Pti65Y6m3hXNWgBaGxR8CSdF/vHj/ugEKf85a228W54wTYs63rdXuL/ZkRdaJBF5ssdzlC5pg24K3tAxv4kn0/7ExyH8pjz8W5uPXfFg+Svw/kPPGr2WsWFM9NYCCybSVJd+0j2ixGZSNcncnSmVfTwSsSwgSKit2oJ0ChxGXBnyZ3Ubw22Usx4NUf2q+K2xB4yY8J/+LiDYzj2sylKGlNI0thyQ== 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=Vgy0/Xd5yvsf9JlyZDB0lG8UREwd7cGOtuHkk6yvJvU=; b=XAg5vrn6taBKZb8sPnvES7e0OO4EmpER5RiNTN39rd/TvK1x9VBOkwMpLHUWfYapZxf0Drsin8gB7OEzsLbE5EznRz69HqmXtLA8dzJTczYrpGJF9n0Nj4Fj2NOZOaZ1OMF9foE+qc1ofy0Y2bwpoll+z4sJ2wJIA91xK4yEOWEn3gwb1qsUu2slwq8hZ+frQTuahUlG3A3ZhkdpSW+90KelrJ43CR3AImaEXfNX6hNqxeiPbowrrzQeFcxnuvo+kT8eKWJvWwKaAQqJXm3aC7peJuW/RABH7O0VZhl+pLtoI2ZikaUDStlWfRnoHSNKdHGMvFZRX77+PbkGOKucpA== 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=Vgy0/Xd5yvsf9JlyZDB0lG8UREwd7cGOtuHkk6yvJvU=; b=EnCSHylA0FA4UD960mKx4Q1enxRSUczIcKv8aM6sPT06/PsR1FG6VF9UPKUReGBAu1yT3HkJBEesXAgtWLA7b52lFG7NBDapu+3tkO2xC1FElxZD2zGRGIVQiS6e9Q+qnkTzymLChSRcYQpPpPNiPOP+SyuqP2S/j+tF3d1Bfvqm6ZOX4TxHNyPImRDH0xeL7SsmWVzDmgKi2ULrJTDvl6cLp9GWo3MbJdY2YQgOXIXcbtm4raNYBtGL4vGbOsAZsvo7trplENR9bjDB12PdeJEkh+eD4kd5VSMNYvd2fDcM/ocn+yHw5Hw5N2/so4B01HY0xW8Kp7WgalMWK47Cww== Received: from CO2PR04CA0119.namprd04.prod.outlook.com (2603:10b6:104:7::21) by DM4PR12MB5103.namprd12.prod.outlook.com (2603:10b6:5:392::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.19; Thu, 14 Oct 2021 02:58:17 +0000 Received: from CO1NAM11FT024.eop-nam11.prod.protection.outlook.com (2603:10b6:104:7:cafe::3a) by CO2PR04CA0119.outlook.office365.com (2603:10b6:104:7::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.14 via Frontend Transport; Thu, 14 Oct 2021 02:58:17 +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 CO1NAM11FT024.mail.protection.outlook.com (10.13.174.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4608.15 via Frontend Transport; Thu, 14 Oct 2021 02:58:16 +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, 14 Oct 2021 02:58:14 +0000 From: Rongwei Liu To: , , , CC: , Date: Thu, 14 Oct 2021 05:57:59 +0300 Message-ID: <20211014025801.3055244-1-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <2308701.4c83qqXp4g@thomas> References: <2308701.4c83qqXp4g@thomas> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d320fa51-3c0e-47a6-6c56-08d98ebe7868 X-MS-TrafficTypeDiagnostic: DM4PR12MB5103: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Dtq+WdrNHLFFSTn3wybhneBA2RBTuJilrCgs53ApR/r+GI06LEi1Fu0ZWHzEINl0jusUZAtivJagAGHoiNh4eSPWMy0JYzvrLcWrYLB9ZXcVYKelSJp0QyaSLAnC2cfqxInX5GvQ9iqpU6sjJQkHcEnKve9zC5w6IC+Dze+KB0j8yKeHO+4MUTCy7i6R54KUM30k7W8ziHN33QkorYk7LFTiOw8qoEAzIQrjPRWqxO6zj7B5kOdxFEGnPd7yKwbE1KoNSUmlsLzLYPiXEGgAUGP3tYqod4pCOmVruLhqFu9BiM4NDadVMnS2O9SWuc9NH+8O2k4oeRT4o/RHv1eAUAnkxCmqCVgQ7tr9OhDWssOUCBPFezDN+Za9new/hP6bkMbzJPjjyWrwvaS1rvQJtXbm9pYBiRnIEA9LLnI5tZXyhMPoyoRYcBiao34nM/E4cCeHmExjF0M57H+h8OjLrey8OopOOa9imye++2/8xDBXPv+BKid3sC3Avk7fyhc5EnxtT1GHVKV5VyLh958EaOh7RRV13tdsdw23V4lJexNt227ivnd15KM63fW4UE8l4ulrxL/p1wH5HifanVTLjY9i9Mgt+rF/4C+DAGKRA+qmSIFqh/dYC5Q7JT1EpjmIWoYpowJCVWdK056YrRgEc0fyVD35sXn20cVyZM+IPDdZ5p2Q7kBModFIOskPbDwJcmMZI9O2gl3TrxjMLv+7wg== 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)(36840700001)(46966006)(86362001)(8936002)(186003)(6666004)(26005)(426003)(2906002)(82310400003)(83380400001)(36756003)(70586007)(70206006)(107886003)(336012)(1076003)(2616005)(16526019)(4744005)(110136005)(4326008)(47076005)(36860700001)(7636003)(508600001)(316002)(55016002)(7696005)(356005)(54906003)(8676002)(5660300002)(6286002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2021 02:58:16.3278 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d320fa51-3c0e-47a6-6c56-08d98ebe7868 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: CO1NAM11FT024.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5103 Subject: [dpdk-dev] [PATCH v4 0/2] support socket direct mode bonding 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" In socket direct mode, it's possible to bind any two (maybe four in the future) PCIe devices with IDs like xxxx:xx:xx.x and yyyy:yy:yy.y. Bonding member interfaces are unnecessary to have the same PCIe domain/bus/device ID anymore. Doesn't need to backport to DPDK 20.11 v2: fix ci warnings. v3: add description in release_21_11.rst. v4: add description in mlx5.rst. Rongwei Liu (2): common/mlx5: support pcie device guid query net/mlx5: support socket direct mode bonding doc/guides/nics/mlx5.rst | 4 ++ doc/guides/rel_notes/release_21_11.rst | 4 ++ drivers/common/mlx5/linux/mlx5_common_os.c | 41 +++++++++++++++++++++ drivers/common/mlx5/linux/mlx5_common_os.h | 19 ++++++++++ drivers/net/mlx5/linux/mlx5_os.c | 43 +++++++++++++++++----- 5 files changed, 102 insertions(+), 9 deletions(-) -- 2.27.0