Lines Matching refs:diag

1295 	int diag;  in rte_eth_dev_configure()  local
1489 diag = eth_dev_rx_queue_config(dev, nb_rx_q); in rte_eth_dev_configure()
1490 if (diag != 0) { in rte_eth_dev_configure()
1493 port_id, diag); in rte_eth_dev_configure()
1494 ret = diag; in rte_eth_dev_configure()
1498 diag = eth_dev_tx_queue_config(dev, nb_tx_q); in rte_eth_dev_configure()
1499 if (diag != 0) { in rte_eth_dev_configure()
1502 port_id, diag); in rte_eth_dev_configure()
1504 ret = diag; in rte_eth_dev_configure()
1508 diag = (*dev->dev_ops->dev_configure)(dev); in rte_eth_dev_configure()
1509 if (diag != 0) { in rte_eth_dev_configure()
1511 port_id, diag); in rte_eth_dev_configure()
1512 ret = eth_err(port_id, diag); in rte_eth_dev_configure()
1517 diag = __rte_eth_dev_profile_init(port_id, dev); in rte_eth_dev_configure()
1518 if (diag != 0) { in rte_eth_dev_configure()
1520 port_id, diag); in rte_eth_dev_configure()
1521 ret = eth_err(port_id, diag); in rte_eth_dev_configure()
1526 diag = eth_dev_validate_offloads(port_id, in rte_eth_dev_configure()
1530 if (diag != 0) { in rte_eth_dev_configure()
1531 ret = diag; in rte_eth_dev_configure()
1536 diag = eth_dev_validate_offloads(port_id, in rte_eth_dev_configure()
1540 if (diag != 0) { in rte_eth_dev_configure()
1541 ret = diag; in rte_eth_dev_configure()
1681 int diag; in rte_eth_dev_start() local
1705 diag = (*dev->dev_ops->dev_start)(dev); in rte_eth_dev_start()
1706 if (diag == 0) in rte_eth_dev_start()
1709 return eth_err(port_id, diag); in rte_eth_dev_start()
2485 int diag = 0; in rte_eth_promiscuous_enable() local
2495 diag = (*dev->dev_ops->promiscuous_enable)(dev); in rte_eth_promiscuous_enable()
2496 dev->data->promiscuous = (diag == 0) ? 1 : 0; in rte_eth_promiscuous_enable()
2498 return eth_err(port_id, diag); in rte_eth_promiscuous_enable()
2505 int diag = 0; in rte_eth_promiscuous_disable() local
2516 diag = (*dev->dev_ops->promiscuous_disable)(dev); in rte_eth_promiscuous_disable()
2517 if (diag != 0) in rte_eth_promiscuous_disable()
2520 return eth_err(port_id, diag); in rte_eth_promiscuous_disable()
2538 int diag; in rte_eth_allmulticast_enable() local
2547 diag = (*dev->dev_ops->allmulticast_enable)(dev); in rte_eth_allmulticast_enable()
2548 dev->data->all_multicast = (diag == 0) ? 1 : 0; in rte_eth_allmulticast_enable()
2550 return eth_err(port_id, diag); in rte_eth_allmulticast_enable()
2557 int diag; in rte_eth_allmulticast_disable() local
2567 diag = (*dev->dev_ops->allmulticast_disable)(dev); in rte_eth_allmulticast_disable()
2568 if (diag != 0) in rte_eth_allmulticast_disable()
2571 return eth_err(port_id, diag); in rte_eth_allmulticast_disable()
3260 int diag; in rte_eth_dev_info_get() local
3279 diag = (*dev->dev_ops->dev_infos_get)(dev, dev_info); in rte_eth_dev_info_get()
3280 if (diag != 0) { in rte_eth_dev_info_get()
3283 return eth_err(port_id, diag); in rte_eth_dev_info_get()