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 0F742A0540; Fri, 8 Jul 2022 10:01:54 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E4F4A40A7B; Fri, 8 Jul 2022 10:01:53 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2055.outbound.protection.outlook.com [40.107.243.55]) by mails.dpdk.org (Postfix) with ESMTP id 9F977406B4 for ; Fri, 8 Jul 2022 10:01:52 +0200 (CEST) ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=ChPtJGHR8o/IkTASxMJ9Po4/Gr/Q41Vvit5u5CK3Fd4+lGRMaczB7D6qmCvrHcbK45svhTgsTVFI/FcoqCCIpZ3hp0TpwG8v7cU2+wQxobJ17EU5o32lzlITKNn1OnzXVwkyF/nqtA4QEiKNV0Q8e6fd1Ve+9TU3waCx6SK9JYcnkO2RrQXv0SJvKXjLdbf8N08Zu3B6B3XJL0JSOFmSU19vkNXKnqBkwq+pb/ymUfozDV6fVIGKQFgYCKROcs12x3zf//u2RXldNZg//JsHMxXKNlwxjbM15QW2+99WMdasMjq48BOX0W8RKNlDft/FdHFAlUIxRd/1D55HIKSfAA== 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=d48044qfbp26EECyB3VfS+reesJarkWF+E2j9bUk4IS5Ut6HBb+annb5fl044TNsRC1s6AWfDStapaT3obsD/Fxi54IBCAUs6YKFX55i1IKiDUV3NJzeS5zcBDKXPjJ10qXsW833YaNovuVIO+UVDyeGv6TEc3fboAFlPUmz33p5QxUvdKRhXeiKd707vxzX41wrC7MzBgx9D72iNCc2OEE63O4/xu/82mTCrvJ8flSXZvDFUp3ZNb9jvlSuU8PEiesCmJie0WxAJvGAPitvpPj1MINGmSIt5tVFTaJQDFqu+LWlsccjV8qH3AScOueaIEpr1H+CEyYDwAUt/hrVdA== 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=MVrej1kggCHKK+mRhFwaDyRzxf/0j5uLL5IfLQA6iKng2pJJx7Nlrqzgf0kKsCtknaoPUwpDyaWuuBMbj/7RG3Mxlzo7PaT7mrO/Zr17ugzK07K8mpwkvgiOgGF0u+FnHnTpEoOHabqIR8dOak3LRnr7reAmwXO5m68QorPV9y2BLPLinuOflcmirdjwumXsy40LxRFJKRYTUON/Ujuq17m3cNka2ertrhCDzVCFqr69l7lMBW2Jdp4RE6HDiKGGhUOG8UFLSi/Ntyh2NUiRxyL08Q6+KD6zgQHCv48THbcYXO7LYTxkJuVwzIadFCxzVQJtS15chQYn7s1n61QU1A== Received: from BN9PR03CA0655.namprd03.prod.outlook.com (2603:10b6:408:13b::30) by BN8PR12MB2865.namprd12.prod.outlook.com (2603:10b6:408:96::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.19; Fri, 8 Jul 2022 08:01:50 +0000 Received: from BN8NAM11FT007.eop-nam11.prod.protection.outlook.com (2603:10b6:408:13b:cafe::54) by BN9PR03CA0655.outlook.office365.com (2603:10b6:408:13b::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.15 via Frontend Transport; Fri, 8 Jul 2022 08:01:50 +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 BN8NAM11FT007.mail.protection.outlook.com (10.13.177.109) 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:01:50 +0000 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2176.outbound.protection.outlook.com [104.47.55.176]) by mailrelay000000.14r1f435wfvunndds3vy4cdalc.xx.internal.cloudapp.net (Postfix) with ESMTPS id 825103F250; Fri, 8 Jul 2022 08:01:49 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WH//CS8l1Sp5Sx3xZe0yo5pv3QxHxEi8sX0TqJ2jevHBrqTuuYTmWCRklrh+sEu++PlLPA6PUsZG3ZL8F1w1eH6MCOVa4lTvw2LPNlVtULhchT1e9eu2w+qcWN6kfk8Usd69+3qLNS5eHgHQ7iMxyPMoJyZMD2+Kal/aWA87d79eTxXuLte6w6aimyLO24gYb05Y+gwV6Zs3s5sxnybB1ad8rSHrc5DZ7nSaMBUXfr2Q4PCd9UmIwtEf5UBZ0vYq44SYoFYTwQNe7gRRw01UFPUb/2bhdDXNA1k6xpXzTIkWCtfgH8GCGU377HAzXI9FDLMHtD3jpumotQsNfULNTA== 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=eGrorUZkVp7gTjsC387D4QAVigFRITzo6AdIM7MhJTsF4CEP00At2oSfOfBfOplB8s2cnG1eur5Q8leh9zbbULobScXr10v9gtIn8H6hsCJoHJTura7hlHRu+dTEmhZ7wWGStotUOV/yw7kX0nPmrGXPbrlSREStp0/xVi7oecM/wUoJZS4N40Yi2TUHoQ0H3bIuEVc2MvQcwOZgkdc4LrP2Gyi0KNFF8A3ACufTxT7Dd47piIIdkKye1M2iz33ScKllLOzPmuwE5l/CGXPifR8GOH77SEIqGEyCZvotCj85QTpkfio1t9HYaDom/8PlCzOPmTWd3oNMQvoYjkKyqg== 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 DM6PR11CA0063.namprd11.prod.outlook.com (2603:10b6:5:14c::40) by DM6PR02MB6825.namprd02.prod.outlook.com (2603:10b6:5:21a::14) 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:01:46 +0000 Received: from DM3NAM02FT037.eop-nam02.prod.protection.outlook.com (2603:10b6:5:14c:cafe::f0) by DM6PR11CA0063.outlook.office365.com (2603:10b6:5:14c::40) 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:01:46 +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-pvapexch01.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:01:46 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) 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:01:44 -0700 Received: from smtp.xilinx.com (172.19.127.95) 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:01:44 -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=47558 helo=xndengvm004118.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1o9ivn-000Gpx-Pk; Fri, 08 Jul 2022 01:01:44 -0700 From: To: CC: , , , Abhimanyu Saini Subject: [PATCH] vdpa/sfc: enable support for multi-queue Date: Fri, 8 Jul 2022 13:31:35 +0530 Message-ID: <20220708080135.31254-1-asaini@xilinx.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 0e8c55af-4159-489b-94a8-08da60b81d30 X-MS-TrafficTypeDiagnostic: DM6PR02MB6825:EE_|BN8NAM11FT007:EE_|BN8PR12MB2865:EE_ X-MS-Exchange-SenderADCheck: 0 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: zOa71SMp+8dXJpyemuW+4xqN+/IYkuqO8w5ocnUfeKitn7EF0vD7z+3cuN0Aw1+runAulpl8MCDl5c8Lu6fVjch+snsZgHrY/dttY+/eFyaaqfYXRniBK9NVakLnBwQNDHD7iTCC0ucV36Q9nddmcwJKWmOeMTZ9G7k9xvEHx3MBODh5n7jQcacaGW/8hT2nUgayCoHaLqdffsrRRGfx3JxUtLEw+VCwwvbgMeWkv1AA4WeQWrN024oM44bcc+4ifjly7gJr8YW5x0LX7avN+52Uc44MKk3Y2tm9XgyXc4+Wswq7VV3v5xq7O/I8cs/+laik60+bCZVC5NM1Skvq51ynsxTqtnuHI8W6LDD7dQ0y0q+0nEOcUmcHUxRJnbv+VshaRP6zx3bU0/84ldvjuLWFFm/E+IDyd7WKkI9DJmVJsaQJwhuXBoZuPOW0GutN1thnPcXhBq1M2Xlbb3BYiJdCYUxVCaS4d351Jbiq5PxjHlzEH+xTAgBa1ykfJHKoz1m9Iz8K+Nis+8M6W2riLFnjotqSfoeYfK7H6zVlc/9cjRX8/oWhGmy/hdbPsnvhm3ProL695tlJ6m/Tp2rMUoFmiOB2i8AdNG1pmsRg2QRIEOxUrqAS2zhKuHMnU3UBHJrQZ/JIIoXhc8H7DO5tJDlab/M2qRuGK49HQmAo+0RKn2VbubO6TqOWq1GSx6kgFLnuNSjKIK2snc+MMCRHGdTzKee4XwE22OqEK7S8uxaQ3XO4vyDCApXI/arS95RPbCT48veImVrYP8LwOgNrc/d4rxqb5yhxJhp5a+VaKXt2vQbeQgdWw2iEem8o4JxGi5kBZmfk3vvu7RHKWsluLQ8wC+wGJ+Bv9jTByKm3R/Q= X-Forefront-Antispam-Report-Untrusted: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch01.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(13230016)(4636009)(376002)(396003)(39860400002)(346002)(136003)(40470700004)(46966006)(36840700001)(9786002)(82310400005)(70586007)(41300700001)(8936002)(5660300002)(316002)(7636003)(70206006)(54906003)(40480700001)(186003)(36756003)(2876002)(7696005)(82740400003)(2616005)(356005)(336012)(26005)(4326008)(6916009)(47076005)(426003)(36860700001)(6666004)(8676002)(1076003)(83380400001)(478600001)(2906002)(40460700003)(102446001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB6825 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN8NAM11FT007.eop-nam11.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 4dfa39b6-b07c-447c-4988-08da60b81a8c X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XKSj+TArChDQyYNW5VFF5UBD0FSgxSVYT5rS9vP94pxYelGimM0mmn/S/e5T3pwdTKwzGcchN1VwKaM9rj9gKusB385tOg7Et2rAizOjOWyQUBLP4h8A6g7POlb9IIfxhhJ16VQDja8INPs6fr4i9KXo2vWoJEMSpwAGBH4icO7fJ5mk9dpzakS5duHWP4wZY7TMubbyXVp/w+t3clT4zJ2zXzNlF5/OmDKQVEt63YiMLmyBeKsLA7J3vmMfRXS/ctsAb7rwaeG1WkijXsxalmuHqLfD2+VGoipPvqlEDB8Vxj0wZRrpk59fJOMHY/9F2943wmcmrQSEP3UEvJ55SmJVGPs2WE0bty2hkn1LaOWnrAgbC1iEMKvJ44Kq37eJQlPOctVTxk7vHxzN2sbeBs5t4Gw1n0nQ3ulk5y+4Qq48/EhvKzFMUNjt+qo0RWRD9PbRIboy80DkTks5k0UobnW9oujha2uQXLaTm9VVe/hN4Z4vT786MMKvDszfGSTvKcfpv6j1hfrN8W0K4WIti2BHkHpU6AOOcKAiMc4SHXJp/pdPBAQyVmnbzHfP3dTxKeUiOxoYZ0N9vCfVPbO1G3/h4oxnXajX3p14UYRbvofBCrlP5UhL1MMaFFCUpgAy333JAkIu3rM61lheFC/u+5vA8M8uO+SB//Hye329kVGt0p2DXB582eFGxMoxqLBh248ZEte69siA43+ALFWnA6c79Ienbi+lKF9xXokDGz/NAfREObyPkMRE3A/BXOphjZAhkrNv/OD8EytSUfsTadXgPC4n8roA+FPAoZlOfnUQDwM+PmcMWMh6d8RuTRu2tsZDoMoYYVJbDpCYmUsfYgYmlLrvNogUzjt6iLPNdWX3cUSGogJ/PRQju6+x2BKy3v+n3+UgvW8pYuyJsrVObS6L3p6dbquBFC7GiVnmydQ= 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)(376002)(396003)(136003)(346002)(39860400002)(46966006)(36840700001)(1076003)(82740400003)(83170400001)(9786002)(8936002)(82310400005)(8676002)(478600001)(4326008)(36860700001)(5660300002)(336012)(70206006)(34020700004)(40480700001)(2616005)(6666004)(81166007)(26005)(54906003)(316002)(42882007)(6916009)(7696005)(36756003)(426003)(41300700001)(2906002)(2876002)(186003)(47076005)(83380400001)(102446001)(36900700001)(84790400001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2022 08:01:50.4131 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0e8c55af-4159-489b-94a8-08da60b81d30 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-BN8NAM11FT007.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR12MB2865 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