Home
last modified time | relevance | path

Searched refs:dql (Results 1 – 5 of 5) sorted by relevance

/linux/lib/
H A Ddynamic_queue_limits.c18 static void dql_check_stall(struct dql *dql, unsigned short stall_thrs) in dql_check_stall() argument
27 if (time_after_eq(now, dql->last_reap + stall_thrs)) { in dql_check_stall()
35 hist_head = READ_ONCE(dql->history_head); in dql_check_stall()
45 if (time_before(start, dql->last_reap + 1)) in dql_check_stall()
46 start = dql->last_reap + 1; in dql_check_stall()
60 dql->history)) in dql_check_stall()
68 if (hist_head != READ_ONCE(dql->history_head)) in dql_check_stall()
71 dql->stall_cnt++; in dql_check_stall()
72 dql->stall_max = max_t(unsigned short, dql->stall_max, now - t); in dql_check_stall()
74 trace_dql_stall_detected(dql->stall_thrs, now - t, in dql_check_stall()
[all …]
/linux/net/core/
H A Dnet-sysfs.c1551 struct dql *dql = &queue->dql; in bql_show_hold_time() local
1553 return sysfs_emit(buf, "%u\n", jiffies_to_msecs(dql->slack_hold_time)); in bql_show_hold_time()
1560 struct dql *dql = &queue->dql; in bql_set_hold_time() local
1568 dql->slack_hold_time = msecs_to_jiffies(value); in bql_set_hold_time()
1580 struct dql *dql = &queue->dql; in bql_show_stall_thrs() local
1582 return sysfs_emit(buf, "%u\n", jiffies_to_msecs(dql->stall_thrs)); in bql_show_stall_thrs()
1589 struct dql *dql = &queue->dql; in bql_set_stall_thrs() local
1601 if (!dql->stall_thrs && value) in bql_set_stall_thrs()
1602 dql->last_reap = jiffies; in bql_set_stall_thrs()
1605 dql->stall_thrs = value; in bql_set_stall_thrs()
[all …]
H A Ddev.c11194 dql_init(&queue->dql, HZ); in netdev_init_one_queue()
/linux/include/linux/
H A Dnetdevice.h707 struct dql dql; member
3794 dev_queue->dql.min_limit = min_limit; in netdev_queue_set_dql_min_limit()
3802 return dql_avail(&txq->dql); in netdev_queue_dql_avail()
3818 prefetchw(&dev_queue->dql.num_queued); in netdev_txq_bql_enqueue_prefetchw()
3832 prefetchw(&dev_queue->dql.limit); in netdev_txq_bql_complete_prefetchw()
3850 dql_queued(&dev_queue->dql, bytes); in netdev_tx_sent_queue()
3852 if (likely(dql_avail(&dev_queue->dql) >= 0)) in netdev_tx_sent_queue()
3871 if (unlikely(dql_avail(&dev_queue->dql) >= 0)) in netdev_tx_sent_queue()
3888 dql_queued(&dev_queue->dql, bytes); in __netdev_tx_sent_queue()
3935 dql_completed(&dev_queue->dql, bytes); in netdev_tx_completed_queue()
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.c2828 struct dql *dql = &q->dql; in hns3_get_timeout_queue() local
2831 dql->last_obj_cnt, dql->num_queued, in hns3_get_timeout_queue()
2832 dql->adj_limit, dql->num_completed); in hns3_get_timeout_queue()