From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from alln-iport-6.cisco.com (alln-iport-6.cisco.com [173.37.142.93]) by dpdk.org (Postfix) with ESMTP id B6BAD293C for ; Fri, 2 Sep 2016 17:55:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=951; q=dns/txt; s=iport; t=1472831726; x=1474041326; h=from:to:cc:subject:date:message-id:content-id: content-transfer-encoding:mime-version; bh=Nes/nwcICys1Tvq3XexjY74+HBJse2/zEofg4iYYnf0=; b=kL5b/Q93kbpS/hZHGA+snX0D1eZuHNmO527rhc7/6THR/szyZAoithvO oKllYlnb81XPa5d9uBayPZm2reS+cSIaFGLh7+DiRBx5xIJSNJxMvyY5m H28+fyTB+jmZ+J3Znv8kFaZAQqBCiu6+OJkICfzIALpt0iVlHIi+dfPqU Y=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0BTAgAvoMlX/5pdJa1cg1ABAQEBAR6BU?= =?us-ascii?q?we2HYIPggKGHIFcOBQBAgEBAQEBAQFeHAuEaDo/EgE+QicEDgWISrtzAQEBAQE?= =?us-ascii?q?BAQEBAQEBAQEBAQEBAQEBHIYvgXgIijqCLwWZUwGPNY9XApBEAR42hD1whVp/A?= =?us-ascii?q?QEB?= X-IronPort-AV: E=Sophos;i="5.30,271,1470700800"; d="scan'208";a="318751849" Received: from rcdn-core-3.cisco.com ([173.37.93.154]) by alln-iport-6.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Sep 2016 15:55:25 +0000 Received: from XCH-ALN-017.cisco.com (xch-aln-017.cisco.com [173.36.7.27]) by rcdn-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id u82FtPSx006703 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL) for ; Fri, 2 Sep 2016 15:55:25 GMT Received: from xch-aln-017.cisco.com (173.36.7.27) by XCH-ALN-017.cisco.com (173.36.7.27) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 2 Sep 2016 10:55:24 -0500 Received: from xch-aln-017.cisco.com ([173.36.7.27]) by XCH-ALN-017.cisco.com ([173.36.7.27]) with mapi id 15.00.1210.000; Fri, 2 Sep 2016 10:55:24 -0500 From: "Pierre Pfister (ppfister)" To: "dev@dpdk.org" CC: "Pierre Pfister (ppfister)" Thread-Topic: [PATCH] virtio: enable indirect descriptors feature Thread-Index: AQHSBTJq0pTn57pIcUGzs2aVSo+cQQ== Date: Fri, 2 Sep 2016 15:55:24 +0000 Message-ID: <516F65D3-4706-4CC5-916B-6ECD29CBE177@cisco.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.228.42.60] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] virtio: enable indirect descriptors feature X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2016 15:55:27 -0000 Indirect descriptors support was disabled by commit 59d593f472a7, presumably by accident as it was correctly supported. This patch simply adds VIRTIO_RING_F_INDIRECT_DESC back to the supported features bit mask, hence enabling the use of indirect descriptors when the feature is negociated with the device. Signed-off-by: Pierre Pfister --- drivers/net/virtio/virtio_ethdev.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/virtio/virtio_ethdev.h b/drivers/net/virtio/virtio= _ethdev.h index 2ecec6e..31c91a5 100644 --- a/drivers/net/virtio/virtio_ethdev.h +++ b/drivers/net/virtio/virtio_ethdev.h @@ -63,6 +63,7 @@ 1u << VIRTIO_NET_F_CTRL_RX | \ 1u << VIRTIO_NET_F_CTRL_VLAN | \ 1u << VIRTIO_NET_F_MRG_RXBUF | \ + 1u << VIRTIO_RING_F_INDIRECT_DESC | \ 1ULL << VIRTIO_F_VERSION_1) /* -- 2.7.4 (Apple Git-66)=