/openbmc/linux/include/net/ |
H A D | red.h | 146 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()
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_tc_mqprio.c | 14 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() 431 u32 qoffset, qcount, tot_qcount, qid, hwqid; in cxgb4_mqprio_enable_offload() local 446 qcount = mqprio->qopt.count[i]; in cxgb4_mqprio_enable_offload() 447 for (j = 0; j < qcount; j++) { in cxgb4_mqprio_enable_offload() 486 qcount = mqprio->qopt.count[i]; in cxgb4_mqprio_enable_offload() 487 if (qcount) { in cxgb4_mqprio_enable_offload() 490 qcount = pi->nqsets; in cxgb4_mqprio_enable_offload() 494 ret = netdev_set_tc_queue(dev, i, qcount, qoffset); in cxgb4_mqprio_enable_offload() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_vf.c | 538 int err, qcount, qos_txqs; in otx2vf_probe() local 563 qcount = num_online_cpus(); in otx2vf_probe() 564 qos_txqs = min_t(int, qcount, OTX2_QOS_MAX_LEAF_NODES); in otx2vf_probe() 565 netdev = alloc_etherdev_mqs(sizeof(*vf), qcount + qos_txqs, qcount); in otx2vf_probe() 582 hw->rx_queues = qcount; in otx2vf_probe() 583 hw->tx_queues = qcount; in otx2vf_probe() 584 hw->max_queues = qcount; in otx2vf_probe() 585 hw->non_qos_queues = qcount; in otx2vf_probe() 638 err = otx2_set_real_num_queues(netdev, qcount, qcount); in otx2vf_probe()
|
H A D | otx2_pf.c | 2874 int err, qcount, qos_txqs; in otx2_probe() local 2901 qcount = min_t(int, num_online_cpus(), OTX2_MAX_CQ_CNT); in otx2_probe() 2902 qos_txqs = min_t(int, qcount, OTX2_QOS_MAX_LEAF_NODES); in otx2_probe() 2904 netdev = alloc_etherdev_mqs(sizeof(*pf), qcount + qos_txqs, qcount); in otx2_probe() 2921 hw->rx_queues = qcount; in otx2_probe() 2922 hw->tx_queues = qcount; in otx2_probe() 2923 hw->non_qos_queues = qcount; in otx2_probe() 2924 hw->max_queues = qcount; in otx2_probe()
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_dcb_lib.c | 219 u16 qoffset, qcount; in ice_vsi_cfg_dcb_rings() local 240 qcount = vsi->tc_cfg.tc_info[n].qcount_tx; in ice_vsi_cfg_dcb_rings() 241 for (i = qoffset; i < (qoffset + qcount); i++) in ice_vsi_cfg_dcb_rings() 244 qcount = vsi->tc_cfg.tc_info[n].qcount_rx; in ice_vsi_cfg_dcb_rings() 245 for (i = qoffset; i < (qoffset + qcount); i++) in ice_vsi_cfg_dcb_rings() 262 qcount = vsi->mqprio_qopt.qopt.count[n]; in ice_vsi_cfg_dcb_rings() 263 for (i = qoffset; i < (qoffset + qcount); i++) { in ice_vsi_cfg_dcb_rings()
|
H A D | ice_main.c | 8006 * This function validates MQPRIO params, such as qcount (power of 2 wherever in ice_validate_mqprio_qopt() 8007 * needed), and make sure user doesn't specify qcount and BW rate limit in ice_validate_mqprio_qopt() 8036 int qcount = mqprio_qopt->qopt.count[i]; in ice_validate_mqprio_qopt() 8039 if (!qcount) in ice_validate_mqprio_qopt() 8042 if (is_power_of_2(qcount)) { in ice_validate_mqprio_qopt() 8044 qcount > non_power_of_2_qcount) { in ice_validate_mqprio_qopt() 8045 dev_err(dev, "qcount[%d] cannot be greater than non power of 2 qcount[%d]\n", in ice_validate_mqprio_qopt() 8046 qcount, non_power_of_2_qcount); in ice_validate_mqprio_qopt() 8049 if (qcount > max_rss_q_cn in ice_validate_mqprio_qopt() 8023 int qcount = mqprio_qopt->qopt.count[i]; ice_validate_mqprio_qopt() local [all...] |
H A D | ice_lib.c | 1034 /* find the (rounded up) power-of-2 of qcount */ in ice_vsi_setup_q_map() 1207 u16 qcount, qmap; in ice_chnl_vsi_setup_q_map() local 1211 qcount = min_t(int, vsi->num_rxq, pf->num_lan_msix); in ice_chnl_vsi_setup_q_map() 1213 pow = order_base_2(qcount); in ice_chnl_vsi_setup_q_map() 1222 ctxt->info.q_mapping[1] = cpu_to_le16(qcount); in ice_chnl_vsi_setup_q_map()
|
H A D | ice_tc_lib.c | 848 int qcount = vsi->mqprio_qopt.qopt.count[tc]; in ice_locate_vsi_using_queue() local 851 if (queue >= offset && queue < offset + qcount) { in ice_locate_vsi_using_queue()
|
H A D | ice_ethtool.c | 3122 u16 qcount, offset; in ice_get_rxfh_context() local 3136 qcount = vsi->mqprio_qopt.qopt.count[rss_context]; in ice_get_rxfh_context() 3170 indir[i] = offset + lut[i] % qcount; in ice_get_rxfh_context()
|
/openbmc/linux/net/sched/ |
H A D | sch_choke.c | 226 q->vars.qcount = -1; in choke_enqueue() 239 q->vars.qcount = -1; in choke_enqueue() 249 } else if (++q->vars.qcount) { in choke_enqueue() 251 q->vars.qcount = 0; in choke_enqueue()
|
/openbmc/linux/fs/gfs2/ |
H A D | trace_gfs2.h | 275 __field( u64, qcount ) 292 __entry->qcount = gl->gl_stats.stats[GFS2_LKS_QCOUNT]; 307 (long long)__entry->qcount)
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_main.c | 1951 u16 qcount = 0, max_qcount, qmap, sections = 0; in i40e_vsi_setup_queue_map_mqprio() local 1976 qcount = vsi->mqprio_qopt.qopt.count[i]; in i40e_vsi_setup_queue_map_mqprio() 1977 if (qcount > max_qcount) in i40e_vsi_setup_queue_map_mqprio() 1978 max_qcount = qcount; in i40e_vsi_setup_queue_map_mqprio() 1980 vsi->tc_config.tc_info[i].qcount = qcount; in i40e_vsi_setup_queue_map_mqprio() 1988 vsi->tc_config.tc_info[i].qcount = 1; in i40e_vsi_setup_queue_map_mqprio() 1994 vsi->num_queue_pairs = offset + qcount; in i40e_vsi_setup_queue_map_mqprio() 2045 u16 qcount; in i40e_vsi_setup_queue_map() local 2114 qcount = min_t(int, pf->alloc_rss_size, in i40e_vsi_setup_queue_map() 2123 qcount = num_tc_qps; in i40e_vsi_setup_queue_map() [all …]
|
H A D | i40e_txrx.c | 3802 u16 qcount; in i40e_lan_select_queue() local 3820 qcount = vsi->tc_config.tc_info[tclass].qcount; in i40e_lan_select_queue() 3821 hash = i40e_swdcb_skb_tx_hash(netdev, skb, qcount); in i40e_lan_select_queue()
|
H A D | i40e.h | 280 u16 qcount; /* Total Queues */ member
|
H A D | i40e_debugfs.c | 476 vsi->tc_config.tc_info[i].qcount, in i40e_dbg_dump_vsi_seid()
|
/openbmc/linux/drivers/net/ethernet/cavium/thunder/ |
H A D | nicvf_queues.c | 384 int tail, qcount; in nicvf_refill_rbdr() local 401 qcount = nicvf_queue_reg_read(nic, NIC_QSET_RBDR_0_1_STATUS0, rbdr_idx); in nicvf_refill_rbdr() 402 qcount &= 0x7FFFF; in nicvf_refill_rbdr() 404 if (qcount >= (qs->rbdr_len - 1)) in nicvf_refill_rbdr() 407 refill_rb_cnt = qs->rbdr_len - qcount - 1; in nicvf_refill_rbdr()
|
H A D | nicvf_main.c | 2099 int err, qcount; in nicvf_probe() local 2128 qcount = netif_get_num_default_rss_queues(); in nicvf_probe() 2133 qcount = min_t(int, num_online_cpus(), in nicvf_probe() 2137 netdev = alloc_etherdev_mqs(sizeof(struct nicvf), qcount, qcount); in nicvf_probe() 2151 nic->max_queues = qcount; in nicvf_probe()
|
/openbmc/linux/drivers/infiniband/hw/bnxt_re/ |
H A D | qplib_res.c | 398 if (!tqmctx->qcount[i]) in bnxt_qplib_alloc_tqm_rings() 400 hwq_attr.depth = ctx->qpc_count * tqmctx->qcount[i]; in bnxt_qplib_alloc_tqm_rings()
|
H A D | qplib_res.h | 266 u8 qcount[MAX_TQM_ALLOC_REQ]; member
|
H A D | main.c | 228 rdev->qplib_ctx.tqm_ctx.qcount[i] = in bnxt_re_limit_pf_res()
|
/openbmc/linux/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_sriov.c | 2449 int vf_idx, sb_idx, vfq_idx, qcount, first_vf; in bnx2x_enable_sriov() local 2493 qcount = 0; in bnx2x_enable_sriov() 2498 vf->vfqs = &bp->vfdb->vfqs[qcount]; in bnx2x_enable_sriov() 2499 qcount += vf_sb_count(vf); in bnx2x_enable_sriov()
|
/openbmc/linux/net/core/ |
H A D | dev.c | 3274 u16 qcount = dev->real_num_tx_queues; in skb_tx_hash() local 3280 qcount = sb_dev->tc_to_txq[tc].count; in skb_tx_hash() 3281 if (unlikely(!qcount)) { in skb_tx_hash() 3285 qcount = dev->real_num_tx_queues; in skb_tx_hash() 3290 DEBUG_NET_WARN_ON_ONCE(qcount == 0); in skb_tx_hash() 3294 while (unlikely(hash >= qcount)) in skb_tx_hash() 3295 hash -= qcount; in skb_tx_hash() 3299 return (u16) reciprocal_scale(skb_get_hash(skb), qcount) + qoffset; in skb_tx_hash()
|
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | sdio.c | 536 static int qcount[NUMPRIO]; variable 2844 if (pktq_plen(&bus->txq, prec) > qcount[prec]) in brcmf_sdio_bus_txdata() 2845 qcount[prec] = pktq_plen(&bus->txq, prec); in brcmf_sdio_bus_txdata()
|
/openbmc/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_main.c | 3721 u16 qcount = mqprio_qopt->qopt.count[i]; in __iavf_setup_tc() local 3725 netdev_set_tc_queue(netdev, netdev_tc++, qcount, in __iavf_setup_tc()
|