444b872a76
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> |
||
---|---|---|
.. | ||
vnic | ||
enic_clsf.c | ||
enic_compat.h | ||
enic_ethdev.c | ||
enic_main.c | ||
enic_res.c | ||
enic_res.h | ||
enic.h | ||
LICENSE | ||
Makefile | ||
rte_pmd_enic_version.map |