Go to file
Maciej Gajdzica 444b872a76 enic: fix possible data loss
Field ig_vlan_strip_en in struct enic type is int. It is used only by
function enic_set_nic_cfg which expects uint_8 as argument. Changed type
of the field to prevent possible loss of precision.

Macro GET_CONFIG passes result of sizeof operation to the function
vnic_dev_spec. This function expects parameter of type unsigned int.
Changed that parameter type to size_t in function declaration to prevent
possible data loss.

Define ENIC_ALIGN is used only by function rte_memzone_reserve_aligned,
which expects argument of type unsigned. Defined constant is of type
unsigned long long. Changed type to unsigned long to prevent possible
loss of precision.

In function writeq is written in two 32-bit long registers with writel
function. When trying to write val >> 32, static code analysis tool
reports that 64-bit value is passed to function expecting 32-bit value.
Added cast to clear this warning.

Issues found with static code analysis tool.

Signed-off-by: Maciej Gajdzica <maciejx.t.gajdzica@intel.com>
2015-03-30 19:10:15 +02:00
app app/testpmd: fix potential out of bounds read 2015-03-23 12:35:20 +01:00
config mlx4: remove old VMware compatibility code 2015-03-26 22:33:41 +01:00
doc mlx4: remove old VMware compatibility code 2015-03-26 22:33:41 +01:00
examples eal/x86: move header file for vector instructions 2015-03-20 19:24:38 +01:00
lib enic: fix possible data loss 2015-03-30 19:10:15 +02:00
mk doc: add pdf output 2015-03-19 17:58:09 +01:00
pkg version: 1.8.0 2014-12-20 00:38:39 +01:00
scripts scripts: add ABI checking utility 2015-03-17 22:39:57 +01:00
tools tools: fix vfio support 2015-03-23 14:29:31 +01:00
.gitignore init DPDK repository 2013-03-07 10:57:42 +01:00
GNUmakefile scripts: remove useless build tools 2015-03-10 17:55:25 +01:00
LICENSE.GPL doc: GPL/LGPL licenses 2013-07-25 14:43:06 +02:00
LICENSE.LGPL doc: fix file format (dos to unix) 2013-09-06 11:43:07 +02:00
MAINTAINERS scripts: add ABI checking utility 2015-03-17 22:39:57 +01:00
Makefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00