Home
last modified time | relevance | path

Searched refs:combined_count (Results 1 – 25 of 42) sorted by relevance

12

/linux-6.6.21/net/ethtool/
Dchannels.c83 channels->combined_count)))) in channels_fill_reply()
122 old_total = channels.combined_count + in ethnl_set_channels()
131 ethnl_update_u32(&channels.combined_count, in ethnl_set_channels()
144 else if (channels.combined_count > channels.max_combined) in ethnl_set_channels()
155 if (!channels.combined_count && !channels.rx_count) in ethnl_set_channels()
157 else if (!channels.combined_count && !channels.tx_count) in ethnl_set_channels()
177 if (channels.combined_count + channels.rx_count <= max_rxfh_in_use) { in ethnl_set_channels()
181 if (channels.combined_count + channels.rx_count <= max_rxnfc_in_use) { in ethnl_set_channels()
187 from_channel = channels.combined_count + in ethnl_set_channels()
Dioctl.c1827 channels.combined_count == curr.combined_count && in ethtool_set_channels()
1834 channels.combined_count > curr.max_combined || in ethtool_set_channels()
1839 if (!channels.combined_count && in ethtool_set_channels()
1850 if (channels.combined_count + channels.rx_count <= in ethtool_set_channels()
1855 from_channel = channels.combined_count + in ethtool_set_channels()
1857 to_channel = curr.combined_count + max(curr.rx_count, curr.tx_count); in ethtool_set_channels()
/linux-6.6.21/drivers/net/ethernet/amd/xgbe/
Dxgbe-ethtool.c727 channels->combined_count = combined; in xgbe_get_channels()
736 channels->combined_count, channels->rx_count, in xgbe_print_set_channels_input()
768 if (!channels->combined_count) { in xgbe_set_channels()
776 if (channels->combined_count > combined) { in xgbe_set_channels()
793 if ((channels->combined_count + channels->rx_count) > rx) { in xgbe_set_channels()
796 channels->combined_count + channels->rx_count, rx); in xgbe_set_channels()
801 if ((channels->combined_count + channels->tx_count) > tx) { in xgbe_set_channels()
804 channels->combined_count + channels->tx_count, tx); in xgbe_set_channels()
809 rx = channels->combined_count + channels->rx_count; in xgbe_set_channels()
810 tx = channels->combined_count + channels->tx_count; in xgbe_set_channels()
/linux-6.6.21/drivers/net/netdevsim/
Dethtool.c97 ch->combined_count = ns->ethtool.channels; in nsim_get_channels()
106 err = netif_set_real_num_queues(dev, ch->combined_count, in nsim_set_channels()
107 ch->combined_count); in nsim_set_channels()
111 ns->ethtool.channels = ch->combined_count; in nsim_set_channels()
/linux-6.6.21/tools/net/ynl/samples/
Dethtool.c35 if (dev->_present.combined_count) in main()
36 printf("combined %d ", dev->combined_count); in main()
/linux-6.6.21/drivers/net/ethernet/pensando/ionic/
Dionic_ethtool.c707 ch->combined_count = lif->nxqs; in ionic_get_channels()
729 if (ch->combined_count && ch->rx_count) { in ionic_set_channels()
735 if (ch->combined_count) { in ionic_set_channels()
736 if (ch->combined_count > max_cnt) in ionic_set_channels()
741 else if (ch->combined_count == lif->nxqs) in ionic_set_channels()
744 if (lif->nxqs != ch->combined_count) in ionic_set_channels()
746 lif->nxqs, ch->combined_count); in ionic_set_channels()
748 qparam.nxqs = ch->combined_count; in ionic_set_channels()
/linux-6.6.21/tools/include/uapi/linux/
Dethtool.h48 __u32 combined_count; member
/linux-6.6.21/drivers/net/ethernet/emulex/benet/
Dbe_ethtool.c1227 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.6.21/drivers/net/ethernet/microsoft/mana/
Dmana_ethtool.c287 channel->combined_count = apc->num_queues; in mana_get_channels()
294 unsigned int new_count = channels->combined_count; in mana_set_channels()
/linux-6.6.21/drivers/net/ethernet/cavium/liquidio/
Dlio_ethtool.c502 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-6.6.21/drivers/net/ethernet/google/gve/
Dgve_ethtool.c432 cmd->combined_count = 0; in gve_get_channels()
448 if (cmd->combined_count != old_settings.combined_count) in gve_set_channels()
/linux-6.6.21/tools/testing/selftests/bpf/
Dxdp_hw_metadata.c300 __u32 combined_count; member
327 return ch.rx_count + ch.combined_count; in rxq_num()
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/
Dnfp_net_ethtool.c1824 channel->combined_count = min(nn->dp.num_rx_rings, num_tx_rings); in nfp_net_get_channels()
1825 channel->rx_count = nn->dp.num_rx_rings - channel->combined_count; in nfp_net_get_channels()
1826 channel->tx_count = num_tx_rings - channel->combined_count; in nfp_net_get_channels()
1859 total_rx = channel->combined_count + channel->rx_count; in nfp_net_set_channels()
1860 total_tx = channel->combined_count + channel->tx_count; in nfp_net_set_channels()
/linux-6.6.21/drivers/net/ethernet/ti/
Dcpsw_ethtool.c395 ch->combined_count = 0; in cpsw_get_channels()
520 if (ch->combined_count) in cpsw_check_ch_settings()
/linux-6.6.21/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c3566 channels->combined_count = BNX2X_NUM_ETH_QUEUES(bp); in bnx2x_get_channels()
3601 channels->combined_count); in bnx2x_set_channels()
3612 || (channels->combined_count == 0) || in bnx2x_set_channels()
3613 (channels->combined_count > BNX2X_MAX_RSS_COUNT(bp))) { in bnx2x_set_channels()
3619 if (channels->combined_count == BNX2X_NUM_ETH_QUEUES(bp)) { in bnx2x_set_channels()
3629 bnx2x_change_num_queues(bp, channels->combined_count); in bnx2x_set_channels()
3633 bnx2x_change_num_queues(bp, channels->combined_count); in bnx2x_set_channels()
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_ethtool.c3357 ch->combined_count = ice_get_combined_cnt(vsi); in ice_get_channels()
3358 ch->rx_count = vsi->num_rxq - ch->combined_count; in ice_get_channels()
3359 ch->tx_count = vsi->num_txq - ch->combined_count; in ice_get_channels()
3465 if (ch->combined_count == curr_combined) in ice_set_channels()
3466 ch->combined_count = 0; in ice_set_channels()
3468 if (!(ch->combined_count || (ch->rx_count && ch->tx_count))) { in ice_set_channels()
3473 new_rx = ch->combined_count + ch->rx_count; in ice_set_channels()
3474 new_tx = ch->combined_count + ch->tx_count; in ice_set_channels()
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c889 channel->combined_count = bp->rx_nr_rings; in bnxt_get_channels()
891 channel->combined_count--; in bnxt_get_channels()
912 if (!channel->combined_count && in bnxt_set_channels()
916 if (channel->combined_count && in bnxt_set_channels()
924 if (channel->combined_count) in bnxt_set_channels()
929 req_tx_rings = sh ? channel->combined_count : channel->tx_count; in bnxt_set_channels()
930 req_rx_rings = sh ? channel->combined_count : channel->rx_count; in bnxt_set_channels()
962 bp->rx_nr_rings = channel->combined_count; in bnxt_set_channels()
963 bp->tx_nr_rings_per_tc = channel->combined_count; in bnxt_set_channels()
/linux-6.6.21/drivers/net/vmxnet3/
Dvmxnet3_ethtool.c1325 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.6.21/drivers/net/ethernet/amazon/ena/
Dena_ethtool.c900 channels->combined_count = adapter->num_io_queues; in ena_get_channels()
907 u32 count = channels->combined_count; in ena_set_channels()
/linux-6.6.21/drivers/s390/net/
Dqeth_ethtool.c211 channels->combined_count = 0; in qeth_get_channels()
/linux-6.6.21/drivers/net/ethernet/engleder/
Dtsnep_ethtool.c304 ch->combined_count = adapter->num_queues; in tsnep_ethtool_get_channels()
/linux-6.6.21/drivers/net/ethernet/intel/fm10k/
Dfm10k_ethtool.c1133 ch->combined_count = interface->ring_feature[RING_F_RSS].indices; in fm10k_get_channels()
1140 unsigned int count = ch->combined_count; in fm10k_set_channels()
/linux-6.6.21/drivers/net/ethernet/qlogic/qede/
Dqede_ethtool.c1086 channels->combined_count = QEDE_QUEUE_CNT(edev) - edev->fp_num_tx - in qede_get_channels()
1101 channels->other_count, channels->combined_count); in qede_set_channels()
1104 channels->combined_count; in qede_set_channels()
1113 if (!(channels->combined_count || (channels->rx_count && in qede_set_channels()
/linux-6.6.21/tools/net/ynl/generated/
Dethtool-user.h2330 __u32 combined_count:1; member
2341 __u32 combined_count; member
2430 __u32 combined_count:1; member
2441 __u32 combined_count; member
2528 __u32 combined_count) in ethtool_channels_set_req_set_combined_count() argument
2530 req->_present.combined_count = 1; in ethtool_channels_set_req_set_combined_count()
2531 req->combined_count = combined_count; in ethtool_channels_set_req_set_combined_count()
/linux-6.6.21/include/uapi/linux/
Dethtool.h561 __u32 combined_count; member

12