src/dpdk/drivers/net/hinic/hinic_pmd_rx.c
static int hinic_setup_num_qps(struct hinic_nic_dev *nic_dev)
{
	int err, i;

	if (!(nic_dev->flags & ETH_MQ_RX_RSS_FLAG)) {
		nic_dev->flags &= ~ETH_MQ_RX_RSS_FLAG;
		nic_dev->num_rss = 0;
		if (nic_dev->num_rq > 1) {
			/* get rss template id */
			err = hinic_rss_template_alloc(nic_dev->hwdev,
						       &nic_dev->rss_tmpl_idx);
			if (err) {
				PMD_DRV_LOG(WARNING, "Alloc rss template failed");
				return err;
			}
			nic_dev->flags |= ETH_MQ_RX_RSS_FLAG;
			for (i = 0; i < nic_dev->num_rq; i++)
				hinic_add_rq_to_rx_queue_list(nic_dev, i);
		}
	}

	return 0;
}
/**
 * hinic_setup_num_qps - determine num_qps from rss_tmpl_id
 * @nic_dev: pointer to the private ethernet device
 * Return: 0 on Success, error code otherwise.
 **/
determine num_qps from rss_tmpl_id
@nic_dev: pointer to the private ethernet device
Return: 0 on Success, error code otherwise.
determine num_qps from rss_tmpl_id @nic_dev : pointer to the private ethernet device Return : 0 on Success error code otherwise .
static int hinic_setup_num_qps(struct hinic_nic_dev *nic_dev)
{
	int err, i;
	if (!(nic_dev->flags & ETH_MQ_RX_RSS_FLAG)) {
		nic_dev->flags &= ~ETH_MQ_RX_RSS_FLAG;
		nic_dev->num_rss = 0;
		if (nic_dev->num_rq > 1) {
			err = hinic_rss_template_alloc(nic_dev->hwdev,
						       &nic_dev->rss_tmpl_idx);
			if (err) {
				PMD_DRV_LOG(WARNING, "Alloc rss template failed");
				return err;
			}
			nic_dev->flags |= ETH_MQ_RX_RSS_FLAG;
			for (i = 0; i < nic_dev->num_rq; i++)
				hinic_add_rq_to_rx_queue_list(nic_dev, i);
		}
	}
	return 0;
}
static int hinic_setup_num_qps ( struct hinic_nic_dev * nic_dev ) { int err , i ; if ( ! ( nic_dev -> flags & ETH_MQ_RX_RSS_FLAG ) ) { nic_dev -> flags &= ~ ETH_MQ_RX_RSS_FLAG ; nic_dev -> num_rss = 0 ; if ( nic_dev -> num_rq > 1 ) { err = hinic_rss_template_alloc ( nic_dev -> hwdev , & nic_dev -> rss_tmpl_idx ) ; if ( err ) { PMD_DRV_LOG ( WARNING , " " ) ; return err ; } nic_dev -> flags |= ETH_MQ_RX_RSS_FLAG ; for ( i = 0 ; i < nic_dev -> num_rq ; i ++ ) hinic_add_rq_to_rx_queue_list ( nic_dev , i ) ; } } return 0 ; }
hinic_setup_num_qps - determine num_qps from rss_tmpl_id
 @nic_dev: pointer to the private ethernet device
 Return: 0 on Success, error code otherwise.
hinic_setup_num_qps - determine num_qps from rss_tmpl_id @nic_dev : pointer to the private ethernet device Return : 0 on Success error code otherwise .
/* get rss template id */