numam-dpdk/lib/librte_pmd_enic
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
..
vnic enic: fix possible data loss 2015-03-30 19:10:15 +02:00
enic_clsf.c enic: remove useless cast 2015-03-04 21:50:42 +01:00
enic_compat.h enic: fix possible data loss 2015-03-30 19:10:15 +02:00
enic_ethdev.c ethdev: remove useless parameter in init functions 2015-03-09 18:07:44 +01:00
enic_main.c enic: fix build with gcc < 4.4 2015-03-23 00:31:19 +01:00
enic_res.c enic: new driver 2014-11-26 23:07:11 +01:00
enic_res.h enic: new driver 2014-11-26 23:07:11 +01:00
enic.h enic: fix possible data loss 2015-03-30 19:10:15 +02:00
LICENSE enic: license 2014-11-26 23:07:11 +01:00
Makefile mk: add library version extension 2015-02-03 16:56:58 +01:00
rte_pmd_enic_version.map lib: provide initial versioning 2015-02-03 16:56:58 +01:00