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

Function eth_dev_flow_isolate_set

dpdk/drivers/net/failsafe/failsafe_ether.c:49–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49static int
50eth_dev_flow_isolate_set(struct rte_eth_dev *dev,
51 struct sub_device *sdev)
52{
53 struct rte_flow_error ferror;
54 int ret;
55
56 if (!PRIV(dev)->flow_isolated) {
57 DEBUG("Flow isolation already disabled");
58 } else {
59 DEBUG("Enabling flow isolation");
60 ret = rte_flow_isolate(PORT_ID(sdev),
61 PRIV(dev)->flow_isolated,
62 &ferror);
63 if (ret) {
64 fs_flow_complain(&ferror);
65 return ret;
66 }
67 }
68 return 0;
69}
70
71static int
72fs_eth_dev_conf_apply(struct rte_eth_dev *dev,

Callers 1

Calls 2

rte_flow_isolateFunction · 0.85
fs_flow_complainFunction · 0.85

Tested by

no test coverage detected