| 931 | |
| 932 | #ifdef FF_FLOW_ISOLATE |
| 933 | static int |
| 934 | port_flow_isolate(uint16_t port_id, int set) |
| 935 | { |
| 936 | struct rte_flow_error error; |
| 937 | |
| 938 | /* Poisoning to make sure PMDs update it in case of error. */ |
| 939 | memset(&error, 0x66, sizeof(error)); |
| 940 | if (rte_flow_isolate(port_id, set, &error)) |
| 941 | return port_flow_complain(&error); |
| 942 | ff_log(FF_LOG_INFO, FF_LOGTYPE_FSTACK_LIB, "Ingress traffic on port %u is %s to the defined flow rules\n", |
| 943 | port_id, |
| 944 | set ? "now restricted" : "not restricted anymore"); |
| 945 | return 0; |
| 946 | } |
| 947 | |
| 948 | static int |
| 949 | create_tcp_flow(uint16_t port_id, uint16_t tcp_port) { |
no test coverage detected