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

Function tmgr_pipe_profile_add

dpdk/examples/ip_pipeline/tmgr.c:73–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73int
74tmgr_pipe_profile_add(struct rte_sched_pipe_params *p)
75{
76 /* Check input params */
77 if (p == NULL)
78 return -1;
79
80 /* Save profile */
81 memcpy(&pipe_profile[n_pipe_profiles],
82 p,
83 sizeof(*p));
84
85 n_pipe_profiles++;
86
87 return 0;
88}
89
90struct tmgr_port *
91tmgr_port_create(const char *name, struct tmgr_port_params *params)

Callers 1

cmd_tmgr_pipe_profileFunction · 0.85

Calls 1

memcpyFunction · 0.50

Tested by

no test coverage detected