]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/log
lisovros/iproute2_canprio.git
11 years agoem_canid: Using header files exported by 3.5 kernel em_can
Rostislav Lisovy [Tue, 31 Jul 2012 09:19:37 +0000 (11:19 +0200)]
em_canid: Using header files exported by 3.5 kernel

11 years agoem_canid: Minor fixes.
Rostislav Lisovy [Tue, 31 Jul 2012 08:49:52 +0000 (10:49 +0200)]
em_canid: Minor fixes.

11 years agoem_canid: Simplified argument parsing.
Rostislav Lisovy [Tue, 31 Jul 2012 07:39:17 +0000 (09:39 +0200)]
em_canid: Simplified argument parsing.

11 years agoem_canid: Parsing up to 400 rules
Rostislav Lisovy [Tue, 31 Jul 2012 07:38:08 +0000 (09:38 +0200)]
em_canid: Parsing up to 400 rules

11 years agoem_canid: Fix in help information
Rostislav Lisovy [Mon, 30 Jul 2012 10:48:25 +0000 (12:48 +0200)]
em_canid: Fix in help information

11 years agoFix in help information
Rostislav Lisovy [Wed, 4 Jul 2012 11:26:01 +0000 (13:26 +0200)]
Fix in help information

11 years agoem_canid: Fix correct EFF_FLAG setting
Rostislav Lisovy [Fri, 29 Jun 2012 08:43:53 +0000 (10:43 +0200)]
em_canid: Fix correct EFF_FLAG setting

11 years agoem_canid: Added examples
Rostislav Lisovy [Fri, 22 Jun 2012 16:15:41 +0000 (18:15 +0200)]
em_canid: Added examples

11 years agoem_canid: Small renaming fix.
Rostislav Lisovy [Fri, 22 Jun 2012 16:08:46 +0000 (18:08 +0200)]
em_canid: Small renaming fix.

11 years agoem_canid: Dump function
Rostislav Lisovy [Thu, 14 Jun 2012 14:21:38 +0000 (16:21 +0200)]
em_canid: Dump function

11 years agoem_canid: Renamed em_can to em_canid;
Rostislav Lisovy [Tue, 12 Jun 2012 13:29:03 +0000 (15:29 +0200)]
em_canid: Renamed em_can to em_canid;

11 years agoem_can: EFF flag should be set in can_mask as well
Rostislav Lisovy [Mon, 11 Jun 2012 16:14:41 +0000 (18:14 +0200)]
em_can: EFF flag should be set in can_mask as well

11 years agoem_can: Fixed parsing of multiple parameters
Rostislav Lisovy [Mon, 11 Jun 2012 16:08:58 +0000 (18:08 +0200)]
em_can: Fixed parsing of multiple parameters

11 years agoem_can: Significant bug fixes
Rostislav Lisovy [Mon, 11 Jun 2012 14:41:35 +0000 (16:41 +0200)]
em_can: Significant bug fixes

11 years agoem_can: More advanced parameter parsing
Rostislav Lisovy [Mon, 11 Jun 2012 11:42:16 +0000 (13:42 +0200)]
em_can: More advanced parameter parsing

11 years agoem_can: Initial commit.
Rostislav Lisovy [Mon, 11 Jun 2012 09:32:28 +0000 (11:32 +0200)]
em_can: Initial commit.

em_can is based on em_u32.

11 years agoAdd reference to tc-codel(8) to the SEE ALSO section master
Jan Ceuleers [Sat, 2 Jun 2012 19:27:46 +0000 (21:27 +0200)]
Add reference to tc-codel(8) to the SEE ALSO section

Reported-by: Andy Furniss <andyqos@ukfsn.org>
Signed-off-by: Jan Ceuleers <jan.ceuleers@computer.org>
11 years agotc-drr(8): tab unquoted in a argument to a macro
Bjarni Ingi Gislason [Mon, 28 May 2012 11:46:05 +0000 (13:46 +0200)]
tc-drr(8): tab unquoted in a argument to a macro

<groff: tc-drr.8>:67: warning: tab character in unquoted macro argument
<groff: tc-drr.8>:69: warning: tab character in unquoted macro argument

*********************

Originally filed at: http://bugs.debian.org/674706

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
11 years agotc(8): Negative indent and missing "-" after an escape
Bjarni Ingi Gislason [Mon, 28 May 2012 11:46:04 +0000 (13:46 +0200)]
tc(8): Negative indent and missing "-" after an escape

<groff: tc.8>:51: warning: total indent cannot be negative
<groff: tc.8>:57: warning: escape character ignored before `i'

*********************

Space at end of line removed

  General considerations

a) Manuals should usually only be left justified.  Use ".ad l"
as the first regular command.

b) Each sentence should begin on a new line.  The conventions
about the amount of space between sentences are different.  This
also makes a check on the number of space characters between
words easier.

c) Separate numbers from units with a (no-break) space.  A
no-break space can be code 0xA0, "\ " (\<space>), or "\~"
(groff).

d) Use macros "TS/TE" for tables with more than two columns.
Then use

'\" t

as the first line in the source to tell "man" to use the "tbl"
preprocessor.

e) Protect last period (full stop) in abbreviations with "\&",
if it is or might be (through new formatting of source) at the
end of line, if it is also not an end of sentence.

*********************

Originally filed at: http://bugs.debian.org/674704

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
11 years agotc-codel: Fix typos in manpage
Jan Ceuleers [Fri, 25 May 2012 07:43:04 +0000 (09:43 +0200)]
tc-codel: Fix typos in manpage

Signed-off-by: Jan Ceuleers <jan.ceuleers@computer.org>
11 years agotc-codel: Update usage text
Vijay Subramanian [Thu, 24 May 2012 18:48:07 +0000 (11:48 -0700)]
tc-codel: Update usage text

codel can take 'noecn' as an option. This also makes it consistent with the
manpage.

Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com>
11 years agotc-codel: Add manpage
Vijay Subramanian [Thu, 24 May 2012 04:33:54 +0000 (21:33 -0700)]
tc-codel: Add manpage

This patch adds the manpage for the CoDel (Controlled-Delay) AQM.

Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com>
11 years agoiproute2: allow IPv6 addresses for l2tp local and remote parameters
Chris Elston [Tue, 1 May 2012 04:25:22 +0000 (04:25 +0000)]
iproute2: allow IPv6 addresses for l2tp local and remote parameters

Adds support for parsing IPv6 addresses to the parameters local and
remote in the l2tp commands. Requires netlink attributes L2TP_ATTR_IP6_SADDR
and L2TP_ATTR_IP6_DADDR, added in a required kernel patch already submitted
to netdev.

Also enables printing of IPv6 addresses returned by the L2TP_CMD_TUNNEL_GET
request.

Signed-off-by: Chris Elston <celston@katalix.com>
Signed-off-by: James Chapman <jchapman@katalix.com>
11 years agofq_codel: Fair Queue Codel AQM
Eric Dumazet [Fri, 11 May 2012 09:49:50 +0000 (09:49 +0000)]
fq_codel: Fair Queue Codel AQM

Fair Queue Codel packet scheduler

Principles :

- Packets are classified (internal classifier or external) on flows.
- This is a Stochastic model (as we use a hash, several flows might
                              be hashed on same slot)
- Each flow has a CoDel managed queue.
- Flows are linked onto two (Round Robin) lists,
  so that new flows have priority on old ones.

- For a given flow, packets are not reordered (CoDel uses a FIFO)
- head drops only.
- ECN capability is on by default.
- Very low memory footprint (64 bytes per flow)

tc qdisc ... fq_codel [ limit PACKETS ] [ flows number ]
                      [ target TIME ] [ interval TIME ] [ noecn ]
                      [ quantum BYTES ]

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Dave Taht <dave.taht@bufferbloat.net>
Cc: Kathleen Nichols <nichols@pollere.com>
Cc: Van Jacobson <van@pollere.net>
Cc: Tom Herbert <therbert@google.com>
Cc: Matt Mathis <mattmathis@google.com>
Cc: Nandita Dukkipati <nanditad@google.com>
Cc: Maciej Żenczykowski <maze@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: Changli Gao <xiaosuo@gmail.com>
11 years agotc_codel: Controlled Delay AQM
Eric Dumazet [Thu, 10 May 2012 20:22:35 +0000 (20:22 +0000)]
tc_codel: Controlled Delay AQM

An implementation of CoDel AQM, from Kathleen Nichols and Van Jacobson.

http://queue.acm.org/detail.cfm?id=2209336

This AQM main input is no longer queue size in bytes or packets, but the
delay packets stay in (FIFO) queue.

As we don't have infinite memory, we still can drop packets in enqueue()
in case of massive load, but mean of CoDel is to drop packets in
dequeue(), using a control law based on two simple parameters :

target : target sojourn time (default 5ms)
interval : width of moving time window (default 100ms)

Selected packets are dropped, unless ECN is enabled and packets can get
ECN mark instead.

Usage: tc qdisc ... codel [ limit PACKETS ] [ target TIME ]
                          [ interval TIME ] [ ecn ]

qdisc codel 10: parent 1:1 limit 2000p target 3.0ms interval 60.0ms ecn
 Sent 13347099587 bytes 8815805 pkt (dropped 0, overlimits 0 requeues 0)
 rate 202365Kbit 16708pps backlog 113550b 75p requeues 0
  count 116 lastcount 98 ldelay 4.3ms dropping drop_next 816us
  maxpacket 1514 ecn_mark 84399 drop_overlimit 0

CoDel must be seen as a base module, and should be used keeping in mind
there is still a FIFO queue. So a typical setup will probably need a
hierarchy of several qdiscs and packet classifiers to be able to meet
whatever constraints a user might have.

One possible example would be to use fq_codel, which combines Fair
Queueing and CoDel, in replacement of sfq / sfq_red.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Dave Taht <dave.taht@bufferbloat.net>
11 years agotc-netem: Add support for ECN packet marking
Vijay Subramanian [Wed, 16 May 2012 13:51:58 +0000 (13:51 +0000)]
tc-netem: Add support for ECN packet marking

This patch provides support for marking packets with ECN instead of
dropping them with netem. This makes it possible to make use of the
netem ECN marking feature that was added recently to the kernel.

Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com>
11 years agoUpdate tc-netem manpage to add ecn capability
Vijay Subramanian [Wed, 16 May 2012 13:51:57 +0000 (13:51 +0000)]
Update tc-netem manpage to add ecn capability

This patch updates the netem manpage to describe how to use
netem to mark packets with ecn instead of dropping them.

Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com>
11 years agoRemove derived man pages
Stephen Hemminger [Tue, 22 May 2012 21:03:37 +0000 (14:03 -0700)]
Remove derived man pages

These man pages are now built from templates

11 years agoUpdate headers to 3.5 merge window
Stephen Hemminger [Tue, 22 May 2012 21:02:49 +0000 (14:02 -0700)]
Update headers to 3.5 merge window

Use sanitized version of kernel headers from 3.5 pre-rc1 merge

11 years agoiproute2: man page and /bin/ip disagree on del vs delete
Andreas Henriksson [Sat, 19 May 2012 14:08:21 +0000 (16:08 +0200)]
iproute2: man page and /bin/ip disagree on del vs delete

Reported by Robert Henney:
> the 'ip' man page does not mention the command "del" at all but does
> claim, "As a rule, it is possible to add, delete and show (or list ) objects".
> however, 'ip' does not always recognize "delete" as a commend.
>
> robh@debian:~$ ip tunnel delete
> Command "delete" is unknown, try "ip tunnel help".

Lets use "delete" in all calls to matches() for consistency. This will
make both "del" and "delete" work everywhere.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
11 years agov3.4.0
Stephen Hemminger [Mon, 21 May 2012 21:12:19 +0000 (14:12 -0700)]
v3.4.0

11 years agoiproute2: trivial fix of ip link syntax in manpage
Andreas Henriksson [Mon, 21 May 2012 13:48:06 +0000 (15:48 +0200)]
iproute2: trivial fix of ip link syntax in manpage

Reported by Ivan Vilata i Balaguer <ivan@selidor.net>
found that the description of the `ip link add` command in the manpage
is outdated regarding the compulsory `link DEVICE` option.
For instance, `ip  link help` says:
    Usage: ip link add [link DEV] [ name ] NAME
     ...
But the manpage still says:
     ip link add link DEVICE [ name ] NAME

(Trying to provide a `link` option e.g. under an LXC container can frustrate
 the creation of dummy devices which don't need an actual device.)

The syntax of the "ip link help" output was fixed in commit
"iproute2: Fix usage and man page for 'ip link'" (a22e92951d).
This updates the manpage to mark "link DEVICE" as an optional
argument there as well.

  http://bugs.debian.org/673171

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
11 years agoUpdate man8 Makefile
Vijay Subramanian [Thu, 3 May 2012 20:15:46 +0000 (13:15 -0700)]
Update man8 Makefile

Commit (761a1e60 iproute2 - Split up manual page installation )
introduced man/man8/Makefile but did not add all the man pages.
This patch adds the missing man pages for installation.

Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com>
11 years agoiproute2: add ip-l2tp man page
James Chapman [Tue, 1 May 2012 14:25:23 +0000 (15:25 +0100)]
iproute2: add ip-l2tp man page

Add a man page to cover the "ip l2tp" commands. Add a reference to it
in the main ip page.

This version removes the unnecessary setting of promiscuous mode
in the examples.

Signed-off-by: James Chapman <jchapman@katalix.com>
11 years agoss: use new INET_DIAG_SKMEMINFO option to get more memory information for tcp socket
Shan Wei [Thu, 3 May 2012 08:39:52 +0000 (16:39 +0800)]
ss: use new INET_DIAG_SKMEMINFO option to get more memory information for tcp socket

INET_DIAG_SKMEMINFO is used to monitor socket memory information
which contains more information than INET_DIAG_MEMINFO.

-m option is retained for old kernel that don't surpport INET_DIAG_SKMEMINFO.

Signed-off-by: Shan Wei <davidshan@tencent.com>
12 years agoRevert "iproute2: allow IPv6 addresses for l2tp local and remote parameters"
Stephen Hemminger [Thu, 26 Apr 2012 15:06:38 +0000 (08:06 -0700)]
Revert "iproute2: allow IPv6 addresses for l2tp local and remote parameters"

This reverts commit 16eba34485b7275f1b72d6c480d7062127617370.
Hold off until next release.

12 years agoiproute2: allow IPv6 addresses for l2tp local and remote parameters
Chris Elston [Fri, 20 Apr 2012 01:29:42 +0000 (01:29 +0000)]
iproute2: allow IPv6 addresses for l2tp local and remote parameters

Adds support for parsing IPv6 addresses to the parameters local and
remote in the l2tp commands. Requires netlink attributes L2TP_ATTR_IP6_SADDR
and L2TP_ATTR_IP6_DADDR, added in a required kernel patch already submitted
to netdev.

Also enables printing of IPv6 addresses returned by the L2TP_CMD_TUNNEL_GET
request.

Signed-off-by: Chris Elston <celston@katalix.com>
Signed-off-by: James Chapman <jchapman@katalix.com>
12 years agoiproute2 - Fix up and simplify variables pointing to install directories
Christoph J. Thompson [Thu, 1 Mar 2012 16:46:26 +0000 (17:46 +0100)]
iproute2 - Fix up and simplify variables pointing to install directories

Define where is the are located the iproute2 config files.
Get rid of trailing slashes for paths in several file.

Signed-off-by: Christoph J. Thompson <cjsthompson@gmail.com>
12 years agoiproute2 - Split up manual page installation
Christoph J. Thompson [Thu, 1 Mar 2012 16:45:45 +0000 (17:45 +0100)]
iproute2 - Split up manual page installation

Generate manual pages based on where the config files are installed.
Add missing manual pages for utilities which are links to other binaries.
Make tc-pfifo.8 a real file that points to tc-bfifo.8 instead of symlink
which causes problems with compressing manual pages.

Signed-off-by: Christoph J. Thompson <cjsthompson@gmail.com>
12 years agoiproute2 - Split up cflags
Christoph J. Thompson [Thu, 1 Mar 2012 06:45:17 +0000 (06:45 +0000)]
iproute2 - Split up cflags

Allows setting optimisation flags at compile time without patching the Makefile.

modified:   Makefile

Signed-off-by: Christoph J. Thompson <cjsthompson@gmail.com>
12 years agoiproute2 - Don't hardcode the path to config files
Christoph J. Thompson [Thu, 1 Mar 2012 06:44:43 +0000 (06:44 +0000)]
iproute2 - Don't hardcode the path to config files

Allows using an alternate path for config files.

Signed-off-by: Christoph J. Thompson <cjsthompson@gmail.com>
12 years agoiproute2: Add netlink attribute to filter dump requests
Rose, Gregory V [Tue, 21 Feb 2012 10:43:09 +0000 (10:43 +0000)]
iproute2: Add netlink attribute to filter dump requests

Add a new netlink attribute type to the dump request to allow
filtering of the information returned for the respective matching
interfaces.  At this time the only filter defined is to request
virtual function (VF) device info for interfaces that attached VFs.

It will also be possible to extend the request with other yet to be
defined netlink attributes in the future.

Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
12 years agoMerge in 3.3-rc2 kernel headers
Stephen Hemminger [Tue, 10 Apr 2012 16:11:21 +0000 (09:11 -0700)]
Merge in 3.3-rc2 kernel headers

12 years agotc: man: choke counts packets, not bytes
Florian Westphal [Sun, 8 Apr 2012 12:34:14 +0000 (12:34 +0000)]
tc: man: choke counts packets, not bytes

12 years agoFix ss if INET_DIAG not enabled in kernel
Eric Dumazet [Tue, 10 Apr 2012 16:00:16 +0000 (09:00 -0700)]
Fix ss if INET_DIAG not enabled in kernel

If kernel doesn't have INET_DIAG and using newish version of iproute
nothing would be displayed.

12 years agoConvert to use rta_getattr_ functions
Stephen Hemminger [Tue, 10 Apr 2012 15:47:55 +0000 (08:47 -0700)]
Convert to use rta_getattr_ functions

User new functions (inspired by libmnl) to do type safe access
of routeing attributes

12 years agoiproute: show metrics as an unsigned value
Jorge Boncompte [DTI2] [Tue, 10 Apr 2012 15:23:59 +0000 (08:23 -0700)]
iproute: show metrics as an unsigned value

Avoids showing negative metrics.

Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
12 years agoMake link mode case independent
Stephen Hemminger [Thu, 5 Apr 2012 22:10:19 +0000 (15:10 -0700)]
Make link mode case independent

The link mode is printed in upper case, and following the general
rule that ip command output should work on input, allow either case.

12 years agoAdd ability to set link state with ip
Stephen Hemminger [Thu, 5 Apr 2012 22:08:57 +0000 (15:08 -0700)]
Add ability to set link state with ip

Exposes existing netlink operations to modify link state of devices.

12 years agoipl2tp: allow setting session interface name
João Valverde [Mon, 26 Mar 2012 20:00:08 +0000 (21:00 +0100)]
ipl2tp: allow setting session interface name

Hi,

I've attached a trivial patch for iproute2 to allow naming interfaces
created with "ip l2tp add session".

I believe patches should go through the netdev mailing list but this
patch is so small I figured that would just add noise. Hope that's OK.

Originally I thought I would need a bigger patch and was going to take a
stab at implementing something like

ip l2tp add tunnel L2TP_TUNNEL_ARGS
ip link add name NAME  [ LINK_OPTS ] type l2tp L2TP_SESSION_ARGS

(a better interface IMHO) but all the code was there already, all that I
needed to add was option parsing.

Thanks,

João Valverde

From fd8c3b712527d2e959aeabc6f6b71a9910e7be7e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= <joao.valverde@ist.utl.pt>
Date: Mon, 26 Mar 2012 18:30:56 +0100
Subject: [PATCH] ipl2tp: allow setting session interface name

12 years agov3.3.0
Stephen Hemminger [Tue, 20 Mar 2012 00:27:12 +0000 (17:27 -0700)]
v3.3.0

12 years agoip: allow set and display of link mode parameter
Stephen Hemminger [Tue, 20 Mar 2012 00:24:43 +0000 (17:24 -0700)]
ip: allow set and display of link mode parameter

The kernel supports a link mode attribute (which can be dormant or default).
This attribute is used to control how the link watch engine
handles operstate transistion.

This adds a new parameter to ip link command to allow setting and
displaying the value.
---

12 years agogre: allow 0 as a legal key value
Stephen Hemminger [Tue, 20 Mar 2012 00:18:49 +0000 (17:18 -0700)]
gre: allow 0 as a legal key value

There is nothing in the standard that says 0 can't be used as a key.
It makes sense to allow it. Also fix typo where ikey was printed for
when printing okey.

12 years agoFix rta_getattr_u32 wrapper and add getattr_u8
Stephen Hemminger [Fri, 16 Mar 2012 00:47:51 +0000 (17:47 -0700)]
Fix rta_getattr_u32 wrapper and add getattr_u8

12 years agoip: xfrm: report nat-t/encapsulation portmapping updates
Florian Westphal [Tue, 13 Mar 2012 12:35:25 +0000 (12:35 +0000)]
ip: xfrm: report nat-t/encapsulation portmapping updates

Signed-off-by: Florian Westphal <fw@strlen.de>
12 years agoupdate to 3.3-rc7 kernel headers
Stephen Hemminger [Thu, 15 Mar 2012 21:44:13 +0000 (14:44 -0700)]
update to 3.3-rc7 kernel headers

12 years agoUpdate ip address manual page
Kenyon Ralph [Thu, 15 Mar 2012 21:39:12 +0000 (14:39 -0700)]
Update ip address manual page

* update synopsis to match "ip address help" output
* specify IPv4, since "IP" is ambiguous
* remove deprecated site scope
* document lifetimes, home, and nodad
* update wording to make sense since page was split from the ip(8) page
* git rid of extra spaces

12 years agocsum action, fix typo
Anton Danilov [Thu, 15 Mar 2012 21:24:59 +0000 (14:24 -0700)]
csum action, fix typo

12 years agoFix ip-monitor manual page what-is entry
Stephen Hemminger [Wed, 14 Mar 2012 17:38:53 +0000 (10:38 -0700)]
Fix ip-monitor manual page what-is entry

Debian warning that NAME wasn't parsible

12 years agoiproute: allow changing gretap parameters
Stephen Hemminger [Wed, 14 Mar 2012 17:24:25 +0000 (10:24 -0700)]
iproute: allow changing gretap parameters

Change the order of evaluation of ip link type arguements to allow
changing parameters of gre tunnels.

The following wouldn't work:
 # ip li add mytunnel type gretap remote 1.1.1.1 key 3
 # ip li set mytunnel type gretap key 9

12 years agoKeep cscope around after make clean
Stephen Hemminger [Wed, 14 Mar 2012 17:22:25 +0000 (10:22 -0700)]
Keep cscope around after make clean

Follow convention of kernel and keep cscope file around
after make clean.

12 years agoiproute: fix tc -iec display of Mibit rates
Andreas Henriksson [Fri, 9 Mar 2012 16:09:19 +0000 (17:09 +0100)]
iproute: fix tc -iec display of Mibit rates

As reported by Thomas Mühlgrabner <muehltom@cable.vol.at>
in http://bugs.debian.org/662979 :

 When showing htb class configuration with "tc -iec class show",
 the output for Mibit is actually the value for bit.
 Example: configure a class with a ceil of 1000Mibit.
 Output states 1048576000 Mibit.

The cause is missing parenteses in the display code of tc....

(Please also note that a lower value of 100Mibit will be displayed
as 102400 Kibit, which I think is kind of ugly.)

Reported-by: Thomas Mühlgrabner <muehltom@cable.vol.at>
Signed-off-by: Andreas Henriksson <andreas@fatal.se>
12 years agoiproute2: cleanup dependencies
Yegor Yefremov [Mon, 27 Feb 2012 14:21:15 +0000 (15:21 +0100)]
iproute2: cleanup dependencies

LIBNETLINK will be defined in the main Makefile, so
both ../lib/libnetlink.a ../lib/libutil.a will be
automatically appended during linking. Otherwise
../lib/libnetlink.a ../lib/libutil.a will appear
twice during linking.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
12 years agoiproute2: tc - mqprio formatted print fix
Petr Sabata [Wed, 15 Feb 2012 06:02:33 +0000 (06:02 +0000)]
iproute2: tc - mqprio formatted print fix

Just a minor correction of mqprio printf()'s.

Reported-by: Petr Písař <ppisar@redhat.com>
Signed-off-by: Petr Šabata <contyk@redhat.com>
12 years agoipaddress: cleanup code for link stats64
Stephen Hemminger [Wed, 22 Feb 2012 01:18:59 +0000 (17:18 -0800)]
ipaddress: cleanup code for link stats64

On 64 bit platform, casting to unsigned long long is unnecessary.
Use inttypes.h and stdtypes.h to resolve it.

12 years agoarpd: allow configuring polling interval
Stephen Hemminger [Fri, 17 Feb 2012 16:17:09 +0000 (08:17 -0800)]
arpd: allow configuring polling interval

A new option -p is added to the arpd command that accepts
a time indicating the number of seconds
to wait between kernel arp table polling attempts.
The minimum value is .1 (100ms).

If not specified, polling defaults to 30 seconds.

Patch by Erik Hugne <erik.hugne@ericsson.com> with
modifications

12 years agoss: simplify code
Stephen Hemminger [Fri, 17 Feb 2012 00:42:42 +0000 (16:42 -0800)]
ss: simplify code

Rather than copy-pasting code using sendmsg/recvmsg, use the simpler
send() and recv() system calls.

12 years agoss: Close file descriptors in tcp_show_netlink.
Matt Tierney [Wed, 15 Feb 2012 23:20:38 +0000 (18:20 -0500)]
ss: Close file descriptors in tcp_show_netlink.

ss: Close file descriptors in tcp_show_netlink.

Signed-off-by: Matt Tierney <tierney@cs.nyu.edu>
12 years agodhcp-client-script: don't use /tmp
Stephen Hemminger [Wed, 15 Feb 2012 18:05:45 +0000 (10:05 -0800)]
dhcp-client-script: don't use /tmp

/tmp is a dangerous place and better to put log files in /var/log.
Based on patch by Vasiliy Kulikov <segoon@openwall.com>

12 years agoDon't put configure files in /tmp
Stephen Hemminger [Wed, 15 Feb 2012 18:03:39 +0000 (10:03 -0800)]
Don't put configure files in /tmp

Based on patch by Vasiliy Kulikov <segoon@openwall.com>
Don't use /tmp since it is dangerous, instead put temporary files
from configure script in build directory. This is what autoconf
generated configure does.

12 years agoAdjust man page for new functionality
Tony Zelenoff [Thu, 26 Jan 2012 04:50:05 +0000 (04:50 +0000)]
Adjust man page for new functionality

Signed-off-by: Tony Zelenoff <antonz@parallels.com>
12 years agoModify neighbour proxy show
Tony Zelenoff [Thu, 26 Jan 2012 04:50:04 +0000 (04:50 +0000)]
Modify neighbour proxy show

New "ip neigh show proxy" command now can show proxies which
were added with "ip neigh add proxy" command. Kernel code to
support this feature sent a bit earlier to netdev.

Signed-off-by: Tony Zelenoff <antonz@parallels.com>
12 years agoiproute2: Add VF spoofchk command description to ip-link.8 man page
Greg Rose [Thu, 9 Feb 2012 21:21:16 +0000 (13:21 -0800)]
iproute2: Add VF spoofchk command description to ip-link.8 man page

Add documentation for the ip link set spoof checking option.  The
expanded text section explaining the VF commands was missing this
text.

Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
12 years agored: add missing include math.h
Stephen Hemminger [Mon, 6 Feb 2012 17:45:50 +0000 (09:45 -0800)]
red: add missing include math.h

red now uses pow() function.

12 years agoAdd cast to rta_getattr_str
Stephen Hemminger [Mon, 6 Feb 2012 17:35:27 +0000 (09:35 -0800)]
Add cast to rta_getattr_str

Warning from C++

12 years agoss: should support CONFIG_INET_UDP_DIAG=n kernels
Eric Dumazet [Mon, 30 Jan 2012 16:05:45 +0000 (17:05 +0100)]
ss: should support CONFIG_INET_UDP_DIAG=n kernels

ss -x currently fails if CONFIG_INET_UDP_DIAG=n or old kernels

Also close file descriptors while we are at it.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Pavel Emelyanov <xemul@parallels.com>
12 years agotc-sfq: update man page
Eric Dumazet [Tue, 24 Jan 2012 13:29:38 +0000 (14:29 +0100)]
tc-sfq: update man page

Add documentation about RED mode, and new parameters (flows, depth)
added in linux 3.3

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
12 years agotc-red: update man page
Eric Dumazet [Tue, 24 Jan 2012 13:18:33 +0000 (14:18 +0100)]
tc-red: update man page

include documentation for harddrop and adaptive parameters.

All parameters but limit and avpkt are optional.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
12 years agonetem: Fix 'reorder' section of man page
Vijay Subramanian [Tue, 24 Jan 2012 06:08:52 +0000 (22:08 -0800)]
netem: Fix 'reorder' section of man page

The syntax used in the example on reordering in the manpage is inconsistent with
the usage syntax.  Moreover, the text does not describe the reordering process
in the kernel correctly. This patch fixes these two issues.

Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com>
12 years agonetem: Fix up grammatical errors in man page
Vijay Subramanian [Tue, 24 Jan 2012 06:08:51 +0000 (22:08 -0800)]
netem: Fix up grammatical errors in man page

Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com>
12 years agoFix unix socket diagnostic build
Stephen Hemminger [Fri, 20 Jan 2012 20:48:00 +0000 (12:48 -0800)]
Fix unix socket diagnostic build

Get updated headers incorporated into build environment
and include required sock_diag.h.

12 years agoiproute: Dump unix sockets via netlink
Pavel Emelyanov [Thu, 15 Dec 2011 03:28:15 +0000 (03:28 +0000)]
iproute: Dump unix sockets via netlink

Get the same info as from /proc file plus the peer inode.

Applies on top of new sock diag patch and udp diag patch.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
12 years agoUpdate ip manpage
nick black [Fri, 20 Jan 2012 20:32:44 +0000 (12:32 -0800)]
Update ip manpage

Fix synopsis and other references to match current code.

12 years agonetem: Fail cleanly if user input is wrong
Vijay Subramanian [Fri, 20 Jan 2012 17:50:25 +0000 (09:50 -0800)]
netem: Fail cleanly if user input is wrong

(Resending patch since it looks like my earlier mail did not make it to
netdev).

netem reordering requires that the delay parameter be given. Currently, if no
delay is given, tc prints the error message but still installs the qdisc. Fix
this by printing the usage and failing cleanly.

Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com>
12 years agoMerge branch 'master' of nehalam:src/iproute2
Stephen Hemminger [Fri, 20 Jan 2012 16:17:59 +0000 (08:17 -0800)]
Merge branch 'master' of nehalam:src/iproute2

12 years agoip: make 'ip l' be 'ip link'
Stephen Hemminger [Fri, 20 Jan 2012 16:16:02 +0000 (08:16 -0800)]
ip: make 'ip l' be 'ip link'

Restore compatiablity for those lazy typists.

12 years agogred: support TCA_GRED_MAX_P attribute
Eric Dumazet [Fri, 20 Jan 2012 15:27:50 +0000 (16:27 +0100)]
gred: support TCA_GRED_MAX_P attribute

TCA_GRED_MAX_P permits to express high resolution probabilities.

New output (on 3.3+ kernel) :

disc gred 9442: root refcnt 17
 DP:0 (prio 1) Average Queue 0b Measured Queue 0b
 Packet drops: 0 (forced 0 early 0)
 Packet totals: 20 (bytes 2584)
 limit 31460b min 3000b max 9000b ewma 5 probability 0.05 Scell_log 15

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
12 years agochoke: support TCA_CHOKE_MAX_P
Eric Dumazet [Fri, 20 Jan 2012 15:19:44 +0000 (16:19 +0100)]
choke: support TCA_CHOKE_MAX_P

TCA_CHOKE_MAX_P permits to express high resolution RED probability.

tc qdisc add dev $DEV parent 1:1 handle 10: est 1sec 8sec choke \
limit 90 ecn min 10 max 30 probability 0.05 bandwidth 10Mbit

Before patch :

tc -s -d qdisc show dev eth3
qdisc ... limit 90p min 10p max 30p ecn ewma 3 Plog 19 Scell_log 13

After :

qdisc ... limit 90p min 10p max 30p ecn ewma 3 probability 0.05
Scell_log 13

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
12 years agosfq: add optional RED on top of SFQ
Eric Dumazet [Fri, 20 Jan 2012 11:17:43 +0000 (12:17 +0100)]
sfq: add optional RED on top of SFQ

Adds an optional Random Early Detection on each SFQ flow queue.

Traditional SFQ limits count of packets, while RED permits to also
control number of bytes per flow, and adds ECN capability as well.

1) We dont handle the idle time management in this RED implementation,
since each 'new flow' begins with a null qavg. We really want to address
backlogged flows.

2) if headdrop is selected, we try to ecn mark first packet instead of
currently enqueued packet. This gives faster feedback for tcp flows
compared to traditional RED [ marking the last packet in queue ]

Example of use :

tc qdisc add dev $DEV parent 1:1 handle 10: est 1sec 4sec sfq \
limit 3000 headdrop flows 512 divisor 16384 \
redflowlimit 100000 min 8000 max 60000 probability 0.20 ecn

qdisc sfq 10: parent 1:1 limit 3000p quantum 1514b depth 127 headdrop
flows 512/16384 divisor 16384
 ewma 6 min 8000b max 60000b probability 0.2 ecn
 prob_mark 0 prob_mark_head 4876 prob_drop 6131
 forced_mark 0 forced_mark_head 0 forced_drop 0
 Sent 1175211782 bytes 777537 pkt (dropped 6131, overlimits 11007
requeues 0)
 rate 99483Kbit 8219pps backlog 689392b 456p requeues 0

In this test, with 64 netperf TCP_STREAM sessions, 50% using ECN enabled
flows, we can see number of packets CE marked is smaller than number of
drops (for non ECN flows)

If same test is run, without RED, we can check backlog is much bigger.

qdisc sfq 10: parent 1:1 limit 3000p quantum 1514b depth 127 headdrop
flows 512/16384 divisor 16384
 Sent 1148683617 bytes 795006 pkt (dropped 0, overlimits 0 requeues 0)
 rate 98429Kbit 8521pps backlog 1221290b 841p requeues 0

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
12 years agored: fix adaptive spelling
Eric Dumazet [Fri, 20 Jan 2012 15:10:13 +0000 (16:10 +0100)]
red: fix adaptive spelling

Reported-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
12 years agored: Add adaptative algo Logged in as shemminger
Eric Dumazet [Thu, 19 Jan 2012 22:45:20 +0000 (14:45 -0800)]
red: Add adaptative algo Logged in as shemminger

Enable Adaptative RED algo, using :

tc qdisc  ... red limit BYTES ... adaptative ...

Support of high precision probability/max_p setting and reporting, with
support of old kernels.

With a new kernel, "Plog ..." is replaced in tc output by "probability
value" :

qdisc red 10: dev eth3 parent 1:1 limit 360Kb min 30Kb max 90Kb ecn ewma
5 probability 0.09 Scell_log 15

12 years agonetem: add rate extension to man page
Stephen Hemminger [Thu, 19 Jan 2012 22:38:36 +0000 (14:38 -0800)]
netem: add rate extension to man page

Fixed up version of patch from Hagen Paul Pfeifer <hagen@jauu.net>
Also run spell check.

12 years agotc: netem rate shaping and cell extension
Hagen Paul Pfeifer [Thu, 19 Jan 2012 22:28:27 +0000 (14:28 -0800)]
tc: netem rate shaping and cell extension

This patch add rate shaping as well as cell support. The link-rate can be
specified via rate options. Three optional arguments control the cell
knobs: packet-overhead, cell-size, cell-overhead. To ratelimit eth0 root
queue to 5kbit/s, with a 20 byte packet overhead, 100 byte cell size and
a 5 byte per cell overhead:

tc qdisc add dev eth0 root netem rate 5kbit 20 100 5

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
12 years agoutils: add s32 parser
Hagen Paul Pfeifer [Tue, 20 Dec 2011 11:28:46 +0000 (11:28 +0000)]
utils: add s32 parser

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
12 years agousing NLM_F_DUMP flag constant in libnetlink.c
Masatake YAMATO [Thu, 19 Jan 2012 22:16:12 +0000 (14:16 -0800)]
using NLM_F_DUMP flag constant in libnetlink.c

This is trivial patch for libnetlink.c in iproute2.

In iproute2/include/linux/netlink.h NLM_F_DUMP is defines as:

   #define NLM_F_DUMP (NLM_F_ROOT|NLM_F_MATCH)

It is not used in libnetlink.c. If used, the code becomes a bit easier
to read.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
12 years agonetem: Add missing '}' in man page
Vijay Subramanian [Thu, 19 Jan 2012 21:17:03 +0000 (13:17 -0800)]
netem: Add missing '}' in man page

Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com>
12 years agoUpdate to 3.3 headers (with inet_diag fix)
Stephen Hemminger [Thu, 19 Jan 2012 22:09:42 +0000 (14:09 -0800)]
Update to 3.3 headers (with inet_diag fix)

Incorporate change to fix inet_diag build failure.

12 years agoUpdate to kernel v3.3 headers
Stephen Hemminger [Tue, 10 Jan 2012 18:50:02 +0000 (10:50 -0800)]
Update to kernel v3.3 headers

Initial merge window version of headers

12 years agoFix man page whatis entry errors
Stephen Hemminger [Tue, 10 Jan 2012 18:47:28 +0000 (10:47 -0800)]
Fix man page whatis entry errors

lintian says:
W: iproute: manpage-has-bad-whatis-entry usr/share/man/man7/tc-hfsc.7.gz
W: iproute: manpage-has-bad-whatis-entry usr/share/man/man8/ip-address.8.gz
W: iproute: manpage-has-bad-whatis-entry usr/share/man/man8/ip-addrlabel.8.gz
W: iproute: manpage-has-bad-whatis-entry usr/share/man/man8/ip-link.8.gz
W: iproute: manpage-has-bad-whatis-entry usr/share/man/man8/ip-maddress.8.gz
W: iproute: manpage-has-bad-whatis-entry usr/share/man/man8/ip-monitor.8.gz
W: iproute: manpage-has-bad-whatis-entry usr/share/man/man8/ip-mroute.8.gz
W: iproute: manpage-has-bad-whatis-entry usr/share/man/man8/ip-neighbour.8.gz
W: iproute: manpage-has-bad-whatis-entry usr/share/man/man8/ip-netns.8.gz
W: iproute: manpage-has-bad-whatis-entry usr/share/man/man8/ip-ntable.8.gz
W: iproute: manpage-has-bad-whatis-entry usr/share/man/man8/ip-route.8.gz
W: iproute: manpage-has-bad-whatis-entry usr/share/man/man8/ip-rule.8.gz
W: iproute: manpage-has-bad-whatis-entry usr/share/man/man8/ip-tunnel.8.gz
W: iproute: manpage-has-bad-whatis-entry usr/share/man/man8/ip-xfrm.8.gz

12 years agoiplt2p: remove unused libnl headers
Stephen Hemminger [Tue, 10 Jan 2012 16:50:49 +0000 (08:50 -0800)]
iplt2p: remove unused libnl headers

Leftover from change to original code.