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

Function rte_mtr_create

dpdk/lib/ethdev/rte_mtr.c:211–226  ·  view source on GitHub ↗

MTR object create */

Source from the content-addressed store, hash-verified

209
210/** MTR object create */
211int
212rte_mtr_create(uint16_t port_id,
213 uint32_t mtr_id,
214 struct rte_mtr_params *params,
215 int shared,
216 struct rte_mtr_error *error)
217{
218 struct rte_eth_dev *dev = &rte_eth_devices[port_id];
219 int ret;
220 ret = RTE_MTR_FUNC(port_id, create)(dev,
221 mtr_id, params, shared, error);
222
223 rte_mtr_trace_create(port_id, mtr_id, params, shared, ret);
224
225 return ret;
226}
227
228/** MTR object destroy */
229int

Callers 2

create_meter_ruleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected