diff mbox series

[net-next] net: sched: Remove unused qdisc_l2t()

Message ID 20230615124810.34020-1-yuehaibing@huawei.com (mailing list archive)
State Accepted
Commit e16ad981e2a1e4a9afd1ce0d7a47cd9d8f09feda
Delegated to: Netdev Maintainers
Headers show
Series [net-next] net: sched: Remove unused qdisc_l2t() | expand

Checks

Context Check Description
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Clearly marked for net-next
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 1367 this patch: 1367
netdev/cc_maintainers success CCed 5 of 5 maintainers
netdev/build_clang success Errors and warnings before: 151 this patch: 151
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 1387 this patch: 1387
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 20 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Yue Haibing June 15, 2023, 12:48 p.m. UTC
This is unused since switch to psched_l2t_ns().

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 include/net/sch_generic.h | 14 --------------
 1 file changed, 14 deletions(-)

Comments

Simon Horman June 15, 2023, 2:37 p.m. UTC | #1
On Thu, Jun 15, 2023 at 08:48:10PM +0800, YueHaibing wrote:
> This is unused since switch to psched_l2t_ns().
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>

Reviewed-by: Simon Horman <simon.horman@corigine.com>
patchwork-bot+netdevbpf@kernel.org June 17, 2023, 7:30 a.m. UTC | #2
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu, 15 Jun 2023 20:48:10 +0800 you wrote:
> This is unused since switch to psched_l2t_ns().
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
>  include/net/sch_generic.h | 14 --------------
>  1 file changed, 14 deletions(-)

Here is the summary with links:
  - [net-next] net: sched: Remove unused qdisc_l2t()
    https://git.kernel.org/netdev/net-next/c/e16ad981e2a1

You are awesome, thank you!
diff mbox series

Patch

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;