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

Function tm_apply_check

dpdk/lib/pipeline/rte_table_action.c:364–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362} __rte_packed;
363
364static int
365tm_apply_check(struct rte_table_action_tm_params *p,
366 struct rte_table_action_tm_config *cfg)
367{
368 if ((p->subport_id >= cfg->n_subports_per_port) ||
369 (p->pipe_id >= cfg->n_pipes_per_subport))
370 return -EINVAL;
371
372 return 0;
373}
374
375static int
376tm_apply(struct tm_data *data,

Callers 1

tm_applyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected