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

Function mlx5_get_lowest_priority

dpdk/drivers/net/mlx5/mlx5_flow.c:1489–1498  ·  view source on GitHub ↗

* Get the lowest priority. * * @param[in] dev * Pointer to the Ethernet device structure. * @param[in] attributes * Pointer to device flow rule attributes. * * @return * The value of lowest priority of flow. */

Source from the content-addressed store, hash-verified

1487 * The value of lowest priority of flow.
1488 */
1489uint32_t
1490mlx5_get_lowest_priority(struct rte_eth_dev *dev,
1491 const struct rte_flow_attr *attr)
1492{
1493 struct mlx5_priv *priv = dev->data->dev_private;
1494
1495 if (!attr->group && !(attr->transfer && priv->fdb_def_rule))
1496 return priv->sh->flow_max_priority - 2;
1497 return MLX5_NON_ROOT_FLOW_MAX_PRIO - 1;
1498}
1499
1500/**
1501 * Calculate matcher priority of the flow.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected