netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net: sched: Remove unused qdisc_l2t()
@ 2023-06-15 12:48 YueHaibing
  2023-06-15 14:37 ` Simon Horman
  2023-06-17  7:30 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: YueHaibing @ 2023-06-15 12:48 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni; +Cc: netdev, linux-kernel, YueHaibing

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(-)

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;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] net: sched: Remove unused qdisc_l2t()
  2023-06-15 12:48 [PATCH net-next] net: sched: Remove unused qdisc_l2t() YueHaibing
@ 2023-06-15 14:37 ` Simon Horman
  2023-06-17  7:30 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2023-06-15 14:37 UTC (permalink / raw)
  To: YueHaibing; +Cc: davem, edumazet, kuba, pabeni, netdev, linux-kernel

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>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] net: sched: Remove unused qdisc_l2t()
  2023-06-15 12:48 [PATCH net-next] net: sched: Remove unused qdisc_l2t() YueHaibing
  2023-06-15 14:37 ` Simon Horman
@ 2023-06-17  7:30 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-06-17  7:30 UTC (permalink / raw)
  To: YueHaibing; +Cc: davem, edumazet, kuba, pabeni, netdev, linux-kernel

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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-06-17  7:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-15 12:48 [PATCH net-next] net: sched: Remove unused qdisc_l2t() YueHaibing
2023-06-15 14:37 ` Simon Horman
2023-06-17  7:30 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).