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 F1AFAA0350; Fri, 26 Jun 2020 13:11:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D2C871BEC7; Fri, 26 Jun 2020 13:11:24 +0200 (CEST) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id CCB911BEAE for ; Fri, 26 Jun 2020 13:11:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593169883; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=Yh+/oTu4dWW/DctFGssBlsWWrVSgPYEgdvDdsCx1IR4=; b=dVtLKdUr14uCqw2k8HaY89x4iUAHz20JdOIV7RiKYgFMsZ1v/GYMJeY3gm5OibRzs5KTgN p60Tk92iMOrdkYECZlnK1nPt/bLYAXJvXvLahfxxtfsEcpy8///B8rpwoyaH4iYwGegJ68 7CRAhPNlGhnC1NuibGp43JfrjJ8g6kY= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-463-fUU8U6xnNg-18o30T2UJsg-1; Fri, 26 Jun 2020 07:11:22 -0400 X-MC-Unique: fUU8U6xnNg-18o30T2UJsg-1 Received: by mail-wm1-f70.google.com with SMTP id z11so10315219wmg.5 for ; Fri, 26 Jun 2020 04:11:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:autocrypt:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Yh+/oTu4dWW/DctFGssBlsWWrVSgPYEgdvDdsCx1IR4=; b=NV/CRA0Z5cuIjF42te9JsKAmJ9wGra9kFrc0ViRzfdRVjs42/6JLKK3DhwQdUSxEmT UDIPYnT+dIvaf5kZ5ZtmdRdsaGwoN6lJoIYNZPV0gQrgdMEHYMylDLtsMNWcehWxS93p qXdLFfbZ8r0tytp2VO3Fd7SMdHke+oJuaQXURQhhwImuNSI5w3OrIS5F857sgzfNnfBY wcAeXCUPGfetRRzl1MJ1Q86TVDORexOciy4zIuuEcDPomVxFc4qhmjFxPKcu7ZSF6uP6 JviPe6xFiUHVG2dRQvQqoI5HJlSLYiuLM2VzlwMfHk/6qKxTN/JG4SEcffUa2tOp97oN 0e+A== X-Gm-Message-State: AOAM530PkRDpLtQzSqwHg2aX+TXD68swFiOExDRoydF5NLSjLV7ka6L6 llBm/wgpIl3+uUTILjmdLQD5fANImz5Z+oz6vBX6THmnFBYprdqH+L5PV5rD4J95VoV7ZVYOjnI Hkjo= X-Received: by 2002:a1c:8192:: with SMTP id c140mr2748285wmd.108.1593169880536; Fri, 26 Jun 2020 04:11:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCj68oPWz79BEKIuHaTPW0VjcS1NWfGwzgohlMtBndzYRk25TTNUPgn3+9gC1FguHdJYKq0Q== X-Received: by 2002:a1c:8192:: with SMTP id c140mr2748273wmd.108.1593169880363; Fri, 26 Jun 2020 04:11:20 -0700 (PDT) Received: from amorenoz.users.ipa.redhat.com ([92.176.159.3]) by smtp.gmail.com with ESMTPSA id y7sm31052878wrt.11.2020.06.26.04.11.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Jun 2020 04:11:19 -0700 (PDT) To: Maxime Coquelin , matan@mellanox.com, xiao.w.wang@intel.com, zhihong.wang@intel.com, chenbo.xia@intel.com, david.marchand@redhat.com, viacheslavo@mellanox.com, hemant.agrawal@nxp.com, sachin.saxena@nxp.com, grive@u256.net, dev@dpdk.org References: <20200624122701.1369327-1-maxime.coquelin@redhat.com> <20200624122701.1369327-14-maxime.coquelin@redhat.com> From: Adrian Moreno Autocrypt: addr=amorenoz@redhat.com; prefer-encrypt=mutual; keydata= mQENBF1syNUBCADQ9dk3fDMxOZ/+OQpmbanpodYxEv8IRtDz8PXw8YX7UyGfozOpLjQ8Fftj ZxuubYNbt2QVbSgviFilFdNWu2eTnN/JaGtfhmTOLPVoakkPHZF8lbgImMoch7L0fH8wN2IM KPxQyPNlX+K9FD5brHsV1lfe1TwAxmhcvLW8yNrVq+9eDIDykxc7tH4exIqXgZroahGxMHKy c8Ti2kJka/t6pDfRaY0J+6J7I1nrn6GXXSMNA45EH8+0N/QlcXhP3rfftnoPeVmpjswzvJqY FNjf/Q5VPLx7RX0Qx+y8mMB2JcChV5Bl7D7x5EUbItj6+Sy7QfOgCtPegk9HSrBCNYaLABEB AAG0I0FkcmlhbiBNb3Jlbm8gPGFtb3Jlbm96QHJlZGhhdC5jb20+iQFUBBMBCAA+FiEEogUD gihhmbOPHy26d5C5fbYeFsUFAl1syNUCGwMFCQHhM4AFCwkIBwIGFQoJCAsCBBYCAwECHgEC F4AACgkQd5C5fbYeFsX7qwgArGHSkX+ILNcujkVzjTG4OtkpJMPFlkn/1PxSEKD0jLuzx14B COzpg/Mqj3Re/QBuOas+ci9bsUA0/2nORtmmEBvzDOJpR5FH1jaGCx8USlY4WM6QqEDNZgTw hsy9KhjFzFjMk+oo3HyItXA+Uq9yrRBTjNBGTXxezMRcMuUZ4MIAfY0IRBglL2BufiuL43jD BvTENNFLoQ/wFV7qkFWSkv+8IjTsxr7M6XUo1QLd29Hn0dvwssN579HL1+BP46i2REpzeBEG L75iVChi+YnIQQNMJ9NYarVabZx4Y1Gn8+7B/1SNArDV+IDgnYgt7E58otoV2Ap310dmtuvE VbxGpbkBDQRdbMjVAQgAqyp9oA7WDu7/Y9T4Ommt69iZx8os7shUIfdgPEy5xrcPn6qGwN1/ HQ4j8nWfBG9uuX1X0RXUZIUEtYTxtED4yaCQMTqDUf9cBAwAA2mYxBfoiNYx8YqxM+sT0/J4 2qmDd+y+20UR4yzHE8AmIbspTzDFIJDAi+jKSR8F355z0sfW7CIMDC4ZWrPsskjEy1YN/U10 r6tRRH1kNyrCSbTG0d9MtcQO58h7DLXuzUhErB+BtG52A04t5cweIJTJC+koV5XPeilzlHnm RFoj0ncruGa9Odns21BNt3cy9wLfK+aUnWuAB1uc6bJGQPiAwjkilz7g7MBRUuIQ2Zt7HGLc SwARAQABiQE8BBgBCAAmFiEEogUDgihhmbOPHy26d5C5fbYeFsUFAl1syNUCGwwFCQHhM4AA CgkQd5C5fbYeFsUlSwf8CH+u/IXaE7WeWxwFkMaORfW8cM4q0xrL3M6yRGuQNW+kMjnrvK9U J9G+L1/5uTRbDQ/4LdoKqize8LjehA+iF6ba4t9Npikh8fLKWgaJfQ/hPhH4C3O5gWPOLTW6 ylGxiuER4CdFwQIoAMMslhFA7G+teeOKBq36E+1+zrybI6Xy1UBSlpDK9j4CtTnMQejjuSQb Qhle+l8VroaUHq869wjAhRHHhqmtJKggI+OvzgQpDIwfHIDypb1BuKydi2W6cVYEALUYyCLS dTBDhzj8zR5tPCsga8J7+TclQzkWOiI2C6ZtiWrMsL/Uym3uXk5nsoc7lSj7yLd/MrBRhYfP JQ== Message-ID: Date: Fri, 26 Jun 2020 13:11:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200624122701.1369327-14-maxime.coquelin@redhat.com> Content-Language: en-US X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH v2 11/14] examples/vdpa: use new wrappers instead of ops 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" On 6/24/20 2:26 PM, Maxime Coquelin wrote: > Now that wrappers to query number of queues, Virtio > features and Vhost-user protocol features are available, > let's make the vDPA example to use them. > > Signed-off-by: Maxime Coquelin > --- > examples/vdpa/main.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/examples/vdpa/main.c b/examples/vdpa/main.c > index 54f4940b31..d59c7fa9b4 100644 > --- a/examples/vdpa/main.c > +++ b/examples/vdpa/main.c > @@ -301,13 +301,13 @@ static void cmd_list_vdpa_devices_parsed( > vdev = rte_vdpa_find_device_by_name(dev->name); > if (!vdev) > continue; > - if (vdev->ops->get_queue_num(vdev, &queue_num) < 0) { > + if (rte_vdpa_get_queue_num(vdev, &queue_num) < 0) { > RTE_LOG(ERR, VDPA, > "failed to get vdpa queue number " > "for device %s.\n", dev->name); > continue; > } > - if (vdev->ops->get_features(vdev, &features) < 0) { > + if (rte_vdpa_get_features(vdev, &features) < 0) { > RTE_LOG(ERR, VDPA, > "failed to get vdpa features " > "for device %s.\n", dev->name); > Acked-by: Adrián Moreno -- Adrián Moreno