src/dpdk/drivers/net/bnxt/bnxt_stats.c
static void bnxt_update_fc_pre_qstat(uint32_t *in_tbl,
				     uint64_t *out_tbl,
				     struct bnxt_filter_info *filter,
				     uint32_t *ptbl_cnt)
{
	uint32_t in_tbl_cnt = *ptbl_cnt;

	in_tbl[in_tbl_cnt] = filter->flow_id;
	out_tbl[2 * in_tbl_cnt] = filter->hw_stats.packets;
	out_tbl[2 * in_tbl_cnt + 1] = filter->hw_stats.bytes;
	in_tbl_cnt++;
	*ptbl_cnt = in_tbl_cnt;
}
/* Update the input context memory with the flow counter IDs
 * of the flows that we are interested in.
 * Also, update the output tables with the current local values
 * since that is what will be used by FW to accumulate
 */
Update the input context memory with the flow counter IDs
of the flows that we are interested in.
Also, update the output tables with the current local values
since that is what will be used by FW to accumulate
Update the input context memory with the flow counter IDs of the flows that we are interested in . Also update the output tables with the current local values since that is what will be used by FW to accumulate
static void bnxt_update_fc_pre_qstat(uint32_t *in_tbl,
				     uint64_t *out_tbl,
				     struct bnxt_filter_info *filter,
				     uint32_t *ptbl_cnt)
{
	uint32_t in_tbl_cnt = *ptbl_cnt;
	in_tbl[in_tbl_cnt] = filter->flow_id;
	out_tbl[2 * in_tbl_cnt] = filter->hw_stats.packets;
	out_tbl[2 * in_tbl_cnt + 1] = filter->hw_stats.bytes;
	in_tbl_cnt++;
	*ptbl_cnt = in_tbl_cnt;
}
static void bnxt_update_fc_pre_qstat ( uint32_t * in_tbl , uint64_t * out_tbl , struct bnxt_filter_info * filter , uint32_t * ptbl_cnt ) { uint32_t in_tbl_cnt = * ptbl_cnt ; in_tbl [ in_tbl_cnt ] = filter -> flow_id ; out_tbl [ 2 * in_tbl_cnt ] = filter -> hw_stats . packets ; out_tbl [ 2 * in_tbl_cnt + 1 ] = filter -> hw_stats . bytes ; in_tbl_cnt ++ ; * ptbl_cnt = in_tbl_cnt ; }
Update the input context memory with the flow counter IDs
 of the flows that we are interested in.
Update the input context memory with the flow counter IDs of the flows that we are interested in .