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

Function mlx5_flow_mtr_alloc

dpdk/drivers/net/mlx5/mlx5_flow.c:8975–8982  ·  view source on GitHub ↗

* Allocate the needed aso flow meter id. * * @param[in] dev * Pointer to Ethernet device. * * @return * Index to aso flow meter on success, NULL otherwise. */

Source from the content-addressed store, hash-verified

8973 * Index to aso flow meter on success, NULL otherwise.
8974 */
8975uint32_t
8976mlx5_flow_mtr_alloc(struct rte_eth_dev *dev)
8977{
8978 const struct mlx5_flow_driver_ops *fops;
8979
8980 fops = flow_get_drv_ops(MLX5_FLOW_TYPE_DV);
8981 return fops->create_meter(dev);
8982}
8983
8984/**
8985 * Free the aso flow meter id.

Callers 1

mlx5_flow_meter_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected