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

Function rte_flow_action_handle_create

dpdk/lib/ethdev/rte_flow.c:1285–1310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1283}
1284
1285struct rte_flow_action_handle *
1286rte_flow_action_handle_create(uint16_t port_id,
1287 const struct rte_flow_indir_action_conf *conf,
1288 const struct rte_flow_action *action,
1289 struct rte_flow_error *error)
1290{
1291 struct rte_flow_action_handle *handle;
1292 const struct rte_flow_ops *ops = rte_flow_ops_get(port_id, error);
1293
1294 if (unlikely(!ops))
1295 return NULL;
1296 if (unlikely(!ops->action_handle_create)) {
1297 rte_flow_error_set(error, ENOSYS,
1298 RTE_FLOW_ERROR_TYPE_UNSPECIFIED, NULL,
1299 rte_strerror(ENOSYS));
1300 return NULL;
1301 }
1302 handle = ops->action_handle_create(&rte_eth_devices[port_id],
1303 conf, action, error);
1304 if (handle == NULL)
1305 flow_err(port_id, -rte_errno, error);
1306
1307 rte_flow_trace_action_handle_create(port_id, conf, action, handle);
1308
1309 return handle;
1310}
1311
1312int
1313rte_flow_action_handle_destroy(uint16_t port_id,

Callers 1

action_handle_createFunction · 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