| 658 | } |
| 659 | |
| 660 | static int |
| 661 | eth_dev_stop_mp(uint16_t port_id) |
| 662 | { |
| 663 | int ret; |
| 664 | |
| 665 | if (is_proc_primary()) { |
| 666 | ret = rte_eth_dev_stop(port_id); |
| 667 | if (ret != 0) |
| 668 | return ret; |
| 669 | |
| 670 | struct rte_port *port = &ports[port_id]; |
| 671 | |
| 672 | /* |
| 673 | * Stopping a bonding port also stops all members under the bonding |
| 674 | * device. So if this port is bond device, we need to modify the |
| 675 | * port status of these members. |
| 676 | */ |
| 677 | if (port->bond_flag == 1) |
| 678 | return change_bonding_member_port_status(port_id, true); |
| 679 | } |
| 680 | |
| 681 | return 0; |
| 682 | } |
| 683 | |
| 684 | static void |
| 685 | mempool_free_mp(struct rte_mempool *mp) |
no test coverage detected