numam-dpdk/lib/librte_pmd_e1000
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
..
e1000 e1000: fix big endian access 2015-02-20 11:44:52 +01:00
e1000_ethdev.h ethdev: unification of RSS offload types 2015-02-22 23:56:20 +01:00
e1000_logs.h e1000: always log init messages 2014-09-18 20:52:42 +02:00
em_ethdev.c use simple zero initializers 2015-04-20 14:37:36 +02:00
em_rxtx.c tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
igb_ethdev.c use simple zero initializers 2015-04-20 14:37:36 +02:00
igb_pf.c e1000: use the right debug macro 2014-09-18 20:52:42 +02:00
igb_rxtx.c use simple zero initializers 2015-04-20 14:37:36 +02:00
Makefile mk: add library version extension 2015-02-03 16:56:58 +01:00
rte_pmd_e1000_version.map lib: provide initial versioning 2015-02-03 16:56:58 +01:00