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

Function ethdev_port_by_id

dpdk/app/graph/ethdev.c:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63
64static struct ethdev*
65ethdev_port_by_id(uint16_t port_id)
66{
67 struct ethdev *port;
68
69 TAILQ_FOREACH(port, &eth_node, next) {
70 if (port->config.port_id == port_id)
71 return port;
72 }
73 return NULL;
74}
75
76void *
77ethdev_mempool_list_by_portid(uint16_t portid)

Callers 6

ethdev_ip4_addr_addFunction · 0.85
ethdev_ip6_addr_addFunction · 0.85
ethdev_prom_mode_configFunction · 0.85
ethdev_mtu_configFunction · 0.85
ethdev_processFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected