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 4DDBAA034F; Fri, 8 Oct 2021 12:05:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C9DCE40685; Fri, 8 Oct 2021 12:05:47 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2088.outbound.protection.outlook.com [40.107.236.88]) by mails.dpdk.org (Postfix) with ESMTP id D392E4067B for ; Fri, 8 Oct 2021 12:05:45 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W+pYRSBhvCnsHFv1Hml4SV+VPLNUo2v5xT8uFk9Z9m9CLlqFBZlTXVUuFMAts8LnaBGN0u3f32yaYVH5JSBMu38stLn3F2qLAXB4ecmrF/pBOcq6x4a1QO9nmw4/+ykTjNJ9V1Wx5wnWtp32MqwEjptV/J5fNzh1zg20HpCjDTGeBn8nJO18izdljjMuUjBD30n89lS3c2V/9GM6ag/Pr+pY57b0VLV/VHy7ANbQql7toXbKJ4Mho4cgTEqrhgKHKMZw7zB0bQ994s9Da5jupjyooR0hl4mB0C9LMTBQIn6k6OW8G64hX7gLF+uOVPaHT8vyk1T3P9b8l8KoKMr7ng== 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=KJH1h6hO+l02W7IP9Jlj+Jy9ZFBR9UKOOAiWp358AHI=; b=ffXiDDQhNkGh/z34XQpuZI/4u68Jvqopa8FaJRXOf3Zhe6aN3WiraIkfzUrNin3oVj64QKl8CVfsxf79YFaPf185m3Rhe7L+vKURqBdkDAT8j0lClb4KZrIQGXhCe8PUjiWBClt+FO7tPIxrkyWvbQQYwaEy+usKrMbq0XtuBUxwRq/ElKxhKZeVyThElJkPMu3zfeJJhxgv/qnjqfMQTVg9Lbo/ZgJAzZ0ZpB7KiEdI64GLzTjhFcFY6ojwWhOsyGQRF6vBJOBDCPGzUAFfjbS+N5FEpn6bTS1Epb0CCh21/0saN2CJfWtU/XoNhDv88DJ5hfW5ftr3BfWCnrC7OA== 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=none 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=KJH1h6hO+l02W7IP9Jlj+Jy9ZFBR9UKOOAiWp358AHI=; b=RYnlgiJrovH1zZJlmEyNpG+F95AdRxqsB6TsBBDZP5VV2j6rqHNdx8aDF9kidTlsxvlv5fhdogkR2BD6KH3VV7RpmcpIYLt3Lg82KYkQAeUTFy8Klkn4XI0P0JqLmL7OLcSP6L25eflMj875EDbFF++Z5+qejGnWnb3DqyIkW4L28tuOM5mzzhXLp6XxzNImHe7ckMTA0oOkjPnoatwklv3r116FJ+oPI8cI+tRgSYX7E94Q/SAt5OgHzcVnw+oFQvASBUsuTMWzI3WWXuOAN43852YmQy9b4qCwOlHmohYSFw+1Czj66GuKjWo+XDCTwDqpQQXeT0jsDB2OUTMXwA== Received: from MW3PR05CA0004.namprd05.prod.outlook.com (2603:10b6:303:2b::9) by CH2PR12MB4956.namprd12.prod.outlook.com (2603:10b6:610:69::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.20; Fri, 8 Oct 2021 10:05:44 +0000 Received: from CO1NAM11FT058.eop-nam11.prod.protection.outlook.com (2603:10b6:303:2b:cafe::a2) by MW3PR05CA0004.outlook.office365.com (2603:10b6:303:2b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.4 via Frontend Transport; Fri, 8 Oct 2021 10:05:44 +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 CO1NAM11FT058.mail.protection.outlook.com (10.13.174.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4587.18 via Frontend Transport; Fri, 8 Oct 2021 10:05:43 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Fri, 8 Oct 2021 10:05:41 +0000 From: Rongwei Liu To: , , , CC: , Date: Fri, 8 Oct 2021 13:05:27 +0300 Message-ID: <20211008100529.2423738-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.5] 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: f9f7ce2c-fe1d-4954-fcbf-08d98a433110 X-MS-TrafficTypeDiagnostic: CH2PR12MB4956: 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: h9Aeg22x0I05QmK/zB4NrMvLy2H8yIqF6E12xIivhNhR22mjgPetaV1FpkR5tlo+LEXSw+zls/hKWwSF0Xr6RtjimsmwJNeaYMATND0VDpLu9Jq7sfzztY3nyIa4X1Hp9kN+xSOgtd8RLP/r87aTLan1tc9PMZgeQX3bqCYIUCdb40kTQ3BGAJf3ma1i/ODyPH8NsYi9koa+VYP9tNtOk3pMFo41F1xL4+NO6McRDVpo6cFXwmX4hIo7e6c3iNgUOsr7df39KfD7x56O7QbRA0bbDVFWp51s8ngVbHKFEV0+f+ZhBEI4jZL4gZs4l/SDH73+fDaNEe9Hc177GnR6QFhLEXrT9L/ylouBZHhcn9o2ZQIrCmRMDVVQrYh1koc9zk9BuvRrascVgnD5rgA6nv86wZVQ7HjCi3oUZGd9Ic2L3RgscWeyK6N6GbeVWFj4CSOXKuuptP40QDZaT6zD80Qh3eCY+W9CgAcOkzPmDqckRBdeXLQGsuPhKeiMZ+b6Lq70sHrkW/I478PH7aZz4Arfnsf9aWJfB1TDDD5wQPaTTC8pXdXZRmNM+J8cbSSIgcR6rQxzrdsxwI42nmNSoee822rzyaxOrt24mNxAy+286AWyFbgbCXKeW3YJ5bWxM8Ks8wTnR/ewD4KsSs+G8GElhSEyNRegd6amSXxCGFUrDWAT6MKqCjctuwB1CvKp8AKLYypUs7MJ454LbZuxcg== 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)(316002)(107886003)(508600001)(8676002)(4744005)(7696005)(336012)(47076005)(83380400001)(2616005)(4326008)(6286002)(1076003)(426003)(6666004)(36756003)(110136005)(36860700001)(356005)(54906003)(16526019)(7636003)(26005)(82310400003)(5660300002)(70206006)(8936002)(70586007)(2906002)(55016002)(186003)(86362001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2021 10:05:43.9195 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f9f7ce2c-fe1d-4954-fcbf-08d98a433110 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: CO1NAM11FT058.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4956 Subject: [dpdk-dev] [PATCH v3 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. Rongwei Liu (2): common/mlx5: support pcie device guid query net/mlx5: support socket direct mode bonding 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 +++++++++++++++++----- 4 files changed, 98 insertions(+), 9 deletions(-) -- 2.27.0