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

Function tmgr_subport_profile_add

dpdk/examples/ip_pipeline/tmgr.c:56–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56int
57tmgr_subport_profile_add(struct rte_sched_subport_profile_params *params)
58{
59 /* Check input params */
60 if (params == NULL)
61 return -1;
62
63 /* Save profile */
64 memcpy(&subport_profile[n_subport_profiles],
65 params,
66 sizeof(*params));
67
68 n_subport_profiles++;
69
70 return 0;
71}
72
73int
74tmgr_pipe_profile_add(struct rte_sched_pipe_params *p)

Callers 1

cmd_tmgr_subport_profileFunction · 0.85

Calls 1

memcpyFunction · 0.50

Tested by

no test coverage detected