Home
last modified time | relevance | path

Searched refs:qcount (Results 1 – 17 of 17) sorted by relevance

/linux/include/net/
H A Dred.h146 int qcount; /* Number of packets since last random member
167 v->qcount = -1; in red_set_vars()
286 v->qcount = -1; in red_restart()
389 return !(((qavg - p->qth_min) >> p->Wlog) * v->qcount < v->qR); in red_mark_probability()
420 v->qcount = -1; in red_action()
424 if (++v->qcount) { in red_action()
426 v->qcount = 0; in red_action()
436 v->qcount = -1; in red_action()
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_mqprio.c14 u32 speed, qcount = 0, qoffset = 0; in cxgb4_mqprio_validate() local
49 qcount += mqprio->qopt.count[i]; in cxgb4_mqprio_validate()
81 if (qoffset >= adap->tids.neotids || qcount > adap->tids.neotids) in cxgb4_mqprio_validate()
428 u32 qoffset, qcount, tot_qcount, qid, hwqid; in cxgb4_mqprio_enable_offload() local
443 qcount = mqprio->qopt.count[i]; in cxgb4_mqprio_enable_offload()
444 for (j = 0; j < qcount; j++) { in cxgb4_mqprio_enable_offload()
483 qcount = mqprio->qopt.count[i]; in cxgb4_mqprio_enable_offload()
484 if (qcount) { in cxgb4_mqprio_enable_offload()
487 qcount = pi->nqsets; in cxgb4_mqprio_enable_offload()
491 ret = netdev_set_tc_queue(dev, i, qcount, qoffset); in cxgb4_mqprio_enable_offload()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_dcb_lib.c220 u16 qoffset, qcount; in ice_vsi_cfg_dcb_rings() local
241 qcount = vsi->tc_cfg.tc_info[n].qcount_tx; in ice_vsi_cfg_dcb_rings()
242 for (i = qoffset; i < (qoffset + qcount); i++) in ice_vsi_cfg_dcb_rings()
245 qcount = vsi->tc_cfg.tc_info[n].qcount_rx; in ice_vsi_cfg_dcb_rings()
246 for (i = qoffset; i < (qoffset + qcount); i++) in ice_vsi_cfg_dcb_rings()
263 qcount = vsi->mqprio_qopt.qopt.count[n]; in ice_vsi_cfg_dcb_rings()
264 for (i = qoffset; i < (qoffset + qcount); i++) { in ice_vsi_cfg_dcb_rings()
H A Dice_main.c8413 int qcount = mqprio_qopt->qopt.count[i]; in ice_validate_mqprio_qopt() local
8416 if (!qcount) in ice_validate_mqprio_qopt()
8419 if (is_power_of_2(qcount)) { in ice_validate_mqprio_qopt()
8421 qcount > non_power_of_2_qcount) { in ice_validate_mqprio_qopt()
8423 qcount, non_power_of_2_qcount); in ice_validate_mqprio_qopt()
8426 if (qcount > max_rss_q_cnt) in ice_validate_mqprio_qopt()
8427 max_rss_q_cnt = qcount; in ice_validate_mqprio_qopt()
8430 qcount != non_power_of_2_qcount) { in ice_validate_mqprio_qopt()
8432 qcount, non_power_of_2_qcount); in ice_validate_mqprio_qopt()
8435 if (qcount < max_rss_q_cnt) { in ice_validate_mqprio_qopt()
[all …]
H A Dice_lib.c1191 u16 qcount, qmap; in ice_chnl_vsi_setup_q_map() local
1195 qcount = vsi->num_rxq; in ice_chnl_vsi_setup_q_map()
1197 pow = order_base_2(qcount); in ice_chnl_vsi_setup_q_map()
1204 ctxt->info.q_mapping[1] = cpu_to_le16(qcount); in ice_chnl_vsi_setup_q_map()
H A Dice_tc_lib.c1046 int qcount = vsi->mqprio_qopt.qopt.count[tc]; in ice_locate_vsi_using_queue() local
1049 if (queue >= offset && queue < offset + qcount) { in ice_locate_vsi_using_queue()
H A Dice_ethtool.c3632 u16 qcount, offset; in ice_get_rxfh() local
3641 qcount = vsi->mqprio_qopt.qopt.count[0]; in ice_get_rxfh()
3661 rxfh->indir[i] = offset + lut[i] % qcount; in ice_get_rxfh()
/linux/net/sched/
H A Dsch_choke.c226 q->vars.qcount = -1; in choke_enqueue()
239 q->vars.qcount = -1; in choke_enqueue()
251 } else if (++q->vars.qcount) { in choke_enqueue()
253 q->vars.qcount = 0; in choke_enqueue()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_main.c1946 u16 qcount = 0, max_qcount, qmap, sections = 0; in i40e_vsi_setup_queue_map_mqprio() local
1971 qcount = vsi->mqprio_qopt.qopt.count[i]; in i40e_vsi_setup_queue_map_mqprio()
1972 if (qcount > max_qcount) in i40e_vsi_setup_queue_map_mqprio()
1973 max_qcount = qcount; in i40e_vsi_setup_queue_map_mqprio()
1975 vsi->tc_config.tc_info[i].qcount = qcount; in i40e_vsi_setup_queue_map_mqprio()
1983 vsi->tc_config.tc_info[i].qcount = 1; in i40e_vsi_setup_queue_map_mqprio()
1989 vsi->num_queue_pairs = offset + qcount; in i40e_vsi_setup_queue_map_mqprio()
2040 u16 qcount; in i40e_vsi_setup_queue_map() local
2111 qcount = min_t(int, pf->alloc_rss_size, in i40e_vsi_setup_queue_map()
2120 qcount = num_tc_qps; in i40e_vsi_setup_queue_map()
[all …]
H A Di40e_txrx.c3746 u16 qcount; in i40e_lan_select_queue() local
3764 qcount = vsi->tc_config.tc_info[tclass].qcount; in i40e_lan_select_queue()
3765 hash = i40e_swdcb_skb_tx_hash(netdev, skb, qcount); in i40e_lan_select_queue()
H A Di40e.h335 u16 qcount; /* Total Queues */ member
H A Di40e_debugfs.c416 vsi->tc_config.tc_info[i].qcount, in i40e_dbg_dump_vsi_seid()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_pf.c3157 int err, qcount, qos_txqs; in otx2_probe() local
3183 qcount = min_t(int, num_online_cpus(), OTX2_MAX_CQ_CNT); in otx2_probe()
3184 qos_txqs = min_t(int, qcount, OTX2_QOS_MAX_LEAF_NODES); in otx2_probe()
3186 netdev = alloc_etherdev_mqs(sizeof(*pf), qcount + qos_txqs, qcount); in otx2_probe()
3201 hw->rx_queues = qcount; in otx2_probe()
3202 hw->tx_queues = qcount; in otx2_probe()
3203 hw->non_qos_queues = qcount; in otx2_probe()
3204 hw->max_queues = qcount; in otx2_probe()
3320 pf->af_xdp_zc_qidx = bitmap_zalloc(qcount, GFP_KERNEL); in otx2_probe()
/linux/drivers/net/ethernet/cavium/thunder/
H A Dnicvf_queues.c383 int tail, qcount; in nicvf_refill_rbdr() local
400 qcount = nicvf_queue_reg_read(nic, NIC_QSET_RBDR_0_1_STATUS0, rbdr_idx); in nicvf_refill_rbdr()
401 qcount &= 0x7FFFF; in nicvf_refill_rbdr()
403 if (qcount >= (qs->rbdr_len - 1)) in nicvf_refill_rbdr()
406 refill_rb_cnt = qs->rbdr_len - qcount - 1; in nicvf_refill_rbdr()
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_sriov.c2445 int vf_idx, sb_idx, vfq_idx, qcount, first_vf; in bnx2x_enable_sriov() local
2489 qcount = 0; in bnx2x_enable_sriov()
2494 vf->vfqs = &bp->vfdb->vfqs[qcount]; in bnx2x_enable_sriov()
2495 qcount += vf_sb_count(vf); in bnx2x_enable_sriov()
/linux/net/core/
H A Ddev.c3562 u16 qcount = dev->real_num_tx_queues; in skb_tx_hash() local
3570 qcount = res.count; in skb_tx_hash()
3571 if (unlikely(!qcount)) { in skb_tx_hash()
3575 qcount = dev->real_num_tx_queues; in skb_tx_hash()
3580 DEBUG_NET_WARN_ON_ONCE(qcount == 0); in skb_tx_hash()
3584 while (unlikely(hash >= qcount)) in skb_tx_hash()
3585 hash -= qcount; in skb_tx_hash()
3589 return (u16) reciprocal_scale(skb_get_hash(skb), qcount) + qoffset; in skb_tx_hash()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dsdio.c536 static int qcount[NUMPRIO]; variable
2847 if (pktq_plen(&bus->txq, prec) > qcount[prec]) in brcmf_sdio_bus_txdata()
2848 qcount[prec] = pktq_plen(&bus->txq, prec); in brcmf_sdio_bus_txdata()