* Indicates whether flow source vport is representor port. * * @param[in] priv * Pointer to device private context structure. * @param[in] act_priv * Pointer to actual device private context structure if have. * * @return * True when the flow source vport is representor port, false otherwise. */
| 2419 | * True when the flow source vport is representor port, false otherwise. |
| 2420 | */ |
| 2421 | static inline bool |
| 2422 | flow_source_vport_representor(struct mlx5_priv *priv, struct mlx5_priv *act_priv) |
| 2423 | { |
| 2424 | MLX5_ASSERT(priv); |
| 2425 | return (!act_priv ? (priv->representor_id != UINT16_MAX) : |
| 2426 | (act_priv->representor_id != UINT16_MAX)); |
| 2427 | } |
| 2428 | |
| 2429 | /* All types of Ethernet patterns used in control flow rules. */ |
| 2430 | enum mlx5_flow_ctrl_rx_eth_pattern_type { |
no outgoing calls
no test coverage detected