| 3842 | } |
| 3843 | |
| 3844 | int |
| 3845 | rte_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 | |
| 3866 | int |
| 3867 | rte_eth_dev_get_supported_ptypes(uint16_t port_id, uint32_t ptype_mask, |
no test coverage detected