| /linux-6.15/net/ethtool/ |
| H A D | channels.c | 83 channels->combined_count)))) in channels_fill_reply() 121 old_total = channels.combined_count + in ethnl_set_channels() 130 ethnl_update_u32(&channels.combined_count, in ethnl_set_channels() 143 else if (channels.combined_count > channels.max_combined) in ethnl_set_channels() 154 if (!channels.combined_count && !channels.rx_count) in ethnl_set_channels() 156 else if (!channels.combined_count && !channels.tx_count) in ethnl_set_channels() 173 from_channel = channels.combined_count + in ethnl_set_channels()
|
| H A D | common.c | 738 if (channels.combined_count + channels.rx_count <= max_rxfh_in_use) { in ethtool_check_max_channel() 743 if (channels.combined_count + channels.rx_count <= max_rxnfc_in_use) { in ethtool_check_max_channel() 750 if (channels.combined_count + channels.rx_count <= max_mp_in_use) { in ethtool_check_max_channel()
|
| H A D | ioctl.c | 2128 channels.combined_count == curr.combined_count && in ethtool_set_channels() 2135 channels.combined_count > curr.max_combined || in ethtool_set_channels() 2140 if (!channels.combined_count && in ethtool_set_channels() 2149 from_channel = channels.combined_count + in ethtool_set_channels() 2151 to_channel = curr.combined_count + max(curr.rx_count, curr.tx_count); in ethtool_set_channels()
|
| /linux-6.15/drivers/net/ethernet/amd/xgbe/ |
| H A D | xgbe-ethtool.c | 720 channels->combined_count = combined; in xgbe_get_channels() 729 channels->combined_count, channels->rx_count, in xgbe_print_set_channels_input() 761 if (!channels->combined_count) { in xgbe_set_channels() 769 if (channels->combined_count > combined) { in xgbe_set_channels() 786 if ((channels->combined_count + channels->rx_count) > rx) { in xgbe_set_channels() 789 channels->combined_count + channels->rx_count, rx); in xgbe_set_channels() 794 if ((channels->combined_count + channels->tx_count) > tx) { in xgbe_set_channels() 797 channels->combined_count + channels->tx_count, tx); in xgbe_set_channels() 802 rx = channels->combined_count + channels->rx_count; in xgbe_set_channels() 803 tx = channels->combined_count + channels->tx_count; in xgbe_set_channels()
|
| /linux-6.15/tools/net/ynl/samples/ |
| H A D | ethtool.c | 35 if (dev->_present.combined_count) in main() 36 printf("combined %d ", dev->combined_count); in main()
|
| /linux-6.15/drivers/net/netdevsim/ |
| H A D | ethtool.c | 101 ch->combined_count = ns->ethtool.channels; in nsim_get_channels() 110 err = netif_set_real_num_queues(dev, ch->combined_count, in nsim_set_channels() 111 ch->combined_count); in nsim_set_channels() 115 ns->ethtool.channels = ch->combined_count; in nsim_set_channels()
|
| /linux-6.15/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_ethtool.c | 1253 ch->combined_count = min(fbn->num_rx_queues, in fbnic_get_channels() 1256 ch->combined_count = in fbnic_get_channels() 1258 ch->rx_count = fbn->num_rx_queues - ch->combined_count; in fbnic_get_channels() 1259 ch->tx_count = fbn->num_tx_queues - ch->combined_count; in fbnic_get_channels() 1266 fbn->num_rx_queues = ch->rx_count + ch->combined_count; in fbnic_set_queues() 1267 fbn->num_tx_queues = ch->tx_count + ch->combined_count; in fbnic_set_queues() 1268 fbn->num_napi = min(ch->rx_count + ch->tx_count + ch->combined_count, in fbnic_set_queues() 1288 if ((ch->rx_count && ch->tx_count && ch->combined_count) || in fbnic_set_channels() 1289 (standalone && standalone + ch->combined_count > max_napis) || in fbnic_set_channels() 1290 ch->rx_count + ch->combined_count > fbd->max_num_queues || in fbnic_set_channels() [all …]
|
| /linux-6.15/drivers/net/ethernet/emulex/benet/ |
| H A D | be_ethtool.c | 1227 ch->combined_count = min(adapter->num_tx_qs, num_rx_irqs); in be_get_channels() 1228 ch->rx_count = num_rx_irqs - ch->combined_count; in be_get_channels() 1229 ch->tx_count = adapter->num_tx_qs - ch->combined_count; in be_get_channels() 1246 if (ch->other_count || !ch->combined_count || in be_set_channels() 1250 if (ch->combined_count > be_max_qp_irqs(adapter) || in be_set_channels() 1252 (ch->rx_count + ch->combined_count) > be_max_rx_irqs(adapter)) || in be_set_channels() 1254 (ch->tx_count + ch->combined_count) > be_max_tx_irqs(adapter))) in be_set_channels() 1257 adapter->cfg_num_rx_irqs = ch->combined_count + ch->rx_count; in be_set_channels() 1258 adapter->cfg_num_tx_irqs = ch->combined_count + ch->tx_count; in be_set_channels()
|
| /linux-6.15/drivers/net/ethernet/pensando/ionic/ |
| H A D | ionic_ethtool.c | 753 ch->combined_count = lif->nxqs; in ionic_get_channels() 780 if (ch->combined_count && ch->rx_count) { in ionic_set_channels() 786 if (ch->combined_count) { in ionic_set_channels() 787 if (ch->combined_count > max_cnt) in ionic_set_channels() 792 else if (ch->combined_count == lif->nxqs) in ionic_set_channels() 795 if (lif->nxqs != ch->combined_count) in ionic_set_channels() 797 lif->nxqs, ch->combined_count); in ionic_set_channels() 799 qparam.nxqs = ch->combined_count; in ionic_set_channels()
|
| /linux-6.15/drivers/net/ethernet/wangxun/libwx/ |
| H A D | wx_ethtool.c | 445 ch->combined_count = wx->ring_feature[RING_F_RSS].indices; in wx_get_channels() 448 ch->combined_count = wx->ring_feature[RING_F_FDIR].indices; in wx_get_channels() 455 unsigned int count = ch->combined_count; in wx_set_channels()
|
| /linux-6.15/drivers/net/ethernet/cavium/liquidio/ |
| H A D | lio_ethtool.c | 504 u32 combined_count = 0, max_combined = 0; in lio_ethtool_get_channels() local 522 combined_count = oct->num_iqs; in lio_ethtool_get_channels() 530 combined_count = oct->num_iqs; in lio_ethtool_get_channels() 538 channel->combined_count = combined_count; in lio_ethtool_get_channels() 606 u32 combined_count, max_combined; in lio_ethtool_set_channels() local 616 if (!channel->combined_count || channel->other_count || in lio_ethtool_set_channels() 620 combined_count = channel->combined_count; in lio_ethtool_set_channels() 644 if (combined_count > max_combined || combined_count < 1) in lio_ethtool_set_channels() 647 if (combined_count == oct->num_iqs) in lio_ethtool_set_channels() 657 if (lio_reset_queues(dev, combined_count)) in lio_ethtool_set_channels()
|
| /linux-6.15/drivers/net/ethernet/microsoft/mana/ |
| H A D | mana_ethtool.c | 320 channel->combined_count = apc->num_queues; in mana_get_channels() 327 unsigned int new_count = channels->combined_count; in mana_set_channels()
|
| /linux-6.15/drivers/net/ethernet/intel/idpf/ |
| H A D | idpf_ethtool.c | 208 ch->combined_count = combined; in idpf_get_channels() 247 num_req_tx_q = ch->combined_count + ch->tx_count; in idpf_set_channels() 248 num_req_rx_q = ch->combined_count + ch->rx_count; in idpf_set_channels()
|
| /linux-6.15/drivers/net/ethernet/google/gve/ |
| H A D | gve_ethtool.c | 473 cmd->combined_count = 0; in gve_get_channels() 490 if (cmd->combined_count != old_settings.combined_count) in gve_set_channels()
|
| /linux-6.15/drivers/net/ethernet/ti/ |
| H A D | cpsw_ethtool.c | 395 ch->combined_count = 0; in cpsw_get_channels() 508 if (ch->combined_count) in cpsw_check_ch_settings()
|
| /linux-6.15/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_ethtool.c | 3559 channels->combined_count = BNX2X_NUM_ETH_QUEUES(bp); in bnx2x_get_channels() 3594 channels->combined_count); in bnx2x_set_channels() 3605 || (channels->combined_count == 0) || in bnx2x_set_channels() 3606 (channels->combined_count > BNX2X_MAX_RSS_COUNT(bp))) { in bnx2x_set_channels() 3612 if (channels->combined_count == BNX2X_NUM_ETH_QUEUES(bp)) { in bnx2x_set_channels() 3622 bnx2x_change_num_queues(bp, channels->combined_count); in bnx2x_set_channels() 3626 bnx2x_change_num_queues(bp, channels->combined_count); in bnx2x_set_channels()
|
| /linux-6.15/drivers/net/vmxnet3/ |
| H A D | vmxnet3_ethtool.c | 1325 ec->combined_count = adapter->num_tx_queues; in vmxnet3_get_channels() 1333 ec->combined_count = 1; in vmxnet3_get_channels() 1342 ec->max_combined = ec->combined_count; in vmxnet3_get_channels()
|
| /linux-6.15/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net_ethtool.c | 2218 channel->combined_count = min(nn->dp.num_rx_rings, num_tx_rings); in nfp_net_get_channels() 2219 channel->rx_count = nn->dp.num_rx_rings - channel->combined_count; in nfp_net_get_channels() 2220 channel->tx_count = num_tx_rings - channel->combined_count; in nfp_net_get_channels() 2253 total_rx = channel->combined_count + channel->rx_count; in nfp_net_set_channels() 2254 total_tx = channel->combined_count + channel->tx_count; in nfp_net_set_channels()
|
| /linux-6.15/drivers/s390/net/ |
| H A D | qeth_ethtool.c | 211 channels->combined_count = 0; in qeth_get_channels()
|
| /linux-6.15/drivers/net/ethernet/amazon/ena/ |
| H A D | ena_ethtool.c | 1018 channels->combined_count = adapter->num_io_queues; in ena_get_channels() 1025 u32 count = channels->combined_count; in ena_set_channels()
|
| /linux-6.15/drivers/net/ethernet/engleder/ |
| H A D | tsnep_ethtool.c | 304 ch->combined_count = adapter->num_queues; in tsnep_ethtool_get_channels()
|
| /linux-6.15/drivers/net/ethernet/qlogic/qede/ |
| H A D | qede_ethtool.c | 1060 channels->combined_count = QEDE_QUEUE_CNT(edev) - edev->fp_num_tx - in qede_get_channels() 1075 channels->other_count, channels->combined_count); in qede_set_channels() 1078 channels->combined_count; in qede_set_channels() 1087 if (!(channels->combined_count || (channels->rx_count && in qede_set_channels()
|
| /linux-6.15/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_ethtool.c | 923 channel->combined_count = bp->rx_nr_rings; in bnxt_get_channels() 925 channel->combined_count--; in bnxt_get_channels() 947 if (!channel->combined_count && in bnxt_set_channels() 951 if (channel->combined_count && in bnxt_set_channels() 959 if (channel->combined_count) in bnxt_set_channels() 964 req_tx_rings = sh ? channel->combined_count : channel->tx_count; in bnxt_set_channels() 965 req_rx_rings = sh ? channel->combined_count : channel->rx_count; in bnxt_set_channels() 998 bp->rx_nr_rings = channel->combined_count; in bnxt_set_channels() 999 bp->tx_nr_rings_per_tc = channel->combined_count; in bnxt_set_channels()
|
| /linux-6.15/drivers/net/ethernet/intel/fm10k/ |
| H A D | fm10k_ethtool.c | 1135 ch->combined_count = interface->ring_feature[RING_F_RSS].indices; in fm10k_get_channels() 1142 unsigned int count = ch->combined_count; in fm10k_set_channels()
|
| /linux-6.15/tools/testing/selftests/drivers/net/hw/ |
| H A D | ncdevmem.c | 228 num = rsp->rx_count + rsp->combined_count; in rxq_num()
|