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

Function eth_dev_stop_mp

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

Source from the content-addressed store, hash-verified

658}
659
660static int
661eth_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
684static void
685mempool_free_mp(struct rte_mempool *mp)

Callers 1

stop_portFunction · 0.85

Calls 3

is_proc_primaryFunction · 0.85
rte_eth_dev_stopFunction · 0.85

Tested by

no test coverage detected