Re: [PATCH iproute2] Re: HTB accuracy for high speed

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jarek Poplawski
Date: Thursday, June 4, 2009 - 12:50 am

On Wed, Jun 03, 2009 at 09:53:14PM -0700, David Miller wrote:

I'm not sure it could be so simple: I guess Patrick is concerned with
a new tc talking to an old kernel (otherwise a kernel should recognize
an old format). Then it would need something reasonable in 32bits.

But, I'm not even sure we need 64bit rate tables. We could
alternatively use (after checking a kernel can handle this)
simply a log to shift these values in kernel to u64:

- static inline u32 qdisc_l2t(struct qdisc_rate_table* rtab, unsigned int pktlen)
+ static inline u64 qdisc_l2t(struct qdisc_rate_table* rtab, unsigned int pktlen)
  {
	...
-        return rtab->data[slot];
+        return rtab->data[slot] << rtab->rate.rate_log;
  }

Since these overflows are for low rates, this rounding of lower bits
shouldn't matter here. So, IMHO, it's more about adding this overhead
of u64 to the kernel now.

Jarek P.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
HTB accuracy for high speed, Antonio Almeida, (Fri May 15, 7:49 am)
Re: HTB accuracy for high speed, Stephen Hemminger, (Fri May 15, 11:12 am)
Re: HTB accuracy for high speed, Jarek Poplawski, (Sat May 16, 1:31 am)
Re: HTB accuracy for high speed, Jarek Poplawski, (Sat May 16, 7:14 am)
Re: HTB accuracy for high speed, Jarek Poplawski, (Sun May 17, 1:15 pm)
Re: HTB accuracy for high speed, Vladimir Ivashchenko, (Sun May 17, 1:29 pm)
[PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Sun May 17, 11:56 pm)
[PATCH iproute2 v2] Re: HTB accuracy for high speed, Jarek Poplawski, (Mon May 18, 12:01 am)
Re: HTB accuracy for high speed, Antonio Almeida, (Mon May 18, 3:01 am)
Re: HTB accuracy for high speed, Antonio Almeida, (Mon May 18, 3:39 am)
Re: HTB accuracy for high speed, Jarek Poplawski, (Mon May 18, 3:45 am)
Re: HTB accuracy for high speed, Jarek Poplawski, (Mon May 18, 4:14 am)
Re: HTB accuracy for high speed, Antonio Almeida, (Mon May 18, 5:05 am)
Re: HTB accuracy for high speed, Antonio Almeida, (Mon May 18, 5:27 am)
Re: HTB accuracy for high speed, Jarek Poplawski, (Mon May 18, 5:32 am)
Re: HTB accuracy for high speed, Antonio Almeida, (Mon May 18, 7:36 am)
Re: HTB accuracy for high speed, Stephen Hemminger, (Mon May 18, 9:13 am)
Re: HTB accuracy for high speed, Eric Dumazet, (Mon May 18, 9:40 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Antonio Almeida, (Mon May 18, 9:54 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Antonio Almeida, (Mon May 18, 10:16 am)
Re: HTB accuracy for high speed, Jarek Poplawski, (Mon May 18, 10:23 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Mon May 18, 10:53 am)
Re: HTB accuracy for high speed, Antonio Almeida, (Mon May 18, 11:03 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Antonio Almeida, (Mon May 18, 11:23 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Mon May 18, 11:32 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Antonio Almeida, (Mon May 18, 11:56 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Mon May 18, 12:05 pm)
Re: HTB accuracy for high speed, David Miller, (Mon May 18, 2:52 pm)
Re: HTB accuracy for high speed, Stephen Hemminger, (Mon May 18, 3:02 pm)
Re: HTB accuracy for high speed, Vladimir Ivashchenko, (Mon May 18, 4:14 pm)
Re: HTB accuracy for high speed, Vladimir Ivashchenko, (Mon May 18, 4:27 pm)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Antonio Almeida, (Tue May 19, 3:55 am)
Re: HTB accuracy for high speed, Jarek Poplawski, (Tue May 19, 4:03 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Denys Fedoryschenko, (Tue May 19, 4:04 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Tue May 19, 4:09 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Tue May 19, 4:18 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Denys Fedoryschenko, (Tue May 19, 4:21 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Tue May 19, 4:28 am)
Re: HTB accuracy for high speed, Antonio Almeida, (Tue May 19, 4:48 am)
Re: HTB accuracy for high speed, Antonio Almeida, (Tue May 19, 6:08 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jesper Dangaard Brouer, (Tue May 19, 6:18 am)
Re: HTB accuracy for high speed, Vladimir Ivashchenko, (Tue May 19, 7:04 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Antonio Almeida, (Tue May 19, 7:31 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Tue May 19, 12:35 pm)
Re: HTB accuracy for high speed, Jarek Poplawski, (Tue May 19, 1:10 pm)
Re: HTB accuracy for high speed, Vladimir Ivashchenko, (Wed May 20, 3:07 pm)
Re: HTB accuracy for high speed, Eric Dumazet, (Wed May 20, 3:46 pm)
Re: HTB accuracy for high speed, Jarek Poplawski, (Thu May 21, 12:20 am)
Re: HTB accuracy for high speed, Vladimir Ivashchenko, (Thu May 21, 12:44 am)
Re: HTB accuracy for high speed, Jarek Poplawski, (Thu May 21, 1:28 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Thu May 21, 1:51 am)
Re: HTB accuracy for high speed, Eric Dumazet, (Thu May 21, 2:07 am)
Re: HTB accuracy for high speed, Jarek Poplawski, (Thu May 21, 2:22 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Antonio Almeida, (Fri May 22, 10:42 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Sat May 23, 12:32 am)
Re: HTB accuracy for high speed (and bonding), Vladimir Ivashchenko, (Sat May 23, 3:37 am)
Re: HTB accuracy for high speed (and bonding), Jarek Poplawski, (Sat May 23, 7:34 am)
Re: HTB accuracy for high speed (and bonding), Vladimir Ivashchenko, (Sat May 23, 8:06 am)
Re: HTB accuracy for high speed (and bonding), Jarek Poplawski, (Sat May 23, 8:35 am)
Re: HTB accuracy for high speed (and bonding), Vladimir Ivashchenko, (Sat May 23, 8:53 am)
Re: HTB accuracy for high speed (and bonding), Jarek Poplawski, (Sat May 23, 9:02 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Antonio Almeida, (Thu May 28, 11:13 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Thu May 28, 2:12 pm)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Antonio Almeida, (Fri May 29, 10:02 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Stephen Hemminger, (Fri May 29, 10:28 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Fri May 29, 12:46 pm)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Fri May 29, 12:58 pm)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Stephen Hemminger, (Fri May 29, 1:49 pm)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Fri May 29, 1:59 pm)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Sat May 30, 1:07 pm)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Antonio Almeida, (Tue Jun 2, 3:12 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Antonio Almeida, (Tue Jun 2, 4:45 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Tue Jun 2, 5:36 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Patrick McHardy, (Tue Jun 2, 5:45 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Tue Jun 2, 6:08 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Patrick McHardy, (Tue Jun 2, 6:20 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Tue Jun 2, 2:37 pm)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Tue Jun 2, 2:50 pm)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Patrick McHardy, (Wed Jun 3, 12:06 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Wed Jun 3, 12:40 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Patrick McHardy, (Wed Jun 3, 12:53 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Wed Jun 3, 1:01 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Patrick McHardy, (Wed Jun 3, 1:29 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Wed Jun 3, 1:45 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Wed Jun 3, 2:54 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Patrick McHardy, (Wed Jun 3, 3:01 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Patrick McHardy, (Wed Jun 3, 3:05 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Patrick McHardy, (Wed Jun 3, 3:06 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Wed Jun 3, 3:27 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, David Miller, (Wed Jun 3, 9:53 pm)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Thu Jun 4, 12:50 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Antonio Almeida, (Thu Jun 4, 6:50 am)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Thu Jun 4, 12:30 pm)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Patrick McHardy, (Thu Jun 4, 12:35 pm)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Thu Jun 4, 12:42 pm)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Badalian Vyacheslav, (Mon Jun 8, 10:25 pm)
Re: [PATCH iproute2] Re: HTB accuracy for high speed, Jarek Poplawski, (Mon Jun 8, 10:49 pm)