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

Function rte_eth_dev_get_eeprom

dpdk/lib/ethdev/rte_ethdev.c:6424–6447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6422}
6423
6424int
6425rte_eth_dev_get_eeprom(uint16_t port_id, struct rte_dev_eeprom_info *info)
6426{
6427 struct rte_eth_dev *dev;
6428 int ret;
6429
6430 RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);
6431 dev = &rte_eth_devices[port_id];
6432
6433 if (info == NULL) {
6434 RTE_ETHDEV_LOG(ERR,
6435 "Cannot get ethdev port %u EEPROM info to NULL\n",
6436 port_id);
6437 return -EINVAL;
6438 }
6439
6440 if (*dev->dev_ops->get_eeprom == NULL)
6441 return -ENOTSUP;
6442 ret = eth_err(port_id, (*dev->dev_ops->get_eeprom)(dev, info));
6443
6444 rte_ethdev_trace_get_eeprom(port_id, info, ret);
6445
6446 return ret;
6447}
6448
6449int
6450rte_eth_dev_set_eeprom(uint16_t port_id, struct rte_dev_eeprom_info *info)

Callers 2

port_eeprom_displayFunction · 0.85
rte_ethtool_get_eepromFunction · 0.85

Calls 1

eth_errFunction · 0.85

Tested by

no test coverage detected