src/dpdk/drivers/net/txgbe/txgbe_flow.c
static int
txgbe_flow_flush(struct rte_eth_dev *dev,
		struct rte_flow_error *error)
{
	int ret = 0;

	txgbe_clear_all_ntuple_filter(dev);
	txgbe_clear_all_ethertype_filter(dev);
	txgbe_clear_syn_filter(dev);

	ret = txgbe_clear_all_fdir_filter(dev);
	if (ret < 0) {
		rte_flow_error_set(error, EINVAL, RTE_FLOW_ERROR_TYPE_HANDLE,
					NULL, "Failed to flush rule");
		return ret;
	}

	ret = txgbe_clear_all_l2_tn_filter(dev);
	if (ret < 0) {
		rte_flow_error_set(error, EINVAL, RTE_FLOW_ERROR_TYPE_HANDLE,
					NULL, "Failed to flush rule");
		return ret;
	}

	txgbe_clear_rss_filter(dev);

	txgbe_filterlist_flush();

	return 0;
}
/*  Destroy all flow rules associated with a port on txgbe. */
Destroy all flow rules associated with a port on txgbe.
Destroy all flow rules associated with a port on txgbe .
static int
txgbe_flow_flush(struct rte_eth_dev *dev,
		struct rte_flow_error *error)
{
	int ret = 0;
	txgbe_clear_all_ntuple_filter(dev);
	txgbe_clear_all_ethertype_filter(dev);
	txgbe_clear_syn_filter(dev);
	ret = txgbe_clear_all_fdir_filter(dev);
	if (ret < 0) {
		rte_flow_error_set(error, EINVAL, RTE_FLOW_ERROR_TYPE_HANDLE,
					NULL, "Failed to flush rule");
		return ret;
	}
	ret = txgbe_clear_all_l2_tn_filter(dev);
	if (ret < 0) {
		rte_flow_error_set(error, EINVAL, RTE_FLOW_ERROR_TYPE_HANDLE,
					NULL, "Failed to flush rule");
		return ret;
	}
	txgbe_clear_rss_filter(dev);
	txgbe_filterlist_flush();
	return 0;
}
static int txgbe_flow_flush ( struct rte_eth_dev * dev , struct rte_flow_error * error ) { int ret = 0 ; txgbe_clear_all_ntuple_filter ( dev ) ; txgbe_clear_all_ethertype_filter ( dev ) ; txgbe_clear_syn_filter ( dev ) ; ret = txgbe_clear_all_fdir_filter ( dev ) ; if ( ret < 0 ) { rte_flow_error_set ( error , EINVAL , RTE_FLOW_ERROR_TYPE_HANDLE , NULL , " " ) ; return ret ; } ret = txgbe_clear_all_l2_tn_filter ( dev ) ; if ( ret < 0 ) { rte_flow_error_set ( error , EINVAL , RTE_FLOW_ERROR_TYPE_HANDLE , NULL , " " ) ; return ret ; } txgbe_clear_rss_filter ( dev ) ; txgbe_filterlist_flush ( ) ; return 0 ; }
Destroy all flow rules associated with a port on txgbe.
Destroy all flow rules associated with a port on txgbe .