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

Function tmgr_subport_config

dpdk/examples/ip_pipeline/tmgr.c:182–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182int
183tmgr_subport_config(const char *port_name,
184 uint32_t subport_id,
185 uint32_t subport_profile_id)
186{
187 struct tmgr_port *port;
188 int status;
189
190 /* Check input params */
191 if (port_name == NULL)
192 return -1;
193
194 port = tmgr_port_find(port_name);
195 if ((port == NULL) ||
196 (subport_id >= port->n_subports_per_port) ||
197 (subport_profile_id >= n_subport_profiles))
198 return -1;
199
200 /* Resource config */
201 status = rte_sched_subport_config(
202 port->s,
203 subport_id,
204 NULL,
205 subport_profile_id);
206
207 return status;
208}
209
210int
211tmgr_pipe_config(const char *port_name,

Callers 1

cmd_tmgr_subportFunction · 0.85

Calls 2

tmgr_port_findFunction · 0.85
rte_sched_subport_configFunction · 0.85

Tested by

no test coverage detected