* 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. */
| 1487 | * The value of lowest priority of flow. |
| 1488 | */ |
| 1489 | uint32_t |
| 1490 | mlx5_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. |
no outgoing calls
no test coverage detected