* Allocate the needed aso flow meter id. * * @param[in] dev * Pointer to Ethernet device. * * @return * Index to aso flow meter on success, NULL otherwise. */
| 8973 | * Index to aso flow meter on success, NULL otherwise. |
| 8974 | */ |
| 8975 | uint32_t |
| 8976 | mlx5_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. |
no outgoing calls
no test coverage detected