Restrict ingress traffic to the defined flow rules. */
| 4034 | |
| 4035 | /** Restrict ingress traffic to the defined flow rules. */ |
| 4036 | int |
| 4037 | port_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. |