- 13 Mar, 2007 12 commits
-
-
jamal authored
> It is in current git tree. A small fix attached after some testing. Please dont forget to apply my other patches. When you have them let me know so i can do some more testing. cheers, jamal [TC] Get iptables path selection to set correct path A small tweak on top of Stephens patch Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca> Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
-
Patrick McHardy authored
[IPROUTE]: Increase internal clock resolution to nsec Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
-
Patrick McHardy authored
[IPROUTE]: Handle different kernel clock resolutions Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
-
Patrick McHardy authored
[IPROUTE]: Add sprint_ticks() function and use in CBQ Add helper function to print ticks to avoid assumptions about clock resolution in CBQ. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
-
Patrick McHardy authored
[IPROUTE]: Replace "usec" by "time" in function names Rename functions containing "usec" since they don't necessarily return usec units anymore. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
-
Patrick McHardy authored
[IPROUTE]: Introduce TIME_UNITS_PER_SEC to represent internal clock resolution Introduce TIME_UNITS_PER_SEC and conversion functions between internal resolution and resolution expected by the kernel (currently implemented as NOPs, only needed by HFSC, which currently always uses microseconds). Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
-
Patrick McHardy authored
[IPROUTE]: Introduce tc_calc_xmitsize and use where appropriate Add tc_calc_xmitsize() as complement to tc_calc_xmittime(), which calculates the size that can be transmitted at a given rate during a given time. Replace all expressions of the form "size = rate*tc_core_tick2usec(time))/1000000" by tc_calc_xmitsize() calls. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
-
Patrick McHardy authored
[IPROUTE]: Use tc_calc_xmittime() where appropriate Replace expressions of the form "tc_core_usec2tick(1000000 * size/rate)" by tc_calc_xmittime(). The CBQ case deserves an extra comment: when called with bnwd=rate, tc_cbq_calc_maxidle() behaves identical to tc_calc_xmittime(): unsigned tc_cbq_calc_maxidle(...) { double g = 1.0 - 1.0/(1<<ewma_log); double xmt = (double)avpkt/bndw; maxidle = xmt*(1-g); if (bndw != rate && maxburst) { ... } return tc_core_usec2tick(maxidle*(1<<ewma_log)*1000000); } which comes down to: maxidle = xmt * (1 - g) = xmt * (1 - (1.0 - 1.0/(1 << ewma_log)) = xmt * (1.0/(1 << ewma_log)) so: maxidle * (1 << ewma_log) * 1000000 = xmt * (1.0/(1 << ewma_log)) * (1 << ewma_log) * 1000000 = xmt * 1000000 = avpkt/bndw * 1000000 Which means tc_core_usec2tick(maxidle*(1<<ewma_log)*1000000) is identical to tc_calc_xmittime(bndw, avpkt). Use it directly since its a lot easier to understand its limits. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
-
Patrick McHardy authored
[IPROUTE]: tbf: fix latency printing The calculated latency is already in usecs, the additional tick2usec conversion breaks the calculation with jiffies or tsc clock source. Example: # tc qdisc add dev dummy0 root tbf latency 20ms burst 10k rate 50mbit # tc qdisc show dev dummy0 qdisc tbf 8002: rate 50000Kbit burst 10Kb lat 15.4ms Fixed: # tc qdisc show dev dummy0 qdisc tbf 8002: rate 50000Kbit burst 10Kb lat 20ms Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
-
jamal authored
cheers, jamal [GENERAL] nl_mgrp to crap if base multicast groups exceeded The old scheme of bitmasks works only for the first 32 groups. Above that the setsockopt scheme must be used. Signed-off-by: J Hadi Salim <hadi@cyberus.ca> Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
-
jamal authored
cheers, jamal [ALL] update rest to use nl_mgrp Signed-off-by: J Hadi Salim <hadi@cyberus.ca> Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
-
Stephen Hemminger authored
Update kernel headers to be versions from 2.6.20.y Solve cross compile build problems with x_tables and netfilter. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
-
- 07 Mar, 2007 2 commits
-
-
Noriaki TAKAMIYA authored
Hi, This patch enables ip command to add IFA_F_HOMEADDRESS and IFA_F_NODAD flags while adding the IPv6 address. Signed-off-by: Noriaki TAKAMIYA<takamiya@po.ntts.co.jp> Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org>
-
Stephen Hemminger authored
Add back missing man page. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
-
- 06 Mar, 2007 3 commits
-
-
Stephen Hemminger authored
Don't hard code iptables library path. Allow use of environment variable. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
-
Mike Frysinger authored
if a file fails to compile in a subdir of iproute2 fails (say "tunnel.c" in the "ip" dir), the top level makefile does not abort: all: Config @for i in $(SUBDIRS); \ do $(MAKE) $(MFLAGS) -C $$i; done the attached patch inserts a 'set -e' so that if the $(MAKE) fails, the all target fails as well -mike
-
Thomas Hisch authored
store can be used uninitialized in generic_proc_open if getenv(env) != NULL Signed-off-by: Thomas Hisch <t.hisch@gmail.com>
-
- 20 Feb, 2007 1 commit
-
-
Stephen Hemminger authored
Move tc-pbfifo to tc-bfifo and make tc-pfifo a sym link Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
-
- 09 Jan, 2007 1 commit
-
-
Stephen Hemminger authored
When using tc to change netem attributes, only those values on the command line should be passed down, others should remain unchanged. Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
- 14 Dec, 2006 10 commits
-
-
Stephen Hemminger authored
-
Hasso Tepper authored
* "tc [class|qdisc|filter] get" doesn't exist, remove it from inline help. * Add "replace" to "tc [class|filter] get" inline help. * Fix "tc [class|qdisc|filter] help" output: ~$ tc class help [snip] Command "help" is unknown, try "tc class help". ~$ with my best wishes, -- Hasso Tepper Elion Enterprises Ltd. [AS3249] Data Communication Network Administrator Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
Stephen Hemminger authored
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
jamal authored
Stephen, I will wait until you sync all these patches ive sent; then send a couple more then i will be done. cheers, jamal [XFRM] update xfrm monitoring to use nl_mgrp Signed-off-by: J Hadi Salim <hadi@cyberus.ca> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
jamal authored
[utils] make muticast group to bitmask conversion generic Signed-off-by: J Hadi Salim <hadi@cyberus.ca> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
jamal authored
[XFRM] update xfrm async events Report abbreviated async xfrm aevents. Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
jamal authored
[README] Mention need for db dev package This has always been an annoyance for me whenever i moved to a new machine. Just mention it in the readme hoping it will save someone some cycles Signed-off-by: J Hadi Salim <hadi@cyberus.ca> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
jamal authored
[U32] Fix missing class/flowid oddity When an action or policer is specified but not a classid/flowid, the syntax accepts it but the kernel never really hits it. This has been a long standing problem, but thanks to the persistence of Marco Berizzi <pupilla@hotmail.com> I broke down and fixed it. Signed-off-by: J Hadi Salim <hadi@cyberus.ca> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
Patrick McHardy authored
Needs kernel >= 2.6.19. Signed-off-by: Patrick McHardy <kaber@trash.net>
-
Stephen Hemminger authored
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
- 06 Dec, 2006 4 commits
-
-
jamal authored
a small one. I have a few more but just run out of cycles for now; if you dont mind holding before releasing for a short while so i can get them out I will appreciate it. cheers, jamal [DOC]: clarify "ok" and "pass" A small fixup to elucidate the mysteries of accepting .. Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
jamal authored
Ok, heres hopefully the last one in this series for generic netlink .. cheers, jamal [GENL]: Add controller support for new features exposed Update the controller to spit out the new features being exposed from the kernel Signed-off-by: J Hadi Salim <hadi@cyberus.ca> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
jamal authored
Stepehen, Didnt hear back from you, please apply this one; needed for the next patches. cheers, jamal [GENL] Update generic netlink header The header file needs to be uptodate with recent changes to allow for forward compatibility Signed-off-by: J Hadi Salim <hadi@cyberus.ca> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
jamal authored
A small typo fixup BTW, how do you like the subject to look like? cheers, jamal [GENL] Multicast computation off by one When using the first 32 groups, the multicast group to bit mapping was off by one. Signed-off-by: Jamal Hadi Salim Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
- 05 Dec, 2006 7 commits
-
-
Stephen Hemminger authored
Go through source files and remove all trailing whitespace Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
Masahide NAKAMURA authored
Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
Masahide NAKAMURA authored
Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
Masahide NAKAMURA authored
To support Mobile IPv6 RO, the following extension is included: o Use XFRM_MODE_XXX macro instead of magic number o New attribute option for all state: source address for deleting or getting message o New attribute options for RO: care-of address, last-used timestamp and wild-receive flag Note: Flush command like `ip xfrm state flush` is to remove all XFRM state. It has been effected for IPsec SAD but with this patch it flushes both IPsec SAD and Mobile IPv6 RO states. To make only IPsec SA flush, it is recommanded to specify each XFRM protocol like below: `ip x s f proto esp ; ip x s f proto ah ; ip x s f proto comp` Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
Masahide NAKAMURA authored
Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
Stephen Hemminger authored
Add more sanitized headers to make build work, and get rid of warning Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-
Stephen Hemminger authored
Headers extracted from early 2.6.20 development process Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
-