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

Function rte_pipeline_table_entry_delete

dpdk/lib/pipeline/rte_pipeline.c:536–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534}
535
536int
537rte_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
575int rte_pipeline_table_entry_add_bulk(struct rte_pipeline *p,
576 uint32_t table_id,

Callers 4

setup_acl_pipelineFunction · 0.85
test_table_typeFunction · 0.85

Calls

no outgoing calls

Tested by 2

setup_acl_pipelineFunction · 0.68
test_table_typeFunction · 0.68