src/dpdk/drivers/net/mvpp2/mrvl_flow.c
static inline int
mrvl_flow_can_be_added(struct mrvl_priv *priv, const struct rte_flow *flow)
{
	int same = memcmp(&flow->table_key, &priv->cls_tbl_params.key,
			  sizeof(struct pp2_cls_tbl_key)) == 0;

	return same && mrvl_engine_type(flow) == priv->cls_tbl_params.type;
}
/**
 * Check whether new flow can be added to the table
 *
 * @param priv Pointer to the port's private data.
 * @param flow Pointer to the new flow.
 * @return 1 in case flow can be added, 0 otherwise.
 */
Check whether new flow can be added to the table
@param priv Pointer to the port's private data.
@param flow Pointer to the new flow.
@return 1 in case flow can be added, 0 otherwise.
Check whether new flow can be added to the table @param priv Pointer to the port ' s private data . @param flow Pointer to the new flow . @return 1 in case flow can be added 0 otherwise .
static inline int
mrvl_flow_can_be_added(struct mrvl_priv *priv, const struct rte_flow *flow)
{
	int same = memcmp(&flow->table_key, &priv->cls_tbl_params.key,
			  sizeof(struct pp2_cls_tbl_key)) == 0;
	return same && mrvl_engine_type(flow) == priv->cls_tbl_params.type;
}
static inline int mrvl_flow_can_be_added ( struct mrvl_priv * priv , const struct rte_flow * flow ) { int same = memcmp ( & flow -> table_key , & priv -> cls_tbl_params . key , sizeof ( struct pp2_cls_tbl_key ) ) == 0 ; return same && mrvl_engine_type ( flow ) == priv -> cls_tbl_params . type ; }
Check whether new flow can be added to the table
 @param priv Pointer to the port's private data.
Check whether new flow can be added to the table @param priv Pointer to the port ' s private data .