src/dpdk/drivers/net/mvpp2/mrvl_flow.c
static int
mrvl_flow_isolate(struct rte_eth_dev *dev, int enable,
		  struct rte_flow_error *error)
{
	struct mrvl_priv *priv = dev->data->dev_private;

	if (dev->data->dev_started) {
		rte_flow_error_set(error, EBUSY,
				   RTE_FLOW_ERROR_TYPE_UNSPECIFIED,
				   NULL, "Port must be stopped first\n");
		return -rte_errno;
	}

	priv->isolated = enable;

	return 0;
}
/**
 * DPDK flow isolate callback called to isolate port.
 *
 * @param dev Pointer to the device.
 * @param enable Pass 0/1 to disable/enable port isolation.
 * @param error Pointer to the flow error.
 * @returns 0 in case of success, negative value otherwise.
 */
DPDK flow isolate callback called to isolate port.
@param dev Pointer to the device.
@param enable Pass 0/1 to disable/enable port isolation.
@param error Pointer to the flow error.
@returns 0 in case of success, negative value otherwise.
DPDK flow isolate callback called to isolate port . @param dev Pointer to the device . @param enable Pass 0 / 1 to disable / enable port isolation . @param error Pointer to the flow error . @returns 0 in case of success negative value otherwise .
static int
mrvl_flow_isolate(struct rte_eth_dev *dev, int enable,
		  struct rte_flow_error *error)
{
	struct mrvl_priv *priv = dev->data->dev_private;
	if (dev->data->dev_started) {
		rte_flow_error_set(error, EBUSY,
				   RTE_FLOW_ERROR_TYPE_UNSPECIFIED,
				   NULL, "Port must be stopped first\n");
		return -rte_errno;
	}
	priv->isolated = enable;
	return 0;
}
static int mrvl_flow_isolate ( struct rte_eth_dev * dev , int enable , struct rte_flow_error * error ) { struct mrvl_priv * priv = dev -> data -> dev_private ; if ( dev -> data -> dev_started ) { rte_flow_error_set ( error , EBUSY , RTE_FLOW_ERROR_TYPE_UNSPECIFIED , NULL , " \n " ) ; return - rte_errno ; } priv -> isolated = enable ; return 0 ; }
DPDK flow isolate callback called to isolate port.
DPDK flow isolate callback called to isolate port .