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

Function sfc_flow_verify

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

Source from the content-addressed store, hash-verified

2500}
2501
2502static int
2503sfc_flow_verify(struct sfc_adapter *sa, struct rte_flow *flow,
2504 struct rte_flow_error *error)
2505{
2506 const struct sfc_flow_ops_by_spec *ops;
2507 int rc = 0;
2508
2509 ops = sfc_flow_get_ops_by_spec(flow);
2510 if (ops == NULL) {
2511 rte_flow_error_set(error, ENOTSUP,
2512 RTE_FLOW_ERROR_TYPE_UNSPECIFIED, NULL,
2513 "No backend to handle this flow");
2514 return -rte_errno;
2515 }
2516
2517 if (ops->verify != NULL) {
2518 SFC_ASSERT(sfc_adapter_is_locked(sa));
2519 rc = ops->verify(sa, flow);
2520 }
2521
2522 if (rc != 0) {
2523 rte_flow_error_set(error, rc,
2524 RTE_FLOW_ERROR_TYPE_UNSPECIFIED, NULL,
2525 "Failed to verify flow validity with FW");
2526 return -rte_errno;
2527 }
2528
2529 return 0;
2530}
2531
2532static int
2533sfc_flow_validate(struct rte_eth_dev *dev,

Callers 1

sfc_flow_validateFunction · 0.85

Calls 3

sfc_flow_get_ops_by_specFunction · 0.85
rte_flow_error_setFunction · 0.85
verifyMethod · 0.80

Tested by

no test coverage detected