| 180 | } |
| 181 | |
| 182 | int |
| 183 | tmgr_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 | |
| 210 | int |
| 211 | tmgr_pipe_config(const char *port_name, |
no test coverage detected