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

Function rte_eth_dev_socket_id

dpdk/lib/ethdev/rte_ethdev.c:635–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633}
634
635int
636rte_eth_dev_socket_id(uint16_t port_id)
637{
638 int socket_id = SOCKET_ID_ANY;
639 struct rte_eth_dev *ethdev;
640
641 if (port_id >= RTE_MAX_ETHPORTS) {
642 rte_errno = EINVAL;
643 return socket_id;
644 }
645
646 ethdev = &rte_eth_devices[port_id];
647 if (!eth_dev_is_allocated(ethdev)) {
648 rte_errno = EINVAL;
649 } else {
650 socket_id = rte_eth_devices[port_id].data->numa_node;
651 if (socket_id == SOCKET_ID_ANY)
652 rte_errno = 0;
653 }
654
655 rte_ethdev_trace_socket_id(port_id, socket_id);
656
657 return socket_id;
658}
659
660void *
661rte_eth_dev_get_sec_ctx(uint16_t port_id)

Callers 15

rxa_add_queueFunction · 0.85
txa_service_tx_buf_allocFunction · 0.85
member_startFunction · 0.85
init_portFunction · 0.85
configure_vdevFunction · 0.85
test_pmd_perfFunction · 0.85
configure_ethdevFunction · 0.85
port_init_commonFunction · 0.85
configure_ethdevFunction · 0.85

Calls 1

eth_dev_is_allocatedFunction · 0.85

Tested by 10

test_pmd_perfFunction · 0.68
configure_ethdevFunction · 0.68
port_init_commonFunction · 0.68
configure_ethdevFunction · 0.68
port_init_commonFunction · 0.68
configure_ethdevFunction · 0.68
init_configFunction · 0.68
init_fwd_streamsFunction · 0.68
setup_attached_portFunction · 0.68