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 50307A0540; Fri, 8 Jul 2022 10:37:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E5BB40A7B; Fri, 8 Jul 2022 10:37:01 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2066.outbound.protection.outlook.com [40.107.220.66]) by mails.dpdk.org (Postfix) with ESMTP id 78B21406B4 for ; Fri, 8 Jul 2022 10:36:59 +0200 (CEST) ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=AlJ9POPlcqsYJb5fG+GjnpsfobDMOQiT0PdnOZ6oLhfMzGBsjmmRvjOpwIhEapJSZuIDkipU4ZiJw6pNYBue693aEwdA0+uwIW3fTEGBT3BiRyg2GNkUhIJviEO0gtULgEeM7Yt+RshS0hdfGBrqERE3aIA7Jl1kVXqUvpPT39VXYn8ypLHPEQn1a445+j4YarGnHGVO4NKaa07JMOeZHY+bP3nuYcjGD6WsJgG47k0N2gpVBVrWbJwgGnYDdoeJc5lAG9STh6Kw1U8HU/rFS1yRQv4FECZ3vUu8RUMddEF+B/nS1kglrr2SjH+v7Ge8zv9Twrn4Qy2DyFtWO6nZcA== 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=IP+X0Z6etiyyncwPZA0EPorJz5vkdPs/sW0iP4tlAOw=; b=mJh4Cs6yLMuIImSnM/M9oy8elyXcvBT+77OGjN35SDs374TN5UflL2p1gsZLSHK+N6SwoN5MWiRZJXFqc28kq037L4LSNM9BGGKcur8s+jUyI8LlormNjxYCLRlBvNZRpgIIOYgybhuyZ4dCrvPsnXyZuPogGAmvgtLXfN65aXzEw8v8VfTfjyOHPmn4BB5T8e3ZVRXDjRa7NliYvfvBhhtToYULCmsO+Mx0fgx5TWedvWyTvP/PTsumXLpsokFi8ym5Srvop+3yJZJbYJBqkAVrLrFeND9eFWN1IQt4QMbfL12q33Xkf8kg/YEQJYoOgySm8BJGVS2ARoZUTKACWw== 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=IP+X0Z6etiyyncwPZA0EPorJz5vkdPs/sW0iP4tlAOw=; b=1qGYS+EZ1Bo35+uXdSCdcJ3NPqkCpXkd2GbxD+/b6RCgkPvSRuGoaHzU1pAkljvnoijwCS2NPDoUvmJkh/sVJdAFu0YkUm/+pph2DwB8Kplq+hHV2aJIs+kYmzJ1x3pUMqGInLGfqdTYUzUDqwYgbNrv4RN3P70cL853SeMWTmvL+YJZaA/56ukvq7g+LCr3zUEz0jtBZuKgGiG/FWUptVdYr9RsPfFhXYhdRdFRUfeU62S4f6S+DrLd1NE4iKsPoRz6Uib4R0G0hf4iPfZgXw90YxvDcguCDZSKNIae9fIoWjVN/9/fQQrVxy01Pjuw6nt7+i7f919nH+vV8gBAcg== Received: from CO1PR15CA0065.namprd15.prod.outlook.com (2603:10b6:101:1f::33) by DM6PR12MB4124.namprd12.prod.outlook.com (2603:10b6:5:221::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.15; Fri, 8 Jul 2022 08:36:57 +0000 Received: from CO1NAM11FT051.eop-nam11.prod.protection.outlook.com (2603:10b6:101:1f:cafe::f2) by CO1PR15CA0065.outlook.office365.com (2603:10b6:101:1f::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.20 via Frontend Transport; Fri, 8 Jul 2022 08:36:57 +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=mailrelay000001.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net; pr=C Received: from mailrelay000001.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net (20.83.241.18) by CO1NAM11FT051.mail.protection.outlook.com (10.13.174.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.15 via Frontend Transport; Fri, 8 Jul 2022 08:36:56 +0000 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) by mailrelay000001.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net (Postfix) with ESMTPS id 853C541F7C; Fri, 8 Jul 2022 08:36:56 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RFcQKF/EzbMYIe6tbZ9PR/eQJXS/3uJvpWIUU+rJ9tUQlR99n589KgVqwLS1AvJ+9wno38U8E6X9FanXZ4pf/nkREcQ5tb6i3wqAcAwbuAAN9ZAsup0mMDrwQFUOU6mr/As0X5G/qgeO/1gRXZlYO1djqHh+XbdelYZ7XV0kkv+CqGgTKOwipSo4yToiKdeaaGBzVda4KEaB3PwMQfG3efuyLkDQsy1Ah25zjVmLM20M3ui4rWzm0BWnHyVXcI6YtfzV8Myl0nMx3kmFPXWCW9R6UnslVybyxZyW9jcswOcpzG+gPNrCPvpQcNjoqEjXJ05+9lm3xhnBFdgFhnlqZQ== 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=IP+X0Z6etiyyncwPZA0EPorJz5vkdPs/sW0iP4tlAOw=; b=lOd27eeYMe+axxb7/qIPFBy/H+hIGTDiNqO6kDt9ibrH0NzPAjIGlpih0XxjZtKUFh3kXWf6PqRrNePAPfxZyPeHxP4veKx2RmmVcpag0yRr2o4YvxHKxZnKbpi6IGDtiG4O/TBowM7N0IlR9/lgRNze7wbNx0ZMCmJ30RX1m95S8mmm22zS9MVIvoidrSanwQEc67OFvPNCF5ClkzHBtv3GOSunV2c5pSm0Hvd1AweDbYhoBjtm6FteQPl0XlZhNkSQBNgeEWBqRPH4U5Q6s9Ns9r+Vp9mLt1m3NMJz0wt6Qnl0xxjv0yndTNwsHHTTmv4P8Z7nGF7AWv7WRD3g3A== 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 DM6PR04CA0026.namprd04.prod.outlook.com (2603:10b6:5:334::31) by PH0PR02MB7381.namprd02.prod.outlook.com (2603:10b6:510:1e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.16; Fri, 8 Jul 2022 08:36:54 +0000 Received: from DM3NAM02FT037.eop-nam02.prod.protection.outlook.com (2603:10b6:5:334:cafe::39) by DM6PR04CA0026.outlook.office365.com (2603:10b6:5:334::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.17 via Frontend Transport; Fri, 8 Jul 2022 08:36:54 +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 DM3NAM02FT037.mail.protection.outlook.com (10.13.4.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5417.15 via Frontend Transport; Fri, 8 Jul 2022 08:36:54 +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; Fri, 8 Jul 2022 01:36:53 -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; Fri, 8 Jul 2022 01:36:53 -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=47612 helo=xndengvm004118.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1o9jTp-000Bpy-8R; Fri, 08 Jul 2022 01:36:53 -0700 From: To: CC: , , , Abhimanyu Saini Subject: [PATCH v2] vdpa/sfc: enable support for multi-queue Date: Fri, 8 Jul 2022 14:06:49 +0530 Message-ID: <20220708083649.33945-1-asaini@xilinx.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20220708080135.31254-1-asaini@xilinx.com> References: <20220708080135.31254-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: 9930140d-41a3-4f7b-028e-08da60bd0491 X-MS-TrafficTypeDiagnostic: PH0PR02MB7381:EE_|CO1NAM11FT051:EE_|DM6PR12MB4124:EE_ X-MS-Exchange-SenderADCheck: 0 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: DK6lKfr73Q+t8nRiDeGPspE50NmuOAq6rFsdX6qFzq+VeUnIrUCLALtkvZ7mlHowMmWEchwx+0+Xai9qrZNk9FuSIiS2FNdo1qWG+bNMoaFKvUqvJEQaWmhMV9E/wigyd2v6Cnffbyk2uOmsGEQ51NcSj7M8tlQvjmCSBdiXd+A1nVmhHmT9fgv2wlo3Djq2jvFD1FrFH3KRoulLZ/NRz3sdt3mOPFxYBSUJ4VLRH4IQj3bGbvgtxCAUvQ6DySa+fgUXvCfWCHXKBr7VnOKoRat3rj6lXTANpkJwgpcWy6BeNLp5By7GwOHFXQwENOtol8fzcG4S8ohJiTfKPp/cAGsruB0bWRmtG4Yi/klJVvZgeaAfc35pAqkY8GU7e9dQjeu4J9xyhaXFDkUaikS+sLmklyFMH0HokUQu1GL1tlT1pvNT5KJ7hnxOWH1rDE6+DZrUkvbvb69m+m16N0o4N38SN/dVLUSPl6D75NhMBaTJJfX4IT6j8r3m2j4cZy5jeCfcOlTXYNRi5OPTVVdHcvhM+1e3s18+pDp5mVC8XWEFpJT+qOH28t75KLsVvLHtoIFiSJymT3FUNCGhoGlR0OcgGH2FPcFpvdBpeuhvQptT7tAO7lfdEqUhuwspygUqGGTl62mPkK6JOfptQcPbftrrfDnHmOPqEC4Z+Blp2Vk7yzau/PHN0EZg/fEslQ5PN3oqfqwvcluUzYa3JpcRYeES2F0Hl/7VkkK61kLYVH46WOouDQdmQzXUvt/O3nRdX2KIO/jZjCm9+2mAC2X6Kupm+qg3rbjVlzsplB7/yfsey84rqVqLk5iY/miX9UCV89RRA/i79m22aRW3hcR9R9W2JIvrnyh/eY21tt61Xt8= 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)(39860400002)(376002)(396003)(346002)(136003)(36840700001)(46966006)(40470700004)(40460700003)(2906002)(47076005)(2876002)(336012)(40480700001)(7636003)(41300700001)(54906003)(36860700001)(426003)(6916009)(186003)(36756003)(82310400005)(6666004)(83380400001)(316002)(478600001)(8936002)(1076003)(70586007)(70206006)(4326008)(26005)(356005)(7696005)(8676002)(2616005)(5660300002)(82740400003)(9786002)(102446001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR02MB7381 X-MS-Exchange-Transport-CrossTenantHeadersStripped: CO1NAM11FT051.eop-nam11.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: d6bbf321-8c51-4a8b-5a71-08da60bd0326 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bbEFqEZD/ClWMAd9tGHRuT40xitdZXWUAuLVqQGXCRWXfDg+gbcdOPFe0KkZjepb+0VCKGX7WKksZu4rEVF0lbzzD5nhHLoqqYBnMY/G+5xaajY2ZNe6wLZPzuMia4fiZms75YvKcVzRFniM4AfxQnHRYjo+k0qJn+v7mDbw7RhVwIHkVdUa1A4E00epDJ67Blb5nlh27I4AzMn6ke5/rA83KH9eTICw11DLQN8tCZtfCWjlm/z2PaBLa5oNDHhkDE+n5/pYhKqXs+VPr1e5AsFLie6tP99wdQnhPhYXNUbYzaqf3ugfsgRnDAyFxNesIcIQyjSjubuf2noOcS1vJKlA+Z4aa/sDrls9N80N82PgDriidqXDRjzw9uRrgmy43jZ6fwF3HjwhtRTlT1Zdkwb+Y8l8hp3RmShIqXI/Jy6n79el3cp8HcnCWEVE2VN6y6fpHn/bG5TnPOmqfcewLUAsry1AzQr5msSSSa1fgqtC6HHF/9PwCgFs7Le+G6PR56ytiCbWI76+v0CR142X5e4daVxzg8wtUtFbE1pcmXu6hhDAc+T/gRXXPWHm5mo2viYd20+fuEqXjsfnOwrBm4C07SExjGRUw3/DWtTj7x6xQl1brVFM4vY55erx9r6vqY8Q7FM3sDPQk0lj3Zhsm5M/kW3fi4tWb1vPD8LoKghrllYoPr9fRSTv2V1w6ygTpEXTviNflBKKiJRlXSjOKwmhs1CV8g1844WNSmV2zsRbNvg0vp8l2OknxnVy2NmwLAVNZ5nzIYfNx9nNooLmf1R/WF9tu0j5FKJb3UhnDwd3bR3tQ9il0mxBpC84dANq8wfn0frkYwCKQYaqjFu7gczeFe47NXJiSvBRXzJIyLUwGdB/3N5bLDxmetVI8lEZbp2eqJu5rPeqJi9GWr9Vr603c42hA4I3dPWZLMKlQg4= X-Forefront-Antispam-Report: CIP:20.83.241.18; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mailrelay000001.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230016)(4636009)(396003)(376002)(346002)(136003)(39860400002)(36840700001)(46966006)(83380400001)(426003)(5660300002)(81166007)(4326008)(70206006)(82310400005)(9786002)(41300700001)(6916009)(6666004)(8936002)(83170400001)(54906003)(36860700001)(42882007)(478600001)(316002)(47076005)(34020700004)(2616005)(7696005)(36756003)(186003)(2906002)(26005)(40480700001)(82740400003)(8676002)(2876002)(1076003)(336012)(102446001)(84790400001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2022 08:36:56.7575 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9930140d-41a3-4f7b-028e-08da60bd0491 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=[mailrelay000001.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-CO1NAM11FT051.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4124 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 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