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

Function rte_flow_info_get

dpdk/lib/ethdev/rte_flow.c:1625–1659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1623}
1624
1625int
1626rte_flow_info_get(uint16_t port_id,
1627 struct rte_flow_port_info *port_info,
1628 struct rte_flow_queue_info *queue_info,
1629 struct rte_flow_error *error)
1630{
1631 struct rte_eth_dev *dev = &rte_eth_devices[port_id];
1632 const struct rte_flow_ops *ops = rte_flow_ops_get(port_id, error);
1633 int ret;
1634
1635 if (unlikely(!ops))
1636 return -rte_errno;
1637 if (dev->data->dev_configured == 0) {
1638 RTE_FLOW_LOG(INFO,
1639 "Device with port_id=%"PRIu16" is not configured.\n",
1640 port_id);
1641 return -EINVAL;
1642 }
1643 if (port_info == NULL) {
1644 RTE_FLOW_LOG(ERR, "Port %"PRIu16" info is NULL.\n", port_id);
1645 return -EINVAL;
1646 }
1647 if (likely(!!ops->info_get)) {
1648 ret = flow_err(port_id,
1649 ops->info_get(dev, port_info, queue_info, error),
1650 error);
1651
1652 rte_flow_trace_info_get(port_id, port_info, queue_info, ret);
1653
1654 return ret;
1655 }
1656 return rte_flow_error_set(error, ENOTSUP,
1657 RTE_FLOW_ERROR_TYPE_UNSPECIFIED,
1658 NULL, rte_strerror(ENOTSUP));
1659}
1660
1661int
1662rte_flow_configure(uint16_t port_id,

Callers 1

port_flow_get_infoFunction · 0.85

Calls 4

rte_flow_ops_getFunction · 0.85
flow_errFunction · 0.85
rte_flow_error_setFunction · 0.85
rte_strerrorFunction · 0.85

Tested by

no test coverage detected