diff options
author | YueHaibing <yuehaibing@huawei.com> | 2023-06-15 14:48:10 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-06-17 09:17:42 +0200 |
commit | e16ad981e2a1e4a9afd1ce0d7a47cd9d8f09feda (patch) | |
tree | 57c83164486543163b3086a37c71dfe5010d46ac /include/net/sch_generic.h | |
parent | kcm: Fix unnecessary psock unreservation. (diff) | |
download | linux-e16ad981e2a1e4a9afd1ce0d7a47cd9d8f09feda.tar.xz linux-e16ad981e2a1e4a9afd1ce0d7a47cd9d8f09feda.zip |
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>
Diffstat (limited to 'include/net/sch_generic.h')
-rw-r--r-- | include/net/sch_generic.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index 12eadecf8cd0..e92f73bb3198 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -1190,20 +1190,6 @@ static inline int qdisc_drop_all(struct sk_buff *skb, struct Qdisc *sch, return NET_XMIT_DROP; } -/* Length to Time (L2T) lookup in a qdisc_rate_table, to determine how - long it will take to send a packet given its size. - */ -static inline u32 qdisc_l2t(struct qdisc_rate_table* rtab, unsigned int pktlen) -{ - int slot = pktlen + rtab->rate.cell_align + rtab->rate.overhead; - if (slot < 0) - slot = 0; - slot >>= rtab->rate.cell_log; - if (slot > 255) - return rtab->data[255]*(slot >> 8) + rtab->data[slot & 0xFF]; - return rtab->data[slot]; -} - struct psched_ratecfg { u64 rate_bytes_ps; /* bytes per second */ u32 mult; |