From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 9DA6CB38D for ; Fri, 12 Jun 2015 03:36:06 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 11 Jun 2015 18:36:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,598,1427785200"; d="scan'208";a="725737689" Received: from kmsmsx152.gar.corp.intel.com ([172.21.73.87]) by fmsmga001.fm.intel.com with ESMTP; 11 Jun 2015 18:36:05 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by KMSMSX152.gar.corp.intel.com (172.21.73.87) with Microsoft SMTP Server (TLS) id 14.3.224.2; Fri, 12 Jun 2015 09:36:03 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.165]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.168]) with mapi id 14.03.0224.002; Fri, 12 Jun 2015 09:36:02 +0800 From: "Ouyang, Changchun" To: Stephen Hemminger Thread-Topic: [PATCH 4/5] virtio: clarify feature bit handling Thread-Index: AQHQpF7MT6QcJdx4Y0i3kjydlPnWTZ2oF3nA Date: Fri, 12 Jun 2015 01:36:02 +0000 Message-ID: References: <1434038007-8964-1-git-send-email-stephen@networkplumber.org> <1434038007-8964-5-git-send-email-stephen@networkplumber.org> In-Reply-To: <1434038007-8964-5-git-send-email-stephen@networkplumber.org> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" , Stephen Hemminger Subject: Re: [dpdk-dev] [PATCH 4/5] virtio: clarify feature bit handling 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, 12 Jun 2015 01:36:07 -0000 > -----Original Message----- > From: Stephen Hemminger [mailto:stephen@networkplumber.org] > Sent: Thursday, June 11, 2015 11:53 PM > To: Ouyang, Changchun > Cc: dev@dpdk.org; Stephen Hemminger; Stephen Hemminger > Subject: [PATCH 4/5] virtio: clarify feature bit handling >=20 > From: Stephen Hemminger >=20 > Change the features from bit mask to bit number. This allows the DPDK > driver to use the definitions from Linux (yes the header files already us= e a > license compatiable with DPDK). This makes DPDK driver handle future > feature bit changes. >=20 > Get rid of double negative code in the feature bit intialization. > Instead just have a new define with the list of feature bits implemented. >=20 > Signed-off-by: Stephen Hemminger Acked-by: Changchun Ouyang