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

Function rte_eth_dev_conf_get

dpdk/lib/ethdev/rte_ethdev.c:3844–3864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3842}
3843
3844int
3845rte_eth_dev_conf_get(uint16_t port_id, struct rte_eth_conf *dev_conf)
3846{
3847 struct rte_eth_dev *dev;
3848
3849 RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);
3850 dev = &rte_eth_devices[port_id];
3851
3852 if (dev_conf == NULL) {
3853 RTE_ETHDEV_LOG(ERR,
3854 "Cannot get ethdev port %u configuration to NULL\n",
3855 port_id);
3856 return -EINVAL;
3857 }
3858
3859 memcpy(dev_conf, &dev->data->dev_conf, sizeof(struct rte_eth_conf));
3860
3861 rte_ethdev_trace_conf_get(port_id, dev_conf);
3862
3863 return 0;
3864}
3865
3866int
3867rte_eth_dev_get_supported_ptypes(uint16_t port_id, uint32_t ptype_mask,

Callers 3

eth_dev_handle_port_vlanFunction · 0.85

Calls 1

memcpyFunction · 0.50

Tested by

no test coverage detected