From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00047.outbound.protection.outlook.com [40.107.0.47]) by dpdk.org (Postfix) with ESMTP id 537B010BD for ; Mon, 10 Sep 2018 07:22:46 +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=qmfp2E3HKXeEwtBmfZcihdOX7u5YN6Tc2Gap7ykYCnc=; b=CrlgUKCqfKd6JsDOrhVQdEsftEyklrlynUeSU4nok6Np28Gsen+26TCdvr/CbaM5EENfTBdUczWqSXcMaIUvekMXVGeHK4vuq59NkgmxWEEYUYgWfyo6HWCmCOxrUtMm7DifFw+SnJw1gtFUE8up4RKbCgoFpmkHQdP6OBNqwLA= Received: from VI1PR08MB3167.eurprd08.prod.outlook.com (52.133.15.142) by VI1PR08MB0942.eurprd08.prod.outlook.com (10.166.143.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.17; Mon, 10 Sep 2018 05:22:44 +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 05:22:44 +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 02/11] net/virtio: add virtio 1.1 defines Thread-Index: AQHURg5CL85AHkg0tkOQrwKUghVinKTpABWw Date: Mon, 10 Sep 2018 05:22:43 +0000 Message-ID: References: <20180906181947.20646-1-jfreimann@redhat.com> <20180906181947.20646-3-jfreimann@redhat.com> In-Reply-To: <20180906181947.20646-3-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; VI1PR08MB0942; 6:yTMoezCtWXiqQs8ZPd26QiZk1qhVI+PdyxNWk3RQystAyUziFCABf9PXHq1zu+3VK7VXlUxbLmAgYMT+ruSxbBeakGwCdz7qk9C2F0J8eWcxIcTMIeoK7lwgGGQaB1ypBxoY6jmjxlq/hHuJ1HoqDNFlmh+O2FtO+OAPaUKpG/TGZDnNXytM/UDn5IoMAQxzZFLyfmMtA/QK9cQUT0/iylc357uwYRmDpqKGMSynCKNNlpeFlwSGy/E7Wa/cb+mrcufsl5JxElhVtJ1sgXK1+ggYJpu21/iSBcb06/gg0nS2BTUvGzihFxSIe648VJlV8cKGssjFaAy/6NRihbSh1eUaoxW3LwGA3f7MfX7tJkZi8+GRQLUQCf7fX+P6O0m+LzzTbkqbck2fdzxOoq29LKisN73VTfu1YVooJ+pT3puEvgnwB5cSSI0sP16cBW230SeBn9vaTZtB2/iAZEd4JQ==; 5:mZ1CdnmX9yP+w4A7uOVAxtVBcwP+SwVa6zrus6OKZXvrfE//SECX9UwIx1jphfNinDcfiO5TxTB3nkRx7DdrKGXbZpntdbwI1TduoH8f12k6vm+LwIQHonO/0kS+TUJzfxA/MlPcW0+wYjALvA18ggOTGxJUy8ejTywlDhPOkB4=; 7:5z0BwLbBaSudfj9/hHjQ5PRaI2ns6pC3SWxcXUPINW0iDgRWSOfWaZnddwVPhq7U81d8YPDfx7q9I/5RNLhNiJlyjvI84FhGhHU2YkpPJ6WVc7/vaAp2kI5iRy+IkEl06PJAF6xFLszC3t2yrvvOWaBkL7jRxg45WUWXRZeJNdpLlb0E2lsQvNp4K0Uzhdg4HF/OG8xYKWjNRerr1btv21TX0LwwY1eIg3W+jNJhl4fH6+xFOf5D+NbGjVjp5ERI x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: f9186e4b-07f7-4c95-825a-08d616dd6fea 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:VI1PR08MB0942; x-ms-traffictypediagnostic: VI1PR08MB0942: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(103651359005742)(228905959029699); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231311)(944501410)(52105095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(201708071742011)(7699050); SRVR:VI1PR08MB0942; BCL:0; PCL:0; RULEID:; SRVR:VI1PR08MB0942; x-forefront-prvs: 07915F544A x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(366004)(376002)(396003)(346002)(39850400004)(40434004)(199004)(189003)(13464003)(5660300001)(2501003)(33656002)(5250100002)(2900100001)(8936002)(25786009)(6246003)(81156014)(72206003)(81166006)(97736004)(4326008)(68736007)(3846002)(6116002)(86362001)(14454004)(8676002)(2906002)(7736002)(106356001)(229853002)(6436002)(54906003)(316002)(14444005)(5024004)(186003)(256004)(105586002)(110136005)(74316002)(305945005)(9686003)(55016002)(55236004)(53546011)(102836004)(6506007)(26005)(446003)(11346002)(478600001)(66066001)(99286004)(53936002)(476003)(7696005)(486006)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB0942; 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: Chxcx2YDUQRny8rjKUYh9RJhN3J/raWuxh0neIogFHAzl9OAkxcPYY6ZMMv/oob8G+00ONlDBXBAlmyE2nIgoYOSuOlkEoTVPMbYq6gywCu6e1GjaE3LSxvIsoJddqo1HLjAoUtsWjxkKciWrpyG9/4tie9um+41LnhdVeFCrehYhyD8LDi7uR/KPRJSWYwVox0ZiWqcjjNxdAtO8Bo5822Vm4efQUlM48HLom1BSAUFBZBuAD5K5AB9tMWJIy0oubYqs/Lu62ZHV5fHUvSe/xIR40S6ipgk7g8Fi4FQwCfPgk6V5b3uWiIkCoUcF5HHVWvYDaN74DfIVE+MQy910vHXonrWH2qwk+BtwfQFqcY= 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: f9186e4b-07f7-4c95-825a-08d616dd6fea X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Sep 2018 05:22:43.9115 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB0942 Subject: Re: [dpdk-dev] [PATCH v5 02/11] net/virtio: add virtio 1.1 defines 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 05:22:46 -0000 The following 1.1 new defines should be added in this patch or the parent p= atch. VIRTIO_F_IO_BARRIER VIRTIO_F_SR_IOV > -----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 02/11] net/virtio: add virtio 1.1 defines > > Signed-off-by: Jens Freimann > --- > drivers/net/virtio/virtio_ring.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/net/virtio/virtio_ring.h b/drivers/net/virtio/virtio= _ring.h > index cea4d441e..e2c597434 100644 > --- a/drivers/net/virtio/virtio_ring.h > +++ b/drivers/net/virtio/virtio_ring.h > @@ -15,7 +15,11 @@ > #define VRING_DESC_F_WRITE 2 > /* This means the buffer contains a list of buffer descriptors. */ > #define VRING_DESC_F_INDIRECT 4 > +/* This flag means the descriptor was made available by the driver */ > > +#define VRING_DESC_F_AVAIL(b) ((uint16_t)(b) << 7) > +/* This flag means the descriptor was used by the device */ > +#define VRING_DESC_F_USED(b) ((uint16_t)(b) << 15) > /* The Host uses this in used->flags to advise the Guest: don't kick me > * when you add a buffer. It's unreliable, so it's simply an > * optimization. Guest will still kick if it's out of buffers. */ > -- > 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.