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 361E7A0032; Thu, 14 Jul 2022 15:48:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 44ACA42BAD; Thu, 14 Jul 2022 15:48:28 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2072.outbound.protection.outlook.com [40.107.243.72]) by mails.dpdk.org (Postfix) with ESMTP id 4B08B42B73 for ; Thu, 14 Jul 2022 15:48:25 +0200 (CEST) ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=C2J9cakoYkc+eRvtOD/zx6NesfJQ0ryL4MvTkyLRRK2W+ZyggQDg86NpMVnSoNsExm5jUeuOjZtUUayXkhqqo1TW/cQELwylvVETXSTcbuh5DLNOlCh4gfRzM2A4bWyNW1g2M8Ubg0/Y28NnDOlGIfu3avjZB/yxqQhlUg74I3/hlX9GtbD49x1amGDVl556mMr3UC2oXMcNPi/gL4WpnnnIUFzZx9OezOMw7A2iL1K59quNZY8a6CtJrKjR8ThmTYQdiFhubpBlgyjGvFGnd2ExSSoK+WEj3PlXXGQOGp+1beuGHsfVZHZ/jLUCKaD+i6KgorSAg0LIYmc978/Tmw== ARC-Message-Signature: i=2; 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=gFCRxErBumuF2r5IX/SG15h9BzwwkbrypSwGs21r7AQ=; b=Nr82PxVa/LrL5kSyhah/9a9ytyNdTAUWNeY9NlbKL0eRGikyCKlfJJMNdQ6KfNBo6LQ5JcDXIPWS0rhBbzN+31FwRTd4RxW23MlXxA7LidE0i40Nz9nRiUw7a5JwH1ScVlFgtOPECfGVwDx7SNyyVJ+7Y6SaxakXE6SOJ3jz0TbbGXQjf6R3MxdvrubXMo/AgDep78Y8tUjklOzd4u3C1blA51j8NbsCvT2iaA66SrhiCuHpBFNbb4H70Nc5AGOLuD8cxVjyXvVANGbvDp9Ed1g/9oDcP9BVImiN30Qc53wGpVdrtx56ehwUrogZr6k7L62qdEN2vgwjty3VeY3pzQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 20.83.241.18) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=xilinx.com] dmarc=[1,1,header.from=xilinx.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gFCRxErBumuF2r5IX/SG15h9BzwwkbrypSwGs21r7AQ=; b=4T785J4JemhkJlKLN+A/Hkk/d/pgQRAG0ZZWDUsGn5S9yot08D3iU41E9tbnOIRcxP+U60vC7N6Dr8qv6o7hE9MOUhKay00h8/Mqn7tpigaSpzkAoDkr0dnIcLf0RYqBQIyJjHzKMu06dDd5tuDvmLcMBhPUIkqg/fbAbAbAQUyqolMB07TEV2BCC0roBIuf3aaHW06bOeNtOJ6cNM1K/CLo9/eHFOTsH5fGnNRQyDrK0mnyBLLPSqFrG+e1U3Uj5EMdibyn/Uj0/atAdZSGx6IoUC0STUlLNQVavuhVB7Jqv80MHe7upribzog56453ZMdH8pFwKeCIMrRvdeOE8w== Received: from DS7PR06CA0015.namprd06.prod.outlook.com (2603:10b6:8:2a::26) by DM5PR1201MB0266.namprd12.prod.outlook.com (2603:10b6:4:57::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.14; Thu, 14 Jul 2022 13:48:23 +0000 Received: from DM6NAM11FT050.eop-nam11.prod.protection.outlook.com (2603:10b6:8:2a:cafe::49) by DS7PR06CA0015.outlook.office365.com (2603:10b6:8:2a::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.13 via Frontend Transport; Thu, 14 Jul 2022 13:48:23 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 20.83.241.18) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 20.83.241.18 as permitted sender) receiver=protection.outlook.com; client-ip=20.83.241.18; helo=mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net; pr=C Received: from mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net (20.83.241.18) by DM6NAM11FT050.mail.protection.outlook.com (10.13.173.111) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12 via Frontend Transport; Thu, 14 Jul 2022 13:48:23 +0000 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2175.outbound.protection.outlook.com [104.47.57.175]) by mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net (Postfix) with ESMTPS id DF3724264A; Thu, 14 Jul 2022 13:48:22 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lb7pvfNp3d0gGKZ3DerFMe6dcZL+iwGOzvRVqufQAn0Hv3k7G2kK+VjU/tof/NuPkw/ET0X75F6nIuOrSOCw60HQov8C1XvA/w9AonEEEcUYJxHdGVabb4oCFKdyoRZFcyUT027r0XMnLhDe46wygUJFl2mk+NOApM9uvLX+cNV6l9c49QAOPnpa7xGvOacjLGsCxUDaPqDRd5E7oScSmzTQyNtUKN1gVRz4nti/kf4poyI2Tu0eMY5Q22fmbGwrvZJusQkhfrITHptyRbxnXSw289rjzjtqq3Web1KcCy/JHFA6hvv82vxSQ74lbrILnj9Qml1wjs3mPeyB4tZwiA== 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=gFCRxErBumuF2r5IX/SG15h9BzwwkbrypSwGs21r7AQ=; b=gydfACx3s3B2BLJb31DwV/k5H5/PqVqtMvmff6ArDEANr/UWqRe+6+Z71CL8oZUfN5cicqiBLIhr3GIFjRioqm2yBK8QjAGfghhmSrWHbbl1XIPJ+AzP93M+QPxdrRq6oTQzBdFKYP/DOJG8vJj7QkNblYxfPvM9rpSk6/Xyvgb1qBbHreOTt/wrXf+J/W/ZnqMYqwtZa6Wjr7/860eIPSiQ/QkL6hXhtTULUYm8bcpVeL1QDwF2u4m7rZ3s5aAbMr7tGYZxKrEAoNqRpbyoAI92rAjA9KnHLYOcY4DK1XUtF3GgPZ3wUknzsOkyCRN76dwSX+7Of02lBZ1KT5xGSw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=dpdk.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none Received: from BN9PR03CA0435.namprd03.prod.outlook.com (2603:10b6:408:113::20) by DM6PR02MB5547.namprd02.prod.outlook.com (2603:10b6:5:34::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.26; Thu, 14 Jul 2022 13:48:20 +0000 Received: from BN1NAM02FT050.eop-nam02.prod.protection.outlook.com (2603:10b6:408:113:cafe::25) by BN9PR03CA0435.outlook.office365.com (2603:10b6:408:113::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.20 via Frontend Transport; Thu, 14 Jul 2022 13:48:20 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by BN1NAM02FT050.mail.protection.outlook.com (10.13.2.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5438.12 via Frontend Transport; Thu, 14 Jul 2022 13:48:20 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 14 Jul 2022 06:48:18 -0700 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 14 Jul 2022 06:48:18 -0700 Envelope-to: dev@dpdk.org, chenbo.xia@intel.com, maxime.coquelin@redhat.com, andrew.rybchenko@oktetlabs.ru, absaini@amd.com Received: from [10.170.66.118] (port=50892 helo=xndengvm004118.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1oBzCT-0003Fq-I5; Thu, 14 Jul 2022 06:48:18 -0700 From: To: CC: , , , Abhimanyu Saini Subject: [PATCH v3 4/5] vdpa/sfc: enable support for multi-queue Date: Thu, 14 Jul 2022 19:18:03 +0530 Message-ID: <20220714134804.60495-5-asaini@xilinx.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20220714134804.60495-1-asaini@xilinx.com> References: <20220714084451.38375-1-asaini@xilinx.com> <20220714134804.60495-1-asaini@xilinx.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: bf2ee1ce-1c1c-40aa-7885-08da659f8520 X-MS-TrafficTypeDiagnostic: DM6PR02MB5547:EE_|DM6NAM11FT050:EE_|DM5PR1201MB0266:EE_ X-MS-Exchange-SenderADCheck: 0 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: VzIwFbQHnucpnJkyp+pryoH3w0vyvBoS2qGrtZaXtK5kxTwvReZloODRN8CKpzOBfhim6OM8UmC6exZDeVaVxwuhr6qc533+Bq9dv/Gox5w2/BK/dpS8DCKk46+lqClGsgaHgwllOzrzX36jspDO0l/m4JsktkkyqBfllUGPM8rYEYp87nOIAkd4lpjfnsGIGKhzK4/yRhpIKmKQTB4VXdSQT9SDc5IM8omLX0Cxhx8VBK51BpxitjwA6REzqv6hpPTb3rcLmEVhm5c+d46joC6GV3KBW/Z92hIAqiYI9+RA3jinL6q4du94UjAyd6aEjvAlrng+JWv6Bk9toMtcuzbNEkBIOW66K2i/Bvj2edkHGW85oD5cHbUEjnKZWDMamXWu25/t4+swP7Z7MLJs1efqTckCYtXbLUfx8t2fcWzCOUo+49G3g7HYz3zex8Ldm/JaYz8EYe0wpRUM7Twd4Zz/w5IDN6jCzGIxmTmM9pZ29XtA7b1+PtO3aUXqdMBb0ymVUrNEIp05/XEAxofJ36oBkQ9mxRZQzMoUXEbGy9vKi2Z1mylS0ByrELftZ6t/hDVsmGiFHmd+bMScXDnzKbS05rb5hrofrINaDN5LOi/SiVUZw5pYFOH5JFHG2bFss6k4NtP2ZTmxR8Fa1qnBGpsLridfQoBukQWa8v6MhyIcN1Neu41ZrWGmyBSkChCpqXXoRyRq63nKegl+cSBYtCrt84EhXW0SeEa/F9MBuaAcfcG8JSW+a3yoM84Zym26fmE7jnpqrskSY9wN9EJ6kmqlSs/lVUWndE4Im2vZb4xKVkrhbHNVu1nF2aRTt7bXBxMuk3Si7Gvnwcq5zbDTSljvhqGtUwA0ZnErMkUi/Ew= X-Forefront-Antispam-Report-Untrusted: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(13230016)(4636009)(396003)(346002)(39860400002)(376002)(136003)(36840700001)(40470700004)(46966006)(316002)(9786002)(5660300002)(41300700001)(8936002)(6666004)(83380400001)(70586007)(54906003)(4326008)(6916009)(478600001)(82310400005)(7636003)(426003)(186003)(336012)(70206006)(356005)(82740400003)(36860700001)(2616005)(1076003)(36756003)(40480700001)(2906002)(40460700003)(26005)(8676002)(2876002)(47076005)(7696005)(102446001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB5547 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DM6NAM11FT050.eop-nam11.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: ea94b948-1820-4e87-3ee8-08da659f8399 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4CrlZG2b1kRAS2jBx+DXzBQQqrlbmlPnjyVEavJI1y7V/B0sCUh9tCbQBJDj3QpHinic3KLfV/xn2VE55PBqPLp36gudzoGbkc8rpwjwmAxYGipIKCVaOVKm6LuDaW/ywsvjs/q+2z2iJFPCFIwAmHn35pJDSW0ayvlgQ7vlxLcv4pGzUu6Q5dZN/mWJTtBTf3QWeYXAJm7NUBtnsw+NVwZJ46tY+qXWv+8xHUM2YeP1P6l/v0NYorw0vq3W5dOpuMSRr1zAsVOJBVMFa2iWg2ll8y+fVFC1ARqVIhloM/ym4KvDTCAvW0qbFQ7E/i4JDIC/JPJoO4ANZowrwC+WgBOfFv5+xhfPcqFQg0yTos0sZAiZNin0MpLaX5hAik+r5DS/KQGX+KJ4+Xku1WrbcdNPuLzRGv4JDewVzsAFCle5ul7JEii7aAEj8YzaqD+NIgAR4bOpWwyFpTsi/VoSZQYca3kULlP6dqYxQmZKxTBjzqUrRR7LFpluIk8f0kclG5zXziyMPf2qGRwYxJLNVeeYn/2UUf/CWx6pyqNz2ay9AuFD0jL9FDxpWAK5TmUHYxImMkoE3ld1kVK8gb5r/+lBLGlS1HNoM8mARsAYx+qITk169Lwp1EMNWJphv7nUPWovK9bc5np8JLgQUQZzGIiF3pXA8zYqPtqWtmplk7QPh480HrvtmtyW1ktPt+t7ogbQ5015Z62SgNmkmZZ7GiMdmj+oq5bZHED7lr/EG7OfQnjPfjTObU1mGIBC0I04rL0uEWAyiwTu9cgF9gp2hc8B9/FtpFD088koK13+2zoPV/U/9XvDsgLnA1UIsz4mTASw0ouXmQk17EyWz916ZAP7hgu/uZLgKVOzWXLrBsQ= X-Forefront-Antispam-Report: CIP:20.83.241.18; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230016)(4636009)(39860400002)(136003)(396003)(346002)(376002)(36840700001)(46966006)(336012)(1076003)(426003)(81166007)(83380400001)(186003)(36860700001)(47076005)(40480700001)(42882007)(54906003)(6916009)(316002)(36756003)(70206006)(4326008)(8676002)(478600001)(26005)(7696005)(9786002)(82740400003)(8936002)(2616005)(82310400005)(83170400001)(41300700001)(5660300002)(2906002)(2876002)(6666004)(102446001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2022 13:48:23.2799 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bf2ee1ce-1c1c-40aa-7885-08da659f8520 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[20.83.241.18]; Helo=[mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-DM6NAM11FT050.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0266 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 From: Abhimanyu Saini Increase the number to default RX/TX queue pairs to 8, and add MQ feature flag to vDPA protocol features. Signed-off-by: Abhimanyu Saini --- v2: * Fix checkpatch warnings * Add a cover letter v3: * Restructure patchset drivers/vdpa/sfc/sfc_vdpa_hw.c | 2 ++ drivers/vdpa/sfc/sfc_vdpa_ops.c | 6 ++++-- drivers/vdpa/sfc/sfc_vdpa_ops.h | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/vdpa/sfc/sfc_vdpa_hw.c b/drivers/vdpa/sfc/sfc_vdpa_hw.c index a7018b1..edb7e35 100644 --- a/drivers/vdpa/sfc/sfc_vdpa_hw.c +++ b/drivers/vdpa/sfc/sfc_vdpa_hw.c @@ -286,6 +286,8 @@ SFC_VDPA_ASSERT(max_queue_cnt > 0); sva->max_queue_count = max_queue_cnt; + sfc_vdpa_log_init(sva, "NIC init done with %u pair(s) of queues", + max_queue_cnt); return 0; diff --git a/drivers/vdpa/sfc/sfc_vdpa_ops.c b/drivers/vdpa/sfc/sfc_vdpa_ops.c index e2f119b..6401d4e 100644 --- a/drivers/vdpa/sfc/sfc_vdpa_ops.c +++ b/drivers/vdpa/sfc/sfc_vdpa_ops.c @@ -24,14 +24,16 @@ (1ULL << VHOST_USER_PROTOCOL_F_SLAVE_REQ) | \ (1ULL << VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD) | \ (1ULL << VHOST_USER_PROTOCOL_F_HOST_NOTIFIER) | \ - (1ULL << VHOST_USER_PROTOCOL_F_LOG_SHMFD)) + (1ULL << VHOST_USER_PROTOCOL_F_LOG_SHMFD) | \ + (1ULL << VHOST_USER_PROTOCOL_F_MQ)) /* * Set of features which are enabled by default. * Protocol feature bit is needed to enable notification notifier ctrl. */ #define SFC_VDPA_DEFAULT_FEATURES \ - (1ULL << VHOST_USER_F_PROTOCOL_FEATURES) + ((1ULL << VHOST_USER_F_PROTOCOL_FEATURES) | \ + (1ULL << VIRTIO_NET_F_MQ)) #define SFC_VDPA_MSIX_IRQ_SET_BUF_LEN \ (sizeof(struct vfio_irq_set) + \ diff --git a/drivers/vdpa/sfc/sfc_vdpa_ops.h b/drivers/vdpa/sfc/sfc_vdpa_ops.h index 9dbd5b8..5c8e352 100644 --- a/drivers/vdpa/sfc/sfc_vdpa_ops.h +++ b/drivers/vdpa/sfc/sfc_vdpa_ops.h @@ -7,7 +7,7 @@ #include -#define SFC_VDPA_MAX_QUEUE_PAIRS 1 +#define SFC_VDPA_MAX_QUEUE_PAIRS 8 enum sfc_vdpa_context { SFC_VDPA_AS_VF -- 1.8.3.1