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

Function mlx4_flow_isolate

dpdk/drivers/net/mlx4/mlx4_flow.c:1182–1197  ·  view source on GitHub ↗

* Configure isolated mode. * * @see rte_flow_isolate() * @see rte_flow_ops */

Source from the content-addressed store, hash-verified

1180 * @see rte_flow_ops
1181 */
1182static int
1183mlx4_flow_isolate(struct rte_eth_dev *dev,
1184 int enable,
1185 struct rte_flow_error *error)
1186{
1187 struct mlx4_priv *priv = dev->data->dev_private;
1188
1189 if (!!enable == !!priv->isolated)
1190 return 0;
1191 priv->isolated = !!enable;
1192 if (mlx4_flow_sync(priv, error)) {
1193 priv->isolated = !enable;
1194 return -rte_errno;
1195 }
1196 return 0;
1197}
1198
1199/**
1200 * Destroy a flow rule.

Callers

nothing calls this directly

Calls 1

mlx4_flow_syncFunction · 0.85

Tested by

no test coverage detected