src/dpdk/drivers/net/mlx4/mlx4_ethdev.c
int
mlx4_is_removed(struct rte_eth_dev *dev)
{
	struct ibv_device_attr device_attr;
	struct mlx4_priv *priv = dev->data->dev_private;

	if (mlx4_glue->query_device(priv->ctx, &device_attr) == EIO)
		return 1;
	return 0;
}
/**
 * Check if mlx4 device was removed.
 *
 * @param dev
 *   Pointer to Ethernet device structure.
 *
 * @return
 *   1 when device is removed, otherwise 0.
 */
Check if mlx4 device was removed.
@param dev
Pointer to Ethernet device structure.

@return
1 when device is removed, otherwise 0.
Check if mlx4 device was removed . @param dev Pointer to Ethernet device structure . @return 1 when device is removed otherwise 0 .
int
mlx4_is_removed(struct rte_eth_dev *dev)
{
	struct ibv_device_attr device_attr;
	struct mlx4_priv *priv = dev->data->dev_private;
	if (mlx4_glue->query_device(priv->ctx, &device_attr) == EIO)
		return 1;
	return 0;
}
int mlx4_is_removed ( struct rte_eth_dev * dev ) { struct ibv_device_attr device_attr ; struct mlx4_priv * priv = dev -> data -> dev_private ; if ( mlx4_glue -> query_device ( priv -> ctx , & device_attr ) == EIO ) return 1 ; return 0 ; }
Check if mlx4 device was removed.
Check if mlx4 device was removed .