ethdev: clear data when allocating device
authorJan Blunck <jblunck@infradead.org>
Thu, 17 Nov 2016 17:16:11 +0000 (18:16 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 21 Dec 2016 16:30:27 +0000 (17:30 +0100)
commit7f95f78a8aea6161b824288bdeb1265798adca29
tree8679dcbd2d0c58a97f136a0650f6dabfc4f6920e
parent3030127eb24f2b5250c672235d0267fdaad568ef
ethdev: clear data when allocating device

Lets clear the eth_dev->data when allocating a new rte_eth_dev so that
drivers only need to set non-zero values.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/bonding/rte_eth_bond_api.c
drivers/net/mlx4/mlx4.c
drivers/net/mlx5/mlx5.c
drivers/net/mpipe/mpipe_tilegx.c
lib/librte_ether/rte_ethdev.c