| 634 | } |
| 635 | |
| 636 | static int |
| 637 | eth_dev_start_mp(uint16_t port_id) |
| 638 | { |
| 639 | int ret; |
| 640 | |
| 641 | if (is_proc_primary()) { |
| 642 | ret = rte_eth_dev_start(port_id); |
| 643 | if (ret != 0) |
| 644 | return ret; |
| 645 | |
| 646 | struct rte_port *port = &ports[port_id]; |
| 647 | |
| 648 | /* |
| 649 | * Starting a bonding port also starts all members under the bonding |
| 650 | * device. So if this port is bond device, we need to modify the |
| 651 | * port status of these members. |
| 652 | */ |
| 653 | if (port->bond_flag == 1) |
| 654 | return change_bonding_member_port_status(port_id, false); |
| 655 | } |
| 656 | |
| 657 | return 0; |
| 658 | } |
| 659 | |
| 660 | static int |
| 661 | eth_dev_stop_mp(uint16_t port_id) |
no test coverage detected