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

Function port_flow_isolate

dpdk/app/test-pmd/config.c:4036–4049  ·  view source on GitHub ↗

Restrict ingress traffic to the defined flow rules. */

Source from the content-addressed store, hash-verified

4034
4035/** Restrict ingress traffic to the defined flow rules. */
4036int
4037port_flow_isolate(portid_t port_id, int set)
4038{
4039 struct rte_flow_error error;
4040
4041 /* Poisoning to make sure PMDs update it in case of error. */
4042 memset(&error, 0x66, sizeof(error));
4043 if (rte_flow_isolate(port_id, set, &error))
4044 return port_flow_complain(&error);
4045 printf("Ingress traffic on port %u is %s to the defined flow rules\n",
4046 port_id,
4047 set ? "now restricted" : "not restricted anymore");
4048 return 0;
4049}
4050
4051/*
4052 * RX/TX ring descriptors display functions.

Callers 2

start_portFunction · 0.70
cmd_flow_parsedFunction · 0.70

Calls 4

memsetFunction · 0.85
rte_flow_isolateFunction · 0.85
port_flow_complainFunction · 0.70
printfFunction · 0.50

Tested by 1

start_portFunction · 0.56