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 E55FAA00C5; Thu, 14 Jul 2022 09:52:20 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 83DF14282B; Thu, 14 Jul 2022 09:52:20 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2072.outbound.protection.outlook.com [40.107.244.72]) by mails.dpdk.org (Postfix) with ESMTP id 4FCFD41156 for ; Thu, 14 Jul 2022 09:52:19 +0200 (CEST) ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=KdaOFBzAsiVCFMtssYXe2DhkFlBJRk8m+HJm7Uq/pC41okdB3FGjTGIhoEUO0fH8YXFC1i2EqYifutCXojJwLQRUkCF4gpM8p+CWQ9NUydcKSD9oMmxGKYBfZKqVIHsNE7mlwjMPRny90zaKtgQi3LulGugQDRO0qYztkfErwI74PG+8hRRrW6kxuyaCAhr/I7fSAFsL/zMEPhNkWhge0tUWNux0W0sTNeifRiWyw1iWWYO6FF09usUMgw387mlpw6vXQ+k5fTwinJCFKZ4r9e4JixbJrywurMTkeZrH/j5h6K6hVKWy8n308oMIbe4fxXqzVcJlKRWrtgmcq99Www== 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=voz7wLE9WNdBe1278oCrfl9ngTaa3g9GXOx8fb9Rmlw=; b=CXMGnxnAHuxSChACjmrHof2l63AJtoUfaAV6N5AhpkfC/PJFLo6YcT46f/Mg1UNYmsBtcHT8iRrb/LvT3brqRx55xGibuLU6o7cBYOmYb/wTMf6QcM/CyktSQoS0VBm0pgxjmviPi6UzVhGmM5iDoxBvEu3kriZnK3n/EFZ8ZpA43QVl5D3ALrlsl7puaj1C7AazbhUm7yJQ8epXPjU6y+/63Yy/QYl1VyWCJFM1wWdTC3Te975aiwo0lMl9yOXRH5sbvyTtN0OfpkxoehiJtUfeGUqnN+7UsdBu2HLANHhNDYgFoV8/RqhQyJvkQKpDAOikjY4tSQ720fA/GfZQOw== 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=voz7wLE9WNdBe1278oCrfl9ngTaa3g9GXOx8fb9Rmlw=; b=bk+Yj3AOROM6VJSeBLVQGYZsAFrbO87B2UockSmDn950V/dr+MvQE7rTGF0euYec2t4EMGnh/mroLkfssAFqkGAbanRYJoQuGcV+ZjI3a79O99xvNHgJCkHTcf9MZy/Mrfd5hdKomCvU12PwfBnAOULPUxCxxEEa4CXi/yqRzmO0Y3sacEe9Zi6MMkH7UM/ZWnAdIK0WP4ilonPb/6c8FfekwXVZoCLKiypOLQl9OeIRUWZE4ep1J6GblqloFHt7H3PD/IPUbQ2n7YM+tpW6xYkWLw3lVXyy2QbpsCAWihkEoW/lq/R/zlEKSygm6XK4vfDikhSolsxFEQhgSm4PRw== Received: from MW4P223CA0007.NAMP223.PROD.OUTLOOK.COM (2603:10b6:303:80::12) by IA1PR12MB6625.namprd12.prod.outlook.com (2603:10b6:208:3a3::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12; Thu, 14 Jul 2022 07:52:17 +0000 Received: from CO1NAM11FT021.eop-nam11.prod.protection.outlook.com (2603:10b6:303:80:cafe::7b) by MW4P223CA0007.outlook.office365.com (2603:10b6:303:80::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.15 via Frontend Transport; Thu, 14 Jul 2022 07:52:16 +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 CO1NAM11FT021.mail.protection.outlook.com (10.13.175.51) 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 07:52:16 +0000 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2045.outbound.protection.outlook.com [104.47.66.45]) by mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net (Postfix) with ESMTPS id 5774541F5D; Thu, 14 Jul 2022 07:52:16 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UGXxCv+QtzvkypLudu/cS66VmJ4gNIfXek15NUSiPktBUWIPmXL4X/8Szw4zL/qohOrMdUUvck5mE4qNSwcDkhwpeP/Bwd4c909ex93WjBBpKzdOTJ8SPbq6zPbXbOcrovRcaJF3R4Eaox/MrBQuDkvArnx0Ih5q3p9zKtHGbggvCoRh7jKseFqDr+/QNEv7ObAWTYAyehU8+5An6JxwefqeOvCryG8TYGbj0aWwpQNqVZWonXmBjga1OyE+fv6aKmaFRO147smA1RJczi4sDFNl2FCCB3dOBIx0s8NeRiio/pAje5Al/FILgpYDP94SCuU34t2ouBwP92mIM7QltA== 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=voz7wLE9WNdBe1278oCrfl9ngTaa3g9GXOx8fb9Rmlw=; b=MQ0LlUm1oUp2W3nUQJd+j7pepx+3vYtYBKFzGDB6eDh9wm9lJy6m5rJWnFWkmd0sARVVhUtfhAAVpNNgr+GvQq2V82TcHxDKroalcOXW12Z0HGLBqW5bHy+mREsKpmtLmjf8oy7HHs1fV6QP8VzwO8OV+eQ/t1785phcSCIhWz8CmKvd/GS9Lef+JleKlVOEhha0ZdY7FDTLSVBK/p/T9l7IJ0DgFBIfSMYHutPvI5JzRlS9hk9gCvJ+1kC61uiwbUSTx5mlZ7A3yTKpRL7REOGfvy9d+got1XsLdAxk3fZpKNGVdGtTEYHLKMi/Nb51ivgk4ZE9VP28fIMQfN7g5w== 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 DM6PR03CA0059.namprd03.prod.outlook.com (2603:10b6:5:100::36) by DM6PR02MB6810.namprd02.prod.outlook.com (2603:10b6:5:214::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.21; Thu, 14 Jul 2022 07:52:14 +0000 Received: from DM3NAM02FT056.eop-nam02.prod.protection.outlook.com (2603:10b6:5:100:cafe::72) by DM6PR03CA0059.outlook.office365.com (2603:10b6:5:100::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.26 via Frontend Transport; Thu, 14 Jul 2022 07:52:14 +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 DM3NAM02FT056.mail.protection.outlook.com (10.13.4.177) 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 07:52:13 +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 00:52:13 -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 00:52:13 -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=50692 helo=xndengvm004118.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1oBtds-0002Lo-J7; Thu, 14 Jul 2022 00:52:13 -0700 From: To: CC: , , , Abhimanyu Saini Subject: [PATCH 2/5] vdpa/sfc: enable support for multi-queue Date: Thu, 14 Jul 2022 13:21:59 +0530 Message-ID: <20220714075202.31826-2-asaini@xilinx.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20220714075202.31826-1-asaini@xilinx.com> References: <20220708080135.31254-1-asaini@xilinx.com> <20220714075202.31826-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: 3835138e-f311-4f1d-f65f-08da656dc577 X-MS-TrafficTypeDiagnostic: DM6PR02MB6810:EE_|CO1NAM11FT021:EE_|IA1PR12MB6625:EE_ X-MS-Exchange-SenderADCheck: 0 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: FDH7cJQph3znLB2bSFLHBvyWKkfqJq5Ux7YnMuwBXQ6XI3pMrghZ63f9bGIwGi/ACWzwUiVwOpsPUxmnrzTXqdcyLB8rcd7yf4EZDFoPxSIgW8eX8aWaJmORr8dBv/0Dl5jZWSBXtAQbz7qt20cuhQDJDcrGEkKt6imirTpmX6BmRJVqrx2ZiRN0bLVZKTsGLXZtzyGkFNYwzUlHWSqzi3yn3v+kKSCj/pYXAG52P3oxAOSWTFtaS3goQ86YObegpxScvGH5i2GkyZO/njhFiNuOAzOgkgEOCcOlmxcGHR0FkJKrGPDuhcFDoB7DLE0HgulFQ4dDpIeWeIhq4T67GCiFvuecTsFKwymf2/pvpOAlFDO8HCyDkHuLDkYtcJBNqoUuwIH/s6Zs/z2pdXcCMbVXo0ndUY7pJtThH9aEMwgUnUMcY2hjcfdnBClcBDKDJLTetivXnG/Vmai52ZiSRhJRblNgMIFxiRYLs0Oq28YOwLiclPo2q5BoGB0VKAYgnT+v2x6wAeMyLqlYSBBlGv3Izx0L1lhsk9OGBKuwANFujeY/gOoNfQoDiWEuvpkTowgstBD0hSdg7EPMPiYetqZpz/tquelUyOlQSFUXO7DuM13x4vGkTfaF1YHcTbM2PZwBUBawxhmzAZzSADR02NFmSARjbO2kNhwuINLeskfC+MPAB2P4LmUJtAgONA1icRNjtcSV4zYsV4M/W+xXkYlklUcQfL3enqkqdOQiDSJVxTEAe+yLibrXhO7A3YhPW0ovVLdiN1uMYgzkpw8E+qQREET/gxFHgDGq4D2ellASvVPD4xQhU1fvYkzSvnas80ubJUwnEFQT5hc6WMdGHTVK6oBmc4QJJp7cDFVrMeI= 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)(376002)(136003)(39860400002)(346002)(396003)(36840700001)(46966006)(40470700004)(5660300002)(40460700003)(7696005)(316002)(54906003)(2906002)(6916009)(6666004)(36860700001)(356005)(36756003)(26005)(41300700001)(7636003)(478600001)(82310400005)(336012)(1076003)(70206006)(70586007)(4326008)(40480700001)(8676002)(83380400001)(426003)(2616005)(47076005)(8936002)(9786002)(82740400003)(2876002)(186003)(102446001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB6810 X-MS-Exchange-Transport-CrossTenantHeadersStripped: CO1NAM11FT021.eop-nam11.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 0266d18f-1996-4126-45c6-08da656dc3fa X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TRVNESlmAhJ1il/Q8l8GCYYazUmcDjX+oZeLWg6kBmYoY83G01y5CY5OziC6AkiZVgrtYLASfxDnk51yfR78FiEANraxh7Oz5xK4xm/d3QFogGEZz8i+XhzLZHZsL9tZ4CI3BnWxOJXIWtSmyDj8QWRhlAJOeSQ+aKuZObzapKiM+Zdo00CF6YxonZ4cJ7UbHFhRFZcPi0NU3JT1KJkGGfe9fiNEw+1PITUOGv3kiXO3VhvKsjbkhQdl9kUUuaprawoP7+PB9LbdhLaMY/r7VarQx/7HvZsZ6m9zWMqf6o3zphjiUs9SpfcXArbY6+3srdzmA4KiVL9fxufyeh+TORYCd/fJx4OGmjrZyQTxNkrc+mN8vqsrOudiYtQVZmY1xdWGWSZ3HUdWRHqnfwlhSC13BA4AZdACC4IT6rgz6mNNI/zqJ5T4vH05BPmwLQ30Y/72Z/n+c/KMyz/DYXkrnH5nSf+kZSuYmPxKKizZ4RBYRW6RUdCRd7rNps/x3nlLYrxRYn/LDO58CFNY7dU9V2bPTQFDvr7rqdtlMEoTZYOY38eZyWydiJc+TzwabEWzpjIfnY3DJ++wYPooRGDGQFWLrecjgUudTp9WZGm6Z7dp/UcfHU3URgqZmsowUpF691kVma1Fe5vo1iaMJ7SdiU/KaO+OJ19P/f4RJm0EnUD1jocj3F5Hi8IZnTgNnpp503hXyFXmWF0QyqYOpbOkNAoTSgP5vSdnynRhlYiAO7Es7/ackD4PGBqGC9AV/OYAeFwfCPZ66UY+TL4/u6xUXsb26vKcmpYV1fdS4I4ZOQQ3q4mtAwfKH9isd1+rdlXh3M5jc5nX9RuDuy/P3ABd0uLDEtFIpwRuvL+bFoPo/S8= 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)(346002)(376002)(39860400002)(396003)(136003)(46966006)(36840700001)(2616005)(478600001)(9786002)(6666004)(7696005)(5660300002)(2876002)(26005)(41300700001)(1076003)(8936002)(82310400005)(82740400003)(316002)(42882007)(186003)(83380400001)(47076005)(426003)(336012)(81166007)(36860700001)(40480700001)(54906003)(83170400001)(70206006)(36756003)(2906002)(6916009)(8676002)(4326008)(102446001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2022 07:52:16.4691 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3835138e-f311-4f1d-f65f-08da656dc577 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-CO1NAM11FT021.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6625 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 defaut RX/TX queue pairs to 8, and add MQ feature flag to vDPA protocol features. Signed-off-by: Abhimanyu Saini --- 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 b84699d..e4cde34 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