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

Function port_flow_isolate

lib/ff_dpdk_if.c:933–946  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

931
932#ifdef FF_FLOW_ISOLATE
933static int
934port_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
948static int
949create_tcp_flow(uint16_t port_id, uint16_t tcp_port) {

Callers 1

ff_dpdk_initFunction · 0.70

Calls 4

memsetFunction · 0.85
rte_flow_isolateFunction · 0.85
ff_logFunction · 0.85
port_flow_complainFunction · 0.70

Tested by

no test coverage detected