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

Function sfc_flow_remove

dpdk/drivers/net/sfc/sfc_flow.c:2478–2500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2476}
2477
2478static int
2479sfc_flow_remove(struct sfc_adapter *sa, struct rte_flow *flow,
2480 struct rte_flow_error *error)
2481{
2482 const struct sfc_flow_ops_by_spec *ops;
2483 int rc;
2484
2485 ops = sfc_flow_get_ops_by_spec(flow);
2486 if (ops == NULL || ops->remove == NULL) {
2487 rte_flow_error_set(error, ENOTSUP,
2488 RTE_FLOW_ERROR_TYPE_UNSPECIFIED, NULL,
2489 "No backend to handle this flow");
2490 return rte_errno;
2491 }
2492
2493 rc = ops->remove(sa, flow);
2494 if (rc != 0) {
2495 rte_flow_error_set(error, rc, RTE_FLOW_ERROR_TYPE_UNSPECIFIED,
2496 NULL, "Failed to remove the flow rule");
2497 }
2498
2499 return rc;
2500}
2501
2502static int
2503sfc_flow_verify(struct sfc_adapter *sa, struct rte_flow *flow,

Callers 3

sfc_flow_destroy_lockedFunction · 0.85
sfc_flow_flushFunction · 0.85
sfc_flow_stopFunction · 0.85

Calls 2

sfc_flow_get_ops_by_specFunction · 0.85
rte_flow_error_setFunction · 0.85

Tested by

no test coverage detected