Home
last modified time | relevance | path

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

/linux-6.12.1/lib/
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-6.12.1/include/linux/
Ddynamic_queue_limits.h45 #define DQL_HIST_ENT(dql, idx) ((dql)->history[(idx) % DQL_HIST_LEN]) argument
47 struct dql { struct
88 static inline void dql_queue_stall(struct dql *dql) in dql_queue_stall() argument
99 if (unlikely(now_hi != dql->history_head)) { in dql_queue_stall()
104 (dql->history_head + i) * BITS_PER_LONG) in dql_queue_stall()
106 DQL_HIST_ENT(dql, dql->history_head + i + 1) = 0; in dql_queue_stall()
110 WRITE_ONCE(dql->history_head, now_hi); in dql_queue_stall()
114 map = DQL_HIST_ENT(dql, now_hi); in dql_queue_stall()
118 WRITE_ONCE(DQL_HIST_ENT(dql, now_hi), map | BIT_MASK(now)); in dql_queue_stall()
125 static inline void dql_queued(struct dql *dql, unsigned int count) in dql_queued() argument
[all …]
Dnetdevice.h665 struct dql dql; member
3399 dev_queue->dql.min_limit = min_limit; in netdev_queue_set_dql_min_limit()
3407 return dql_avail(&txq->dql); in netdev_queue_dql_avail()
3423 prefetchw(&dev_queue->dql.num_queued); in netdev_txq_bql_enqueue_prefetchw()
3437 prefetchw(&dev_queue->dql.limit); in netdev_txq_bql_complete_prefetchw()
3455 dql_queued(&dev_queue->dql, bytes); in netdev_tx_sent_queue()
3457 if (likely(dql_avail(&dev_queue->dql) >= 0)) in netdev_tx_sent_queue()
3476 if (unlikely(dql_avail(&dev_queue->dql) >= 0)) in netdev_tx_sent_queue()
3493 dql_queued(&dev_queue->dql, bytes); in __netdev_tx_sent_queue()
3540 dql_completed(&dev_queue->dql, bytes); in netdev_tx_completed_queue()
[all …]
/linux-6.12.1/net/core/
Dnet-sysfs.c1397 struct dql *dql = &queue->dql; in bql_show_hold_time() local
1399 return sysfs_emit(buf, "%u\n", jiffies_to_msecs(dql->slack_hold_time)); in bql_show_hold_time()
1405 struct dql *dql = &queue->dql; in bql_set_hold_time() local
1413 dql->slack_hold_time = msecs_to_jiffies(value); in bql_set_hold_time()
1424 struct dql *dql = &queue->dql; in bql_show_stall_thrs() local
1426 return sysfs_emit(buf, "%u\n", jiffies_to_msecs(dql->stall_thrs)); in bql_show_stall_thrs()
1432 struct dql *dql = &queue->dql; in bql_set_stall_thrs() local
1444 if (!dql->stall_thrs && value) in bql_set_stall_thrs()
1445 dql->last_reap = jiffies; in bql_set_stall_thrs()
1448 dql->stall_thrs = value; in bql_set_stall_thrs()
[all …]
Ddev.c10274 dql_init(&queue->dql, HZ); in netdev_init_one_queue()
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c2780 struct dql *dql = &q->dql; in hns3_get_timeout_queue() local
2783 dql->last_obj_cnt, dql->num_queued, in hns3_get_timeout_queue()
2784 dql->adj_limit, dql->num_completed); in hns3_get_timeout_queue()