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

Function tm_apply

dpdk/lib/pipeline/rte_table_action.c:375–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375static int
376tm_apply(struct tm_data *data,
377 struct rte_table_action_tm_params *p,
378 struct rte_table_action_tm_config *cfg)
379{
380 int status;
381
382 /* Check input arguments */
383 status = tm_apply_check(p, cfg);
384 if (status)
385 return status;
386
387 /* Apply */
388 data->queue_id = p->subport_id <<
389 (rte_ctz32(cfg->n_pipes_per_subport) + 4) |
390 p->pipe_id << 4;
391
392 return 0;
393}
394
395static __rte_always_inline void
396pkt_work_tm(struct rte_mbuf *mbuf,

Callers 1

rte_table_action_applyFunction · 0.85

Calls 2

tm_apply_checkFunction · 0.85
rte_ctz32Function · 0.85

Tested by

no test coverage detected