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

Function flow_rxq_flags_set

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

* Set the Rx queue flags (Mark/Flag and Tunnel Ptypes) for a flow * * @param[in] dev * Pointer to the Ethernet device structure. * @param[in] flow * Pointer to flow structure. */

Source from the content-addressed store, hash-verified

1771 * Pointer to flow structure.
1772 */
1773static void
1774flow_rxq_flags_set(struct rte_eth_dev *dev, struct rte_flow *flow)
1775{
1776 struct mlx5_priv *priv = dev->data->dev_private;
1777 uint32_t handle_idx;
1778 struct mlx5_flow_handle *dev_handle;
1779 struct mlx5_flow_workspace *wks = mlx5_flow_get_thread_workspace();
1780
1781 MLX5_ASSERT(wks);
1782 if (wks->mark)
1783 flow_rxq_mark_flag_set(dev);
1784 SILIST_FOREACH(priv->sh->ipool[MLX5_IPOOL_MLX5_FLOW], flow->dev_handles,
1785 handle_idx, dev_handle, next)
1786 flow_drv_rxq_flags_set(dev, dev_handle);
1787}
1788
1789/**
1790 * Clear the Rx queue flags (Mark/Flag and Tunnel Ptype) associated with the

Callers 1

flow_list_createFunction · 0.85

Calls 3

flow_rxq_mark_flag_setFunction · 0.85
flow_drv_rxq_flags_setFunction · 0.85

Tested by

no test coverage detected