Initialize flow error structure. */
| 560 | |
| 561 | /* Initialize flow error structure. */ |
| 562 | int |
| 563 | rte_flow_error_set(struct rte_flow_error *error, |
| 564 | int code, |
| 565 | enum rte_flow_error_type type, |
| 566 | const void *cause, |
| 567 | const char *message) |
| 568 | { |
| 569 | if (error) { |
| 570 | *error = (struct rte_flow_error){ |
| 571 | .type = type, |
| 572 | .cause = cause, |
| 573 | .message = message, |
| 574 | }; |
| 575 | } |
| 576 | rte_errno = code; |
| 577 | return -code; |
| 578 | } |
| 579 | |
| 580 | /** Pattern item specification types. */ |
| 581 | enum rte_flow_conv_item_spec_type { |
no outgoing calls
no test coverage detected