From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id E3A829ACF for ; Wed, 25 Feb 2015 04:04:58 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP; 24 Feb 2015 18:59:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,642,1418112000"; d="scan'208";a="690365252" Received: from pgsmsx102.gar.corp.intel.com ([10.221.44.80]) by orsmga002.jf.intel.com with ESMTP; 24 Feb 2015 19:04:41 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.110.14) by PGSMSX102.gar.corp.intel.com (10.221.44.80) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 25 Feb 2015 11:04:40 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.62]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.197]) with mapi id 14.03.0195.001; Wed, 25 Feb 2015 11:04:38 +0800 From: "Ouyang, Changchun" To: "Gajdzica, MaciejX T" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] virtio: Changed variable types to prevent possible data loss in virtio_ethdev.c, virtio_ethdev.h and virtio_rxtx.c Thread-Index: AQHQTSglYw0wbtmUFE+xNltZdvP3B50AtOXA Date: Wed, 25 Feb 2015 03:04:39 +0000 Message-ID: References: <1424448759-5802-1-git-send-email-maciejx.t.gajdzica@intel.com> In-Reply-To: <1424448759-5802-1-git-send-email-maciejx.t.gajdzica@intel.com> 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 Subject: Re: [dpdk-dev] [PATCH] virtio: Changed variable types to prevent possible data loss in virtio_ethdev.c, virtio_ethdev.h and virtio_rxtx.c 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: Wed, 25 Feb 2015 03:04:59 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Maciej Gajdzica > Sent: Saturday, February 21, 2015 12:13 AM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH] virtio: Changed variable types to prevent > possible data loss in virtio_ethdev.c, virtio_ethdev.h and virtio_rxtx.c >=20 > Changed vtpci_queue_idx type in function virtio_dev_queue_setup from > uint8_t to uint16_t to prevent possible data loss. Also changed type of h= ead > variable in function virtio_send_command from uint32_t to uint16_t. > Issues found with static code analysis tool. >=20 > Signed-off-by: Maciej Gajdzica > --- Acked-by: Changchun Ouyang