Lines Matching refs:nrx

320 				unsigned int nrx)  in fun_alloc_queue_irqs()  argument
336 for (i = fp->num_rx_irqs; i < nrx; i++) { in fun_alloc_queue_irqs()
346 ntx, nrx); in fun_alloc_queue_irqs()
1364 static void fun_dflt_rss_indir(struct funeth_priv *fp, unsigned int nrx) in fun_dflt_rss_indir() argument
1369 fp->indir_table[i] = ethtool_rxfh_indir_default(i, nrx); in fun_dflt_rss_indir()
1377 static void fun_reset_rss_indir(struct net_device *dev, unsigned int nrx) in fun_reset_rss_indir() argument
1387 fp->indir_table_nentries = rounddown(FUN_ETH_RSS_MAX_INDIR_ENT, nrx); in fun_reset_rss_indir()
1388 fun_dflt_rss_indir(fp, nrx); in fun_reset_rss_indir()
1396 static int fun_rss_set_qnum(struct net_device *dev, unsigned int nrx, in fun_rss_set_qnum() argument
1409 if (fp->indir_table[i] >= nrx) in fun_rss_set_qnum()
1418 fun_reset_rss_indir(dev, nrx); in fun_rss_set_qnum()
1466 unsigned int nrx) in fun_set_ring_count() argument
1469 if (nrx != netdev->real_num_rx_queues) { in fun_set_ring_count()
1470 netif_set_real_num_rx_queues(netdev, nrx); in fun_set_ring_count()
1471 fun_reset_rss_indir(netdev, nrx); in fun_set_ring_count()
1534 unsigned int *nrx) in fun_max_qs() argument
1540 *nrx = 1; in fun_max_qs()
1556 *nrx = *ntx; in fun_max_qs()
1559 if (*nrx > FUN_ETH_RSS_MAX_INDIR_ENT) in fun_max_qs()
1560 *nrx = FUN_ETH_RSS_MAX_INDIR_ENT; in fun_max_qs()
1566 unsigned int ntx, nrx; in fun_queue_defaults() local
1569 nrx = min(dev->num_rx_queues, FUN_DFLT_QUEUES); in fun_queue_defaults()
1570 if (ntx <= nrx) { in fun_queue_defaults()
1572 nrx = min(nrx, nsqs - ntx); in fun_queue_defaults()
1574 nrx = min(nrx, nsqs / 2); in fun_queue_defaults()
1575 ntx = min(ntx, nsqs - nrx); in fun_queue_defaults()
1579 netif_set_real_num_rx_queues(dev, nrx); in fun_queue_defaults()
1626 unsigned int nrx) in fun_change_num_queues() argument
1629 unsigned int keep_rx = min(dev->real_num_rx_queues, nrx); in fun_change_num_queues()
1641 .nrxqs = nrx, in fun_change_num_queues()
1664 if (nrx < dev->real_num_rx_queues) { in fun_change_num_queues()
1665 err = fun_rss_set_qnum(dev, nrx, true); in fun_change_num_queues()
1669 for (i = nrx; i < dev->real_num_rx_queues; i++) in fun_change_num_queues()
1673 netif_set_real_num_rx_queues(dev, nrx); in fun_change_num_queues()
1686 if (nrx > dev->real_num_rx_queues) { in fun_change_num_queues()
1687 netif_set_real_num_rx_queues(dev, nrx); in fun_change_num_queues()
1688 fun_rss_set_qnum(dev, nrx, false); in fun_change_num_queues()
1715 unsigned int ntx, nrx; in fun_create_netdev() local
1718 rc = fun_max_qs(ed, &ntx, &nrx); in fun_create_netdev()
1722 netdev = alloc_etherdev_mqs(sizeof(*fp), ntx, nrx); in fun_create_netdev()