src/dpdk/drivers/net/i40e/i40e_fdir.c
void
i40e_fdir_stats_get(struct rte_eth_dev *dev, struct rte_eth_fdir_stats *stat)
{
	struct i40e_pf *pf = I40E_DEV_PRIVATE_TO_PF(dev->data->dev_private);
	struct i40e_hw *hw = I40E_PF_TO_HW(pf);
	uint32_t fdstat;

	fdstat = I40E_READ_REG(hw, I40E_PFQF_FDSTAT);
	stat->guarant_cnt =
		(uint32_t)((fdstat & I40E_PFQF_FDSTAT_GUARANT_CNT_MASK) >>
			    I40E_PFQF_FDSTAT_GUARANT_CNT_SHIFT);
	stat->best_cnt =
		(uint32_t)((fdstat & I40E_PFQF_FDSTAT_BEST_CNT_MASK) >>
			    I40E_PFQF_FDSTAT_BEST_CNT_SHIFT);
}
/*
 * i40e_fdir_stat_get - get statistics of Flow Director
 * @pf: ethernet device to get info from
 * @stat: a pointer to a structure of type *rte_eth_fdir_stats* to be filled with
 *    the flow director statistics.
 */
get statistics of Flow Director
@pf: ethernet device to get info from
@stat: a pointer to a structure of type *rte_eth_fdir_stats* to be filled with
the flow director statistics.
get statistics of Flow Director @pf : ethernet device to get info from @stat : a pointer to a structure of type * rte_eth_fdir_stats * to be filled with the flow director statistics .
void
i40e_fdir_stats_get(struct rte_eth_dev *dev, struct rte_eth_fdir_stats *stat)
{
	struct i40e_pf *pf = I40E_DEV_PRIVATE_TO_PF(dev->data->dev_private);
	struct i40e_hw *hw = I40E_PF_TO_HW(pf);
	uint32_t fdstat;
	fdstat = I40E_READ_REG(hw, I40E_PFQF_FDSTAT);
	stat->guarant_cnt =
		(uint32_t)((fdstat & I40E_PFQF_FDSTAT_GUARANT_CNT_MASK) >>
			    I40E_PFQF_FDSTAT_GUARANT_CNT_SHIFT);
	stat->best_cnt =
		(uint32_t)((fdstat & I40E_PFQF_FDSTAT_BEST_CNT_MASK) >>
			    I40E_PFQF_FDSTAT_BEST_CNT_SHIFT);
}
void i40e_fdir_stats_get ( struct rte_eth_dev * dev , struct rte_eth_fdir_stats * stat ) { struct i40e_pf * pf = I40E_DEV_PRIVATE_TO_PF ( dev -> data -> dev_private ) ; struct i40e_hw * hw = I40E_PF_TO_HW ( pf ) ; uint32_t fdstat ; fdstat = I40E_READ_REG ( hw , I40E_PFQF_FDSTAT ) ; stat -> guarant_cnt = ( uint32_t ) ( ( fdstat & I40E_PFQF_FDSTAT_GUARANT_CNT_MASK ) >> I40E_PFQF_FDSTAT_GUARANT_CNT_SHIFT ) ; stat -> best_cnt = ( uint32_t ) ( ( fdstat & I40E_PFQF_FDSTAT_BEST_CNT_MASK ) >> I40E_PFQF_FDSTAT_BEST_CNT_SHIFT ) ; }
i40e_fdir_stat_get - get statistics of Flow Director
 @pf: ethernet device to get info from
 @stat: a pointer to a structure of type *rte_eth_fdir_stats* to be filled with
    the flow director statistics.
i40e_fdir_stat_get - get statistics of Flow Director @pf : ethernet device to get info from @stat : a pointer to a structure of type * rte_eth_fdir_stats * to be filled with the flow director statistics .