| 534 | } |
| 535 | |
| 536 | int |
| 537 | rte_pipeline_table_entry_delete(struct rte_pipeline *p, |
| 538 | uint32_t table_id, |
| 539 | void *key, |
| 540 | int *key_found, |
| 541 | struct rte_pipeline_table_entry *entry) |
| 542 | { |
| 543 | struct rte_table *table; |
| 544 | |
| 545 | /* Check input arguments */ |
| 546 | if (p == NULL) { |
| 547 | RTE_LOG(ERR, PIPELINE, "%s: pipeline parameter NULL\n", |
| 548 | __func__); |
| 549 | return -EINVAL; |
| 550 | } |
| 551 | |
| 552 | if (key == NULL) { |
| 553 | RTE_LOG(ERR, PIPELINE, "%s: key parameter is NULL\n", |
| 554 | __func__); |
| 555 | return -EINVAL; |
| 556 | } |
| 557 | |
| 558 | if (table_id >= p->num_tables) { |
| 559 | RTE_LOG(ERR, PIPELINE, |
| 560 | "%s: table_id %d out of range\n", __func__, table_id); |
| 561 | return -EINVAL; |
| 562 | } |
| 563 | |
| 564 | table = &p->tables[table_id]; |
| 565 | |
| 566 | if (table->ops.f_delete == NULL) { |
| 567 | RTE_LOG(ERR, PIPELINE, |
| 568 | "%s: f_delete function pointer NULL\n", __func__); |
| 569 | return -EINVAL; |
| 570 | } |
| 571 | |
| 572 | return (table->ops.f_delete)(table->h_table, key, key_found, entry); |
| 573 | } |
| 574 | |
| 575 | int rte_pipeline_table_entry_add_bulk(struct rte_pipeline *p, |
| 576 | uint32_t table_id, |
no outgoing calls