numam-dpdk/lib/librte_pmd_ixgbe
Thomas Monjalon f12f13f2f6 use simple zero initializers
To initialize a structure with zeros, one field was explicitly set
to avoid "missing initializer" bug with old GCC (e.g. 4.4).
This warning is now disabled (commit <insertlater>) for old versions of GCC,
so the workarounds may be removed.

These initializers should not be needed for static variables but they
are still used to workaround an ICC bug (see commit b2595c4aa9).

There is one remaining exception where {0} initializer doesn't work cleanly,
even with recent GCC:
lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c:735:9:
error: missing braces around initializer [-Werror=missing-braces]
  struct rte_mbuf mb_def = {0}; /* zeroed mbuf */

Tested with gcc-4.4.7 (CentOS), gcc-4.7.2 (Debian), gcc-4.9.2 (Arch),
clang-3.6.0 and icc-13.1.1.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Tested-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Tested-by: John McNamara <john.mcnamara@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
Acked-by: Vlad Zolotarov <vladz@cloudius-systems.com>
2015-04-20 14:37:36 +02:00
..
ixgbe ixgbe: unify Rx setup 2015-03-17 00:46:01 +01:00
ixgbe_82599_bypass.c ixgbe: fix build with bypass enabled 2014-10-09 20:02:34 +02:00
ixgbe_bypass_api.h ixgbe: support X550 2014-10-07 17:01:08 +02:00
ixgbe_bypass_defines.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
ixgbe_bypass.c ixgbe: fix build with bypass and debug enabled 2014-12-02 12:28:11 +01:00
ixgbe_bypass.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
ixgbe_ethdev.c ixgbe: add LRO support 2015-04-13 23:03:46 +02:00
ixgbe_ethdev.h ixgbe: add LRO support 2015-04-13 23:03:46 +02:00
ixgbe_fdir.c ixgbe: fix supported flow types 2015-03-10 16:44:54 +01:00
ixgbe_logs.h ixgbe: always log init messages 2014-09-18 20:52:41 +02:00
ixgbe_pf.c ixgbe: remove an useless check in VF RSS 2015-01-27 12:36:24 +01:00
ixgbe_rxtx_vec.c use simple zero initializers 2015-04-20 14:37:36 +02:00
ixgbe_rxtx.c use simple zero initializers 2015-04-20 14:37:36 +02:00
ixgbe_rxtx.h ixgbe: add LRO support 2015-04-13 23:03:46 +02:00
Makefile mk: fix build with gcc 4.4 and clang 2015-04-20 14:37:22 +02:00
rte_pmd_ixgbe_version.map lib: provide initial versioning 2015-02-03 16:56:58 +01:00