/linux/net/ethtool/ |
A D | channels.c | 83 channels->combined_count)))) in channels_fill_reply() 141 old_total = channels.combined_count + in ethnl_set_channels() 150 ethnl_update_u32(&channels.combined_count, in ethnl_set_channels() 164 else if (channels.combined_count > channels.max_combined) in ethnl_set_channels() 176 if (!channels.combined_count && !channels.rx_count) in ethnl_set_channels() 178 else if (!channels.combined_count && !channels.tx_count) in ethnl_set_channels() 196 (channels.combined_count + channels.rx_count) <= max_rx_in_use) { in ethnl_set_channels() 203 from_channel = channels.combined_count + in ethnl_set_channels()
|
A D | ioctl.c | 1817 channels.combined_count == curr.combined_count && in ethtool_set_channels() 1824 channels.combined_count > curr.max_combined || in ethtool_set_channels() 1829 if (!channels.combined_count && in ethtool_set_channels() 1837 (channels.combined_count + channels.rx_count) <= max_rx_in_use) in ethtool_set_channels() 1841 from_channel = channels.combined_count + in ethtool_set_channels() 1843 to_channel = curr.combined_count + max(curr.rx_count, curr.tx_count); in ethtool_set_channels()
|
/linux/drivers/net/ethernet/amd/xgbe/ |
A D | xgbe-ethtool.c | 717 channels->combined_count = combined; in xgbe_get_channels() 726 channels->combined_count, channels->rx_count, in xgbe_print_set_channels_input() 758 if (!channels->combined_count) { in xgbe_set_channels() 766 if (channels->combined_count > combined) { in xgbe_set_channels() 783 if ((channels->combined_count + channels->rx_count) > rx) { in xgbe_set_channels() 786 channels->combined_count + channels->rx_count, rx); in xgbe_set_channels() 791 if ((channels->combined_count + channels->tx_count) > tx) { in xgbe_set_channels() 794 channels->combined_count + channels->tx_count, tx); in xgbe_set_channels() 799 rx = channels->combined_count + channels->rx_count; in xgbe_set_channels() 800 tx = channels->combined_count + channels->tx_count; in xgbe_set_channels()
|
/linux/drivers/net/netdevsim/ |
A D | ethtool.c | 93 ch->combined_count = ns->ethtool.channels; in nsim_get_channels() 102 err = netif_set_real_num_queues(dev, ch->combined_count, in nsim_set_channels() 103 ch->combined_count); in nsim_set_channels() 107 ns->ethtool.channels = ch->combined_count; in nsim_set_channels()
|
/linux/drivers/net/ethernet/pensando/ionic/ |
A D | ionic_ethtool.c | 595 ch->combined_count = lif->nxqs; in ionic_get_channels() 617 if (ch->combined_count && ch->rx_count) { in ionic_set_channels() 623 if (ch->combined_count) { in ionic_set_channels() 624 if (ch->combined_count > max_cnt) in ionic_set_channels() 629 else if (ch->combined_count == lif->nxqs) in ionic_set_channels() 632 if (lif->nxqs != ch->combined_count) in ionic_set_channels() 634 lif->nxqs, ch->combined_count); in ionic_set_channels() 636 qparam.nxqs = ch->combined_count; in ionic_set_channels()
|
/linux/drivers/net/ethernet/emulex/benet/ |
A D | be_ethtool.c | 1225 ch->combined_count = min(adapter->num_tx_qs, num_rx_irqs); in be_get_channels() 1226 ch->rx_count = num_rx_irqs - ch->combined_count; in be_get_channels() 1227 ch->tx_count = adapter->num_tx_qs - ch->combined_count; in be_get_channels() 1244 if (ch->other_count || !ch->combined_count || in be_set_channels() 1248 if (ch->combined_count > be_max_qp_irqs(adapter) || in be_set_channels() 1250 (ch->rx_count + ch->combined_count) > be_max_rx_irqs(adapter)) || in be_set_channels() 1252 (ch->tx_count + ch->combined_count) > be_max_tx_irqs(adapter))) in be_set_channels() 1255 adapter->cfg_num_rx_irqs = ch->combined_count + ch->rx_count; in be_set_channels() 1256 adapter->cfg_num_tx_irqs = ch->combined_count + ch->tx_count; in be_set_channels()
|
/linux/tools/include/uapi/linux/ |
A D | ethtool.h | 48 __u32 combined_count; member
|
/linux/drivers/net/ethernet/microsoft/mana/ |
A D | mana_ethtool.c | 203 channel->combined_count = apc->num_queues; in mana_get_channels() 210 unsigned int new_count = channels->combined_count; in mana_set_channels()
|
/linux/drivers/net/ethernet/google/gve/ |
A D | gve_ethtool.c | 387 cmd->combined_count = 0; in gve_get_channels() 403 if (cmd->combined_count != old_settings.combined_count) in gve_set_channels()
|
/linux/drivers/net/ethernet/cavium/liquidio/ |
A D | lio_ethtool.c | 502 u32 combined_count = 0, max_combined = 0; in lio_ethtool_get_channels() local 520 combined_count = oct->num_iqs; in lio_ethtool_get_channels() 528 combined_count = oct->num_iqs; in lio_ethtool_get_channels() 536 channel->combined_count = combined_count; in lio_ethtool_get_channels() 604 u32 combined_count, max_combined; in lio_ethtool_set_channels() local 614 if (!channel->combined_count || channel->other_count || in lio_ethtool_set_channels() 618 combined_count = channel->combined_count; in lio_ethtool_set_channels() 642 if (combined_count > max_combined || combined_count < 1) in lio_ethtool_set_channels() 645 if (combined_count == oct->num_iqs) in lio_ethtool_set_channels() 655 if (lio_reset_queues(dev, combined_count)) in lio_ethtool_set_channels()
|
/linux/drivers/net/ethernet/netronome/nfp/ |
A D | nfp_net_ethtool.c | 1408 channel->combined_count = min(nn->dp.num_rx_rings, num_tx_rings); in nfp_net_get_channels() 1409 channel->rx_count = nn->dp.num_rx_rings - channel->combined_count; in nfp_net_get_channels() 1410 channel->tx_count = num_tx_rings - channel->combined_count; in nfp_net_get_channels() 1443 total_rx = channel->combined_count + channel->rx_count; in nfp_net_set_channels() 1444 total_tx = channel->combined_count + channel->tx_count; in nfp_net_set_channels()
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_ethtool.c | 3328 ch->combined_count = ice_get_combined_cnt(vsi); in ice_get_channels() 3329 ch->rx_count = vsi->num_rxq - ch->combined_count; in ice_get_channels() 3330 ch->tx_count = vsi->num_txq - ch->combined_count; in ice_get_channels() 3434 if (ch->combined_count == curr_combined) in ice_set_channels() 3435 ch->combined_count = 0; in ice_set_channels() 3437 if (!(ch->combined_count || (ch->rx_count && ch->tx_count))) { in ice_set_channels() 3442 new_rx = ch->combined_count + ch->rx_count; in ice_set_channels() 3443 new_tx = ch->combined_count + ch->tx_count; in ice_set_channels()
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
A D | bnxt_ethtool.c | 857 channel->combined_count = bp->rx_nr_rings; in bnxt_get_channels() 859 channel->combined_count--; in bnxt_get_channels() 880 if (!channel->combined_count && in bnxt_set_channels() 884 if (channel->combined_count && in bnxt_set_channels() 892 if (channel->combined_count) in bnxt_set_channels() 897 req_tx_rings = sh ? channel->combined_count : channel->tx_count; in bnxt_set_channels() 898 req_rx_rings = sh ? channel->combined_count : channel->rx_count; in bnxt_set_channels() 935 bp->rx_nr_rings = channel->combined_count; in bnxt_set_channels() 936 bp->tx_nr_rings_per_tc = channel->combined_count; in bnxt_set_channels()
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
A D | bnx2x_ethtool.c | 3562 channels->combined_count = BNX2X_NUM_ETH_QUEUES(bp); in bnx2x_get_channels() 3597 channels->combined_count); in bnx2x_set_channels() 3608 || (channels->combined_count == 0) || in bnx2x_set_channels() 3609 (channels->combined_count > BNX2X_MAX_RSS_COUNT(bp))) { in bnx2x_set_channels() 3615 if (channels->combined_count == BNX2X_NUM_ETH_QUEUES(bp)) { in bnx2x_set_channels() 3625 bnx2x_change_num_queues(bp, channels->combined_count); in bnx2x_set_channels() 3629 bnx2x_change_num_queues(bp, channels->combined_count); in bnx2x_set_channels()
|
/linux/drivers/net/ethernet/ti/ |
A D | cpsw_ethtool.c | 397 ch->combined_count = 0; in cpsw_get_channels() 522 if (ch->combined_count) in cpsw_check_ch_settings()
|
/linux/drivers/net/ethernet/amazon/ena/ |
A D | ena_ethtool.c | 837 channels->combined_count = adapter->num_io_queues; in ena_get_channels() 844 u32 count = channels->combined_count; in ena_set_channels()
|
/linux/drivers/net/ethernet/qlogic/qede/ |
A D | qede_ethtool.c | 1052 channels->combined_count = QEDE_QUEUE_CNT(edev) - edev->fp_num_tx - in qede_get_channels() 1067 channels->other_count, channels->combined_count); in qede_set_channels() 1070 channels->combined_count; in qede_set_channels() 1079 if (!(channels->combined_count || (channels->rx_count && in qede_set_channels()
|
/linux/drivers/s390/net/ |
A D | qeth_ethtool.c | 209 channels->combined_count = 0; in qeth_get_channels()
|
/linux/drivers/net/ethernet/intel/fm10k/ |
A D | fm10k_ethtool.c | 1129 ch->combined_count = interface->ring_feature[RING_F_RSS].indices; in fm10k_get_channels() 1136 unsigned int count = ch->combined_count; in fm10k_set_channels()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | en_ethtool.c | 396 ch->combined_count = priv->channels.params.num_channels; in mlx5e_ethtool_get_channels() 400 ch->combined_count *= 2; in mlx5e_ethtool_get_channels() 418 unsigned int count = ch->combined_count; in mlx5e_ethtool_set_channels()
|
/linux/include/uapi/linux/ |
A D | ethtool.h | 562 __u32 combined_count; member
|
/linux/drivers/net/ethernet/huawei/hinic/ |
A D | hinic_ethtool.c | 887 channels->combined_count = hinic_hwdev_num_qps(hwdev); in hinic_get_channels() 894 unsigned int count = channels->combined_count; in hinic_set_channels()
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
A D | ixgbe_ethtool.c | 3228 ch->combined_count = adapter->ring_feature[RING_F_RSS].indices; in ixgbe_get_channels() 3231 if (ch->combined_count == 1) in ixgbe_get_channels() 3247 ch->combined_count = adapter->ring_feature[RING_F_FDIR].indices; in ixgbe_get_channels() 3254 unsigned int count = ch->combined_count; in ixgbe_set_channels()
|
/linux/drivers/net/ethernet/intel/iavf/ |
A D | iavf_ethtool.c | 1808 ch->combined_count = adapter->num_active_queues; in iavf_get_channels() 1824 u32 num_req = ch->combined_count; in iavf_set_channels()
|
/linux/drivers/net/ethernet/intel/igc/ |
A D | igc_ethtool.c | 1475 ch->combined_count = adapter->rss_queues; in igc_ethtool_get_channels() 1482 unsigned int count = ch->combined_count; in igc_ethtool_set_channels()
|