| 47 | } |
| 48 | |
| 49 | static int |
| 50 | eth_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 | |
| 71 | static int |
| 72 | fs_eth_dev_conf_apply(struct rte_eth_dev *dev, |
no test coverage detected