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 CD8F4A0032; Tue, 28 Sep 2021 10:51:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B664E410E4; Tue, 28 Sep 2021 10:51:51 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2055.outbound.protection.outlook.com [40.107.237.55]) by mails.dpdk.org (Postfix) with ESMTP id 25634410D7 for ; Tue, 28 Sep 2021 10:51:50 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aGWzSXT0UmhJNSGNegPpFWH9VamsrIXHF+1Ld2Ag53MzTOs792boZRxAGJ1ZGQT5MLODkijEtx2fHcOuk8rq5U+g9rmmtWXkJE3HRggPT00sv99cUxEGlYpBftVKmhz6X+/vHJ6y+0gF71fxA7jkCBaKLS/hXkRvmgqpLDeMzbZVaNY5D4VmAQQ0+hefDO2uPMAkk7Dk6q5j8R08DXN7KkXatgWfQvRTaiK9zQOtNMaWq2JkBhBYdfmEEws6ZHQ5O+bqF92WfMB25IXu8GtHCU5G5ewczaoBr0nXXvC1Aj6foh812KpyvmpPrbz+myi4e8F+QeFsqsaJAZDUMzIaxg== 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; bh=571YkiF4xwXHVpTpG220MGddkis3HMr0yN9Y/62oiyI=; b=KIF1lt7aP6tm+uH//p8SEaEK1ss9y9vZWvIngj1iqp2RIdsl7jAwPoA3ZdsDNBQ51MZ7RoN2O41+W0mVSCyz08OpVAW6RdRNhTAAXDX7Fsd/9GAJnE6Fhz1E10ogzcOXKBlw2+LXOrsnI/SEvRwuZhywelZtv3OJXxWvngDhUvrs8qZjiu7iLcL0/Y4GPleqZs5P+ABQce3j7+Gih0TF+CGq8TtSk8RwJVBU0a441q+HDYzQFRDXSsU4+TJp5mns9c6qeU8+JzjEHKFVdqmrZLyoSdR6tElAJLMB9XjqFskR/m5wr7c2/Z0gj3eLfTsfXmOPt5eta/gq0/MF5l8B7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.36) 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=571YkiF4xwXHVpTpG220MGddkis3HMr0yN9Y/62oiyI=; b=FezcX4zy3zgyfkLiJXBlKTxouvpS0faMnFUS4WSpT22DRxvjqp+PvGM3A2uzsMllUEyV3KvXupLCDcqC74tP0gy4AA8waYI55N5ZE37LGKUolPL+spZkW5ThMkPAwAgR9xV/c7EVxJnXIOqmIAsNbrqMrs20TvCeOXtm4ZZro3ULgbZpsyurFiJd2jQCzUfrTDR+6TfGVjoObjKcfiHQ9RKZ2OklUdk/5Rnji8IMm9a0sZbFGH1GSVPVURzfmGJixldQ/n2lUpSIVq6fMrH/Q8m3QwRuOnOub87g+sUBNau5VPL/hKDInPCjZ+Ca/ltIbuvT3x8tdqjBPEjRgS66CA== Received: from DM5PR19CA0067.namprd19.prod.outlook.com (2603:10b6:3:116::29) by MWHPR12MB1342.namprd12.prod.outlook.com (2603:10b6:300:e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Tue, 28 Sep 2021 08:51:48 +0000 Received: from DM6NAM11FT056.eop-nam11.prod.protection.outlook.com (2603:10b6:3:116:cafe::c2) by DM5PR19CA0067.outlook.office365.com (2603:10b6:3:116::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13 via Frontend Transport; Tue, 28 Sep 2021 08:51:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.36) 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.36 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.36; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.36) 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.4544.13 via Frontend Transport; Tue, 28 Sep 2021 08:51:47 +0000 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 28 Sep 2021 08:51:47 +0000 Received: from nvidia.com (172.20.187.6) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 28 Sep 2021 08:51:45 +0000 From: Rongwei Liu To: , , , CC: , Date: Tue, 28 Sep 2021 11:50:52 +0300 Message-ID: <20210928085054.1619915-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 DRHQMAIL107.nvidia.com (10.27.9.16) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0673b2e8-7588-4dd3-79fb-08d9825d34e0 X-MS-TrafficTypeDiagnostic: MWHPR12MB1342: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: I+9Yz5M5CBy8EtKpOSQiCRNzJD4frQa2Q44jv1Psq47pbf38ch6Xrcl0gfP/KhtvLUv2xd8j4fBVnPwe8q0ypbkNLaqnXDRvYynhnrEWlXN//r+JQM2a3iSW7E4PsMzyQVKjBSTWIXH4d1LFR3nZ0GYDJpGDBWYoBKEwi2sV9zw3YfmQHeRCe/DZfjxNtUZbaiiQuZcv/13HTgGkiNXthEYl5oZbEdqJT7TbY0KNQ7pQigB51MiP4bDHV++nwEQh4uCxbbf65rZnlAmxrBTUK6bjITNEiu+xYU7F2B1rwUTsU7yWDwBjTHhAYiIj5o3IpRAbbz/SH8F+emmJDWD0HQplnqlSwCfhcH+X+zjS/uk5cNaukMDg5MQBHu0jP3BzlYOCNHRZMAO1VONafRqh0VhsNsvHR5P1cTEDXYRPwWA9MBekTBOLPPlTJAcAKAc7ih8fzU2BSyAJDLxdcKXWyXoMKn0x8lxdZVOFwPgoSjYbHgXiI2CNcbr5SPSCi7m0LLCa/Q38/c8AyihhQ3EJjwzZ/CMeHS+hY+gbaI8eUZYmaOkl8W9SZR91JRLp9Xu4fCCFYV2ONiVfVCoCdjmIw5NXqE8FpigWM0UrjShOUZBfSQljEbRIw1SkNi4OEZ3yx5LcmMeSOvpjNYU38slnVbV6z1HqBegJWMEd3WQSHuPfpT1M8/+hVzRFx6eKdP0viCzRJmSpIdK8CQfo8MgBoQ== X-Forefront-Antispam-Report: CIP:216.228.112.36; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid05.nvidia.com; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(7636003)(70586007)(36756003)(70206006)(508600001)(426003)(336012)(5660300002)(8676002)(2616005)(86362001)(316002)(110136005)(82310400003)(47076005)(55016002)(6666004)(54906003)(8936002)(83380400001)(6286002)(2906002)(4326008)(4744005)(186003)(16526019)(36860700001)(1076003)(7696005)(26005)(356005)(107886003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2021 08:51:47.9222 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0673b2e8-7588-4dd3-79fb-08d9825d34e0 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.36]; 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: MWHPR12MB1342 Subject: [dpdk-dev] [PATCH v2 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. Rongwei Liu (2): common/mlx5: support pcie device guid query net/mlx5: support socket direct mode bonding 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 +++++++++++++++++----- 3 files changed, 94 insertions(+), 9 deletions(-) -- 2.27.0