Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: sched: Remove unused qdisc_l2t()

This is unused since switch to psched_l2t_ns().

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230615124810.34020-1-yuehaibing@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

YueHaibing and committed by
Jakub Kicinski
e16ad981 9f8d0dc0

-14
-14
include/net/sch_generic.h
··· 1190 1190 return NET_XMIT_DROP; 1191 1191 } 1192 1192 1193 - /* Length to Time (L2T) lookup in a qdisc_rate_table, to determine how 1194 - long it will take to send a packet given its size. 1195 - */ 1196 - static inline u32 qdisc_l2t(struct qdisc_rate_table* rtab, unsigned int pktlen) 1197 - { 1198 - int slot = pktlen + rtab->rate.cell_align + rtab->rate.overhead; 1199 - if (slot < 0) 1200 - slot = 0; 1201 - slot >>= rtab->rate.cell_log; 1202 - if (slot > 255) 1203 - return rtab->data[255]*(slot >> 8) + rtab->data[slot & 0xFF]; 1204 - return rtab->data[slot]; 1205 - } 1206 - 1207 1193 struct psched_ratecfg { 1208 1194 u64 rate_bytes_ps; /* bytes per second */ 1209 1195 u32 mult;