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

Function rte_flow_action_handle_destroy

dpdk/lib/ethdev/rte_flow.c:1312–1333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1310}
1311
1312int
1313rte_flow_action_handle_destroy(uint16_t port_id,
1314 struct rte_flow_action_handle *handle,
1315 struct rte_flow_error *error)
1316{
1317 int ret;
1318 const struct rte_flow_ops *ops = rte_flow_ops_get(port_id, error);
1319
1320 if (unlikely(!ops))
1321 return -rte_errno;
1322 if (unlikely(!ops->action_handle_destroy))
1323 return rte_flow_error_set(error, ENOSYS,
1324 RTE_FLOW_ERROR_TYPE_UNSPECIFIED,
1325 NULL, rte_strerror(ENOSYS));
1326 ret = ops->action_handle_destroy(&rte_eth_devices[port_id],
1327 handle, error);
1328 ret = flow_err(port_id, ret, error);
1329
1330 rte_flow_trace_action_handle_destroy(port_id, handle, ret);
1331
1332 return ret;
1333}
1334
1335int
1336rte_flow_action_handle_update(uint16_t port_id,

Callers 2

port_action_handle_flushFunction · 0.85

Calls 4

rte_flow_ops_getFunction · 0.85
rte_flow_error_setFunction · 0.85
rte_strerrorFunction · 0.85
flow_errFunction · 0.85

Tested by

no test coverage detected