MCPcopy Create free account
hub / github.com/F-Stack/f-stack / eth_dev_start_mp

Function eth_dev_start_mp

dpdk/app/test-pmd/testpmd.c:636–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634}
635
636static int
637eth_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
660static int
661eth_dev_stop_mp(uint16_t port_id)

Callers 1

start_portFunction · 0.85

Calls 3

is_proc_primaryFunction · 0.85
rte_eth_dev_startFunction · 0.85

Tested by

no test coverage detected