MCPcopy Index your code
hub / github.com/F-Stack/f-stack / rte_flow_isolate

Function rte_flow_isolate

dpdk/lib/ethdev/rte_flow.c:535–559  ·  view source on GitHub ↗

Restrict ingress traffic to the defined flow rules. */

Source from the content-addressed store, hash-verified

533
534/* Restrict ingress traffic to the defined flow rules. */
535int
536rte_flow_isolate(uint16_t port_id,
537 int set,
538 struct rte_flow_error *error)
539{
540 struct rte_eth_dev *dev = &rte_eth_devices[port_id];
541 const struct rte_flow_ops *ops = rte_flow_ops_get(port_id, error);
542 int ret;
543
544 if (!ops)
545 return -rte_errno;
546 if (likely(!!ops->isolate)) {
547 fts_enter(dev);
548 ret = ops->isolate(dev, set, error);
549 fts_exit(dev);
550 ret = flow_err(port_id, ret, error);
551
552 rte_flow_trace_isolate(port_id, set, ret);
553
554 return ret;
555 }
556 return rte_flow_error_set(error, ENOSYS,
557 RTE_FLOW_ERROR_TYPE_UNSPECIFIED,
558 NULL, rte_strerror(ENOSYS));
559}
560
561/* Initialize flow error structure. */
562int

Callers 6

port_flow_isolateFunction · 0.85
member_rte_flow_prepareFunction · 0.85
bond_flow_isolateFunction · 0.85
eth_dev_flow_isolate_setFunction · 0.85
fs_flow_isolateFunction · 0.85
port_flow_isolateFunction · 0.85

Calls 6

rte_flow_ops_getFunction · 0.85
fts_enterFunction · 0.85
fts_exitFunction · 0.85
flow_errFunction · 0.85
rte_flow_error_setFunction · 0.85
rte_strerrorFunction · 0.85

Tested by

no test coverage detected