From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 04F07A0563; Wed, 15 Apr 2020 13:52:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DA4951D166; Wed, 15 Apr 2020 13:52:51 +0200 (CEST) Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30057.outbound.protection.outlook.com [40.107.3.57]) by dpdk.org (Postfix) with ESMTP id 6CA321D153 for ; Wed, 15 Apr 2020 13:52:50 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xf8fgXQKyXPCvSuQsdQxCYnXCI6aQdHGbbue4O4+bi4meLtrQSd5rsyDYjtoNoNjV17+q5S+v4lmHoBedlEVnAGk/c6YaggOPiRWostH259gIdbdBPr/USy3KSiVgQwvL4eH08fZVCUsdcNN51LjPW1ChieVoVFsRT8IvudNd+Jq2KQxOTGCnNxSdjo4B0WholGJGk5dDfQzoqeHpaC50iG5O9AeiWwhZCsmLdUlGEDvZypYjhlcFvyCDirc7PvcI0bJ/EGnCk/ra024NHZQ3SFTFKE9Gx0n714voIrSdNY/DHEW29jWaHq/+7tyEKaZ2AOSXqbEasgCJ9OFHr0N3Q== 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-SenderADCheck; bh=XayvQ8SW9Ts74Z0KO3dm+Ygrwc/xCYPCd0JRNLVy/0Y=; b=UDvVkFsJzeiHrgswi5zb+MOrtPRLmhAxg7TU2iuCDP+1Gc06tzAJfklfaK38eGHkzCdwsqddc7G2wqGzspSJrEzcCvniC3HfIjXFc6gFiGIuYaMIhD5ya+C8XJnsRZb0uPIxRQEZ1Yo7DFMWa6nIMlH0nFF+iDbK6HLE4o6u+uqDH5e/m+/bwrFicrRR6Ds3HDtim3KsqRz1ahuCUh15Ai+prn3Us2KZO0Cp0QbIKgRtniyR2zJ6S/0ydPBzwTRYiCyMc00O7z3/SvFl6IuaKoBrLOvDkeN2yBVqfbC7P/c/HD0oqkTSuGb6aZfRrq3dMbdFhi8uzxvDyezljWgOnw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XayvQ8SW9Ts74Z0KO3dm+Ygrwc/xCYPCd0JRNLVy/0Y=; b=dqtmeuMiFJWElw8EIt/zo2k+ZXo8aK0YapsXJHZTNNnFbZNddJ4TijcC+mg7fyyQh0E56jIpSucy7+NurmiuTRJ8Yu0TwX5kkP4hxEGzBYy7dJcdIwFpgmBf4UvtMg1KzixGp8hlOgCO7di757KOp3AkscYDSZEvvYjtHO+betw= Received: from VI1PR05MB5693.eurprd05.prod.outlook.com (2603:10a6:803:d9::23) by VI1PR05MB6157.eurprd05.prod.outlook.com (2603:10a6:803:ca::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.15; Wed, 15 Apr 2020 11:52:49 +0000 Received: from VI1PR05MB5693.eurprd05.prod.outlook.com ([fe80::f50f:1ae4:52bb:ce7b]) by VI1PR05MB5693.eurprd05.prod.outlook.com ([fe80::f50f:1ae4:52bb:ce7b%7]) with mapi id 15.20.2900.028; Wed, 15 Apr 2020 11:52:49 +0000 From: Asaf Penso To: Maxime Coquelin , "dev@dpdk.org" CC: Slava Ovsiienko , Matan Azrad Thread-Topic: [dpdk-dev] [PATCH] vdpa/mlx5: set default queue indices Thread-Index: AQHWATuKrBvwyjhGaUmLu5XxVdu9F6h57kEAgABIBiA= Date: Wed, 15 Apr 2020 11:52:49 +0000 Message-ID: References: <1584985813-14883-1-git-send-email-asafp@mellanox.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=asafp@mellanox.com; x-originating-ip: [77.124.83.176] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 44055bf6-7b97-461a-b6da-08d7e133856b x-ms-traffictypediagnostic: VI1PR05MB6157:|VI1PR05MB6157: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4714; x-forefront-prvs: 0374433C81 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR05MB5693.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(136003)(376002)(396003)(39860400002)(346002)(366004)(71200400001)(76116006)(53546011)(5660300002)(8676002)(316002)(66446008)(66556008)(64756008)(6506007)(66946007)(66476007)(186003)(110136005)(54906003)(55016002)(52536014)(26005)(7696005)(4326008)(33656002)(86362001)(8936002)(2906002)(81156014)(107886003)(478600001)(9686003); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: b068KJKMpW+Q2MDU63ljkEKMMe4OsmdiC/vknTZe2mG50fRXIgiGb4dFRndk8EzxgCBx/4Ci5oiO6K7/IMZd0p5ErT2jBSIa3SZewFCmvcTxYODoHnR5hEnLTjgjbXcj2N3WSDTaKfHAPwKH6vei0UHlgkglr28KFGz31FeJLzA+pbJwkwl/G0c7XaHOBuoNPmJ2tdVjhYfu1/cwakvuK+EZjvdafZt7NrnB/XK596l1rrcikQJsOU/R4YwUlsWHxkMahjZoiAvmVo4bv1oSFwxui7KiKvRnKy3ZyXLGz43YqNFCXmwT/+Kubbj5mDhnKc2oDX8rc5v3XDXMogRdQ2Qn0YC/ua67WutgaBe5t9/QiqD6QVtdUmLsV8U3b82akIlAOeHz7b9cRQAwVZjqYit2o7q4msbrZH3Mvmgvo1aOfDsNXriPpwmmpNjI5duA x-ms-exchange-antispam-messagedata: ty+v4GedmIzhg+L4LprBd0J9e1nt+/zLTH+ev7M2zkUD+9uyrnwGbooan20aggFjjYTFVN4oqURvOWjxqEj6TcqLjuSM2xFp6Wgh+KmSwGG23fpFuWmOyrHXaencNBoyCG9CLcsNlpPsTO80LlL3gA== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 44055bf6-7b97-461a-b6da-08d7e133856b X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Apr 2020 11:52:49.2456 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: GcA1vVypP3C765gbbTHRZZ4h+Yc8RoopliSEi9NEZRRkceWTv6yUmb8tWHXeCcRfAqfO5q2XLsdAV/ZWle1RfA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB6157 Subject: Re: [dpdk-dev] [PATCH] vdpa/mlx5: set default queue indices X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Thanks Maxime. Regards, Asaf Penso > -----Original Message----- > From: Maxime Coquelin > Sent: Wednesday, April 15, 2020 10:35 AM > To: Asaf Penso ; dev@dpdk.org > Cc: Slava Ovsiienko ; Matan Azrad > > Subject: Re: [dpdk-dev] [PATCH] vdpa/mlx5: set default queue indices >=20 > Hi Asaf, >=20 > On 3/23/20 6:50 PM, Asaf Penso wrote: > > The rte_vhost_get_vring_base function is being called to get the values > > of last_avail_idx and last_used_idx. > > These fields will not have the correct values in case the function > > returns an error. > > > > Adding a check for the function return value, and in the case of an > > error, set the fields to be zero and print a warning message. >=20 > Fixes tag is missing here. > I will add it while merging: >=20 > Fixes: bff735011078 ("vdpa/mlx5: prepare virtio queues") >=20 > > Signed-off-by: Asaf Penso > > Acked-by: Matan Azrad > > --- > > drivers/vdpa/mlx5/mlx5_vdpa_virtq.c | 13 ++++++++++--- > > 1 file changed, 10 insertions(+), 3 deletions(-) >=20 > Reviewed-by: Maxime Coquelin >=20 > Thanks, > Maxime