From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00089.outbound.protection.outlook.com [40.107.0.89]) by dpdk.org (Postfix) with ESMTP id 5A05B11A4 for ; Mon, 10 Sep 2018 08:02:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dld9Q6wHrkOuj49CzzMZbb5lEakJztc2FHLRrfY8IR4=; b=LVF9K9QCnzN+4g7eJy3pbgq2e5hUqYQ4UgX28knkVcDEuJjCH4PVtwDc8703r14FrI2A2y0ATblvGAtqa06p9KhW+wMwGUW3qEjtIQxV2rG/LsbFOUW5zxP+f6JkjA/31zCUfO/QNKon3P1p6TWE9IS1tBbQe4njno/MkA6P9ZY= Received: from VI1PR08MB3167.eurprd08.prod.outlook.com (52.133.15.142) by VI1PR08MB3359.eurprd08.prod.outlook.com (52.134.31.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.15; Mon, 10 Sep 2018 06:02:19 +0000 Received: from VI1PR08MB3167.eurprd08.prod.outlook.com ([fe80::b91d:e285:4647:f3e8]) by VI1PR08MB3167.eurprd08.prod.outlook.com ([fe80::b91d:e285:4647:f3e8%2]) with mapi id 15.20.1122.019; Mon, 10 Sep 2018 06:02:19 +0000 From: "Gavin Hu (Arm Technology China)" To: Jens Freimann , "dev@dpdk.org" CC: "tiwei.bie@intel.com" , "maxime.coquelin@redhat.com" Thread-Topic: [dpdk-dev] [PATCH v5 05/11] net/virtio: dump packed virtqueue data Thread-Index: AQHURg5RYxLLPCdLykWSqWp5sLaNZKTpC2wA Date: Mon, 10 Sep 2018 06:02:19 +0000 Message-ID: References: <20180906181947.20646-1-jfreimann@redhat.com> <20180906181947.20646-6-jfreimann@redhat.com> In-Reply-To: <20180906181947.20646-6-jfreimann@redhat.com> 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=Gavin.Hu@arm.com; x-originating-ip: [113.29.88.7] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR08MB3359; 6:HQ4X6cqAbaZQqmQ9J/SKCMfRba04IAt0MXGZxNV/X9uB8Jw7hoFRPdHzcagyeOxiSkiuQpEKdKL8lxyVUxlF11SE5YURdwWVp3i13tbfWHHcSAY2RlBnOr9EnWfxYcUnMrsExvRoGrFNMhMpa/cgs7XOkW+qBqFIbDSgHfBuUzbQeJvYAWaOx0aLeU2SQC3DPAVsGpnEs+SU4NlAtr84HOrB+MNiXQ0SEph9ZUWe2lxdh7uk/hlFu7mh30189jtuY1stXCYsDYXIe0cZdkZI0n+jWjPcf1KLp8/ndxLuT55JFCfAj8js3pd6ABuYJl7b65FbnpLDxakeXnbp7MLqd5LzMVP+p2mKhcudOV+FUJ3Ys7RYF3W0FpqQg4Sah/vOJ2Y/fMv/XHaRXg9qiq8bUM8nPu9Omi+LnZsKDYfotAPUYHj5zUP/4iVCXZ5LH/D6vkPcDgUbG9b4xwuhXubWKg==; 5:tKFVIXw6RaC6DjqCL2u2juNa+uu66Bgif5Ctn74sFCxRk1hDthGM+g4uRpJqDgrVZqZQ/kpkar+pCeB5Nocl/mFgHUnl1+BwtS6BK3mPeOv52iLjyJ1gRt1K1OeYDxMk29zUrbKFOFqH/JEGUGqGG4vMc5d5LPvR5iTB/J/yIsA=; 7:n1hKa6V0Ux9NorpqN88zjjlzaLqvLg4GeXurGnPmz0lMngzy2IWSKnwe5iN5KfpfK2aR+rlMn2D61bqIA2synNprtOPabxxJekwfxboyjJGu26RL0BSI48lsBXPEtmz1hPem5a0dlTh0y4KAM+WaSCK0KmxZgpMpB9OSiAM5pXNBc9vDxGYW47OUO5v9kqE6VkcPpnJ4L6t6HTCK4xfTp/ukP/CAEdQyB24sESlJUKALX0z0JpqktENoOsJSd5hf x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: ce75a93c-8ad0-4fa6-d490-08d616e2f7f2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR08MB3359; x-ms-traffictypediagnostic: VI1PR08MB3359: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917)(103651359005742)(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231311)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699050); SRVR:VI1PR08MB3359; BCL:0; PCL:0; RULEID:; SRVR:VI1PR08MB3359; x-forefront-prvs: 07915F544A x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(396003)(39850400004)(376002)(346002)(136003)(40434004)(13464003)(199004)(189003)(25786009)(4326008)(72206003)(229853002)(2906002)(478600001)(446003)(11346002)(33656002)(8676002)(2900100001)(66066001)(74316002)(6116002)(14454004)(3846002)(26005)(7736002)(5024004)(5250100002)(486006)(476003)(256004)(5660300001)(14444005)(305945005)(55016002)(186003)(76176011)(102836004)(2501003)(7696005)(9686003)(105586002)(54906003)(110136005)(106356001)(8936002)(316002)(55236004)(6506007)(53546011)(53936002)(68736007)(99286004)(81166006)(97736004)(86362001)(6436002)(6246003)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB3359; H:VI1PR08MB3167.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: S8Znukhj04t1aFlPP2UgH97axtqUIttM9VaS8MIme75saHYt0n+FgzTQ2IV99Prq1SRu8ypmtzV1T6gPppa21KxbTkkoHHS0W+WEbsBqtJBYkpDjSJsM0kRC6Y8qOdL5F42Nfl9Ojk+6zkOvOM44XthoTwBDSp7vwpb3L2tIbPeBAwk/XFoiNg8d8yct6jzicaNcnFtjuTpSfe8/msC+AP0VFoevqoErUC8CJUzpXRvSR5Dxb6I1VQ4Z3UNaaklkx0s/Lp9Po/1bvup+HETDFl0g9Vsd74cMdM8mwm3UmO9oGEQtEaUqMDjX2g8X0Old0MFD0qbaayavaNBIs5iZt4h9/xI1/K6CStX0A0wSIp0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: ce75a93c-8ad0-4fa6-d490-08d616e2f7f2 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Sep 2018 06:02:19.6449 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3359 Subject: Re: [dpdk-dev] [PATCH v5 05/11] net/virtio: dump packed virtqueue data 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: , X-List-Received-Date: Mon, 10 Sep 2018 06:02:21 -0000 > -----Original Message----- > From: dev On Behalf Of Jens Freimann > Sent: Friday, September 7, 2018 2:20 AM > To: dev@dpdk.org > Cc: tiwei.bie@intel.com; maxime.coquelin@redhat.com > Subject: [dpdk-dev] [PATCH v5 05/11] net/virtio: dump packed virtqueue > data > > Add support to dump packed virtqueue data to the > VIRTQUEUE_DUMP() macro. > > Signed-off-by: Jens Freimann Acked-by: Gavin Hu > --- > drivers/net/virtio/virtqueue.h | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/net/virtio/virtqueue.h b/drivers/net/virtio/virtqueu= e.h > index 53fce61b4..531ba8c65 100644 > --- a/drivers/net/virtio/virtqueue.h > +++ b/drivers/net/virtio/virtqueue.h > @@ -384,6 +384,12 @@ virtqueue_notify(struct virtqueue *vq) > uint16_t used_idx, nused; \ > used_idx =3D (vq)->vq_ring.used->idx; \ > nused =3D (uint16_t)(used_idx - (vq)->vq_used_cons_idx); \ > +if (vtpci_packed_queue((vq)->hw)) { \ > + PMD_INIT_LOG(DEBUG, \ > + "VQ: - size=3D%d; free=3D%d; last_used_idx=3D%d;", \ > + (vq)->vq_nentries, (vq)->vq_free_cnt, nused); \ > + break; \ > +} \ > PMD_INIT_LOG(DEBUG, \ > "VQ: - size=3D%d; free=3D%d; used=3D%d; desc_head_idx=3D%d;" \ > " avail.idx=3D%d; used_cons_idx=3D%d; used.idx=3D%d;" \ > -- > 2.17.1 IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.