ethdev: initialize more fields on allocation
authorJan Blunck <jblunck@infradead.org>
Thu, 17 Nov 2016 17:16:12 +0000 (18:16 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 21 Dec 2016 16:32:17 +0000 (17:32 +0100)
commit75aca7997e57b017e1a4224c9be9dfb3b15623d9
treefbc26846abfa8d6e52c0d30b193da4456e4843e0
parent7f95f78a8aea6161b824288bdeb1265798adca29
ethdev: initialize more fields on allocation

This moves the non-PCI related initialization of the link state interrupt
callback list and the setting of the default MTU to rte_eth_dev_allocate()
so that drivers only need to set non-default values.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test/virtual_pmd.c
drivers/net/bonding/rte_eth_bond_api.c
drivers/net/cxgbe/cxgbe_main.c
drivers/net/mlx4/mlx4.c
drivers/net/mlx5/mlx5.c
drivers/net/null/rte_eth_null.c
drivers/net/ring/rte_eth_ring.c
drivers/net/vhost/rte_eth_vhost.c
lib/librte_ether/rte_ethdev.c