Go to file
Jesper Dangaard Brouer eeee367d91 Change the rate table calc of transmit cost to use upper bound value.
Patrick McHardy, Cite: 'its better to overestimate than underestimate
to stay in control of the queue'.

Illustrating the rate table array:
 Legend description
   rtab[x]   : Array index x of rtab[x]
   xmit_sz   : Transmit size contained in rtab[x] (normally transmit time)
   maps[a-b] : Packet sizes from a to b, will map into rtab[x]

Current/old rate table mapping (cell_log:3):
 rtab[0]:=xmit_sz:0  maps[0-7]
 rtab[1]:=xmit_sz:8  maps[8-15]
 rtab[2]:=xmit_sz:16 maps[16-23]
 rtab[3]:=xmit_sz:24 maps[24-31]
 rtab[4]:=xmit_sz:32 maps[32-39]
 rtab[5]:=xmit_sz:40 maps[40-47]
 rtab[6]:=xmit_sz:48 maps[48-55]

New rate table mapping, with kernel cell_align support.
 rtab[0]:=xmit_sz:8  maps[0-8]
 rtab[1]:=xmit_sz:16 maps[9-16]
 rtab[2]:=xmit_sz:24 maps[17-24]
 rtab[3]:=xmit_sz:32 maps[25-32]
 rtab[4]:=xmit_sz:40 maps[33-40]
 rtab[5]:=xmit_sz:48 maps[41-48]
 rtab[6]:=xmit_sz:56 maps[49-56]

New TC util on a kernel WITHOUT support for cell_align
 rtab[0]:=xmit_sz:8 maps[0-7]
 rtab[1]:=xmit_sz:16 maps[8-15]
 rtab[2]:=xmit_sz:24 maps[16-23]
 rtab[3]:=xmit_sz:32 maps[24-31]
 rtab[4]:=xmit_sz:40 maps[32-39]
 rtab[5]:=xmit_sz:48 maps[40-47]
 rtab[6]:=xmit_sz:56 maps[48-55]

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
2007-12-31 11:08:08 -08:00
doc Correct documentation regarding PROMISC and ALLMULTI. 2007-12-11 09:35:12 -08:00
etc/iproute2 Add more rtproto values 2006-03-10 23:44:04 +00:00
examples Grab some more CBQ examples from Fedora Core 2005-10-12 22:46:23 +00:00
genl show multicast groups 2007-08-22 10:03:28 -07:00
include Use netinet/tcp.h (with correction) rather than kernel headers 2007-12-31 10:41:18 -08:00
ip veth.h move to linux/ 2007-12-25 12:38:08 -08:00
lib add decode of match rules 2007-12-31 10:29:52 -08:00
man Manual page fixes 2007-12-31 10:15:03 -08:00
misc Use netinet/tcp.h (with correction) rather than kernel headers 2007-12-31 10:41:18 -08:00
netem Eliminate trailing whitespace 2006-12-13 17:05:50 -08:00
tc Change the rate table calc of transmit cost to use upper bound value. 2007-12-31 11:08:08 -08:00
testsuite Fix modes of test files 2007-09-05 12:00:01 +01:00
.gitignore add objects to .gitignore 2006-10-02 13:13:34 -07:00
ChangeLog Backout the 2.4 utsname hash patch. 2006-03-22 00:07:49 +00:00
configure Change mode of configure to executable. 2006-09-25 11:54:10 -07:00
COPYING (Logical change 1.71) 2004-08-23 20:21:21 +00:00
Makefile snapshot target 2007-12-21 09:53:45 -08:00
README Mention need for db dev package 2006-12-13 17:01:42 -08:00
README.decnet Decnet documentation update 2005-06-13 18:47:56 +00:00
README.distribution Rename: tc/README.distribution -> README.distribution 2004-08-23 20:21:21 +00:00
README.iproute2+tc (Logical change 1.3) 2004-04-15 20:56:59 +00:00
README.lnstat Rename: misc/README.lnstat -> README.lnstat 2004-10-19 20:24:47 +00:00
RELNOTES (Logical change 1.3) 2004-04-15 20:56:59 +00:00

Primary site is:
	http://developer.osdl.org/dev/iproute2

Original FTP site is:
	ftp://ftp.inr.ac.ru/ip-routing/

How to compile this.
--------------------
1. Look at start of Makefile and set correct values for:

KERNEL_INCLUDE should point to correct linux kernel include directory.
Default (/usr/src/linux/include) is right as rule.

arpd needs to have the db4 development libraries. For debian
users this is the package with a name like libdb4.x-dev.
DBM_INCLUDE points to the directory with db_185.h which
is the include file used by arpd to get to the old format Berkely
database routines.  Often this is in the db-devel package.

2. make

The makefile will automatically build a file Config which
contains whether or not ATM is available, etc.

3. To make documentation, cd to doc/ directory , then
   look at start of Makefile and set correct values for
   PAGESIZE=a4		, ie: a4 , letter ...	(string)
   PAGESPERPAGE=2	, ie: 1 , 2 ...		(numeric)
   and make there. It assumes, that latex, dvips and psnup
   are in your path.

Stephen Hemminger
shemminger@osdl.org

Alexey Kuznetsov
kuznet@ms2.inr.ac.ru