]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/log
lisovros/iproute2_canprio.git
11 years agocan: EFF_FLAG should be set in mask in our situation cls_can
Rostislav Lisovy [Fri, 29 Jun 2012 13:47:27 +0000 (15:47 +0200)]
can: EFF_FLAG should be set in mask in our situation

11 years agocan: upgraded can.h
Rostislav Lisovy [Thu, 24 May 2012 13:42:11 +0000 (15:42 +0200)]
can: upgraded can.h

11 years agocan: Variables representing CAN ID have canid_t data type;
Rostislav Lisovy [Thu, 24 May 2012 12:56:28 +0000 (14:56 +0200)]
can: Variables representing CAN ID have canid_t data type;

11 years agocan: Setting of path to "tc" command in configuration script is now possible;
Rostislav Lisovy [Thu, 24 May 2012 08:15:11 +0000 (10:15 +0200)]
can: Setting of path to "tc" command in configuration script is now possible;

11 years agocan: Fixed some "line over 80 characters" warnings reported by checkpatch.pl
Rostislav Lisovy [Thu, 24 May 2012 08:00:09 +0000 (10:00 +0200)]
can: Fixed some "line over 80 characters" warnings reported by checkpatch.pl

11 years agocan: All functions have custom prefixes.
Rostislav Lisovy [Wed, 23 May 2012 14:53:17 +0000 (16:53 +0200)]
can: All functions have custom prefixes.

11 years agocan: Upgraded manpage according to the changes in sourcecode.
Rostislav Lisovy [Wed, 23 May 2012 11:40:07 +0000 (13:40 +0200)]
can: Upgraded manpage according to the changes in sourcecode.

11 years agocan: Fixed all errors and most warnings reported by checkpatch.pl
Rostislav Lisovy [Wed, 23 May 2012 09:09:49 +0000 (11:09 +0200)]
can: Fixed all errors and most warnings reported by checkpatch.pl

11 years agocan: Added separate can.h
Rostislav Lisovy [Wed, 23 May 2012 08:43:32 +0000 (10:43 +0200)]
can: Added separate can.h

Added separate can.h instead of defining CAN related constanst on our own.

11 years agocan: Comment fix.
Rostislav Lisovy [Wed, 16 May 2012 08:40:16 +0000 (10:40 +0200)]
can: Comment fix.

11 years agoman page changes
Michal Sojka [Mon, 14 May 2012 16:07:23 +0000 (18:07 +0200)]
man page changes

11 years agocan: Added manpage
Rostislav Lisovy [Fri, 11 May 2012 13:04:43 +0000 (15:04 +0200)]
can: Added manpage

11 years agocan: Coding style + minor changes.
Rostislav Lisovy [Fri, 4 May 2012 13:34:19 +0000 (15:34 +0200)]
can: Coding style + minor changes.

11 years agodoc: Changed some CAN IDs in examples to be relevant to CANopen.
Rostislav Lisovy [Fri, 14 Oct 2011 15:27:24 +0000 (17:27 +0200)]
doc: Changed some CAN IDs in examples to be relevant to CANopen.

11 years agobenchmark: Added benchmarking of SFQ qdisc.
Rostislav Lisovy [Fri, 14 Oct 2011 12:26:19 +0000 (14:26 +0200)]
benchmark: Added benchmarking of SFQ qdisc.

11 years agodoc: Description of an experiment of setting SO_PRIORITY parameter.
Rostislav Lisovy [Mon, 10 Oct 2011 13:07:21 +0000 (15:07 +0200)]
doc: Description of an experiment of setting SO_PRIORITY parameter.

11 years agoExpanded document describing vcan experiment.
Rostislav Lisovy [Fri, 7 Oct 2011 09:46:54 +0000 (11:46 +0200)]
Expanded document describing vcan experiment.

11 years agodoc: Added document showing capabilities of vcan.
Rostislav Lisovy [Fri, 7 Oct 2011 09:13:44 +0000 (11:13 +0200)]
doc: Added document showing capabilities of vcan.

11 years agoConfiguration scripts improvements.
Rostislav Lisovy [Fri, 7 Oct 2011 09:09:55 +0000 (11:09 +0200)]
Configuration scripts improvements.

11 years agoCorrection in can filter name.
Rostislav Lisovy [Fri, 7 Oct 2011 08:51:08 +0000 (10:51 +0200)]
Correction in can filter name.

11 years agoMuch more renaming from 'canprio' to 'can'.
Rostislav Lisovy [Thu, 6 Oct 2011 13:16:00 +0000 (15:16 +0200)]
Much more renaming from 'canprio' to 'can'.

11 years agof_canprio.c deleted, due to the renaming to f_can.c.
Rostislav Lisovy [Wed, 5 Oct 2011 14:56:28 +0000 (16:56 +0200)]
f_canprio.c deleted, due to the renaming to f_can.c.

11 years ago'canprio' renamed to 'can'.
Rostislav Lisovy [Wed, 5 Oct 2011 14:53:29 +0000 (16:53 +0200)]
'canprio' renamed to 'can'.

11 years agoWorking script (on x86) for setting u32 filter.
Rostislav Lisovy [Wed, 5 Oct 2011 14:32:32 +0000 (16:32 +0200)]
Working script (on x86) for setting u32 filter.

11 years agoMinor coding stule fixes.
Rostislav Lisovy [Wed, 5 Oct 2011 14:31:36 +0000 (16:31 +0200)]
Minor coding stule fixes.

11 years agoAdded script for benchmarking prio qdisc with different (1..380) number of filter...
Rostislav Lisovy [Thu, 29 Sep 2011 16:22:12 +0000 (18:22 +0200)]
Added script for benchmarking prio qdisc with different (1..380) number of filter rules.

11 years agodoc: added simple example for SFQ.
Rostislav Lisovy [Fri, 23 Sep 2011 10:58:23 +0000 (12:58 +0200)]
doc: added simple example for SFQ.

11 years agoAdded experiment result showing dequeuing from SFQ qdisc in round-robin manner (frame...
Rostislav Lisovy [Mon, 19 Sep 2011 15:57:17 +0000 (17:57 +0200)]
Added experiment result showing dequeuing from SFQ qdisc in round-robin manner (frames are sent from 3 different sockets).

11 years agoNote on blocking/nonblocking behaviour of CAN socket with some experiments.
Rostislav Lisovy [Mon, 19 Sep 2011 15:49:52 +0000 (17:49 +0200)]
Note on blocking/nonblocking behaviour of CAN socket with some experiments.

11 years agoUpgraded script for setting u32 clasifier. In basic test worked correctly.
Rostislav Lisovy [Mon, 19 Sep 2011 15:45:19 +0000 (17:45 +0200)]
Upgraded script for setting u32 clasifier. In basic test worked correctly.

11 years agoSlightly upgraded ftrace benchmark script.
Rostislav Lisovy [Wed, 7 Sep 2011 13:49:27 +0000 (15:49 +0200)]
Slightly upgraded ftrace benchmark script.

11 years agoAdded stack traces for better understanding of invocation of functions related to...
Rostislav Lisovy [Wed, 7 Sep 2011 11:59:25 +0000 (13:59 +0200)]
Added stack traces for better understanding of invocation of functions related to canprio filter.

11 years agoAdded basic limitation for number of rules per filter.
Rostislav Lisovy [Wed, 7 Sep 2011 11:55:52 +0000 (13:55 +0200)]
Added basic limitation for number of rules per filter.

11 years agoAdded simple ftrace benchmark.
Rostislav Lisovy [Tue, 6 Sep 2011 14:39:21 +0000 (16:39 +0200)]
Added simple ftrace benchmark.

11 years agoExamples and scripts changed to use new command syntax of canprio filter.
Rostislav Lisovy [Mon, 5 Sep 2011 10:37:38 +0000 (12:37 +0200)]
Examples and scripts changed to use new command syntax of canprio filter.

11 years agotc: rework & simplify canprio cmdline args
Oliver Hartkopp [Sat, 3 Sep 2011 09:21:14 +0000 (11:21 +0200)]
tc: rework & simplify canprio cmdline args

Rework & simplify canprio cmdline args.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
11 years agodoc: Update sfq desc
Michal Sojka [Fri, 2 Sep 2011 13:38:56 +0000 (15:38 +0200)]
doc: Update sfq desc

11 years agoMinor changes in qdisc examples.
Rostislav Lisovy [Fri, 2 Sep 2011 09:32:59 +0000 (11:32 +0200)]
Minor changes in qdisc examples.

11 years agoDoc updates
Michal Sojka [Thu, 1 Sep 2011 22:57:49 +0000 (00:57 +0200)]
Doc updates

feel free to remove them if you do not like them.

11 years agoAdded info about HTB.
Rostislav Lisovy [Thu, 1 Sep 2011 13:01:13 +0000 (15:01 +0200)]
Added info about HTB.

11 years agoAdded examples for creating HTB qdiscs.
Rostislav Lisovy [Wed, 31 Aug 2011 16:38:38 +0000 (18:38 +0200)]
Added examples for creating HTB qdiscs.

11 years agoCreated document containing basic description of suitable qdiscs.
Rostislav Lisovy [Tue, 30 Aug 2011 15:15:15 +0000 (17:15 +0200)]
Created document containing basic description of suitable qdiscs.

11 years agoAdded some examples of how to create qdiscs.
Rostislav Lisovy [Tue, 30 Aug 2011 15:11:05 +0000 (17:11 +0200)]
Added some examples of how to create qdiscs.

11 years agoAdded some more information to qdisc review.
Rostislav Lisovy [Tue, 30 Aug 2011 13:23:13 +0000 (15:23 +0200)]
Added some more information to qdisc review.

11 years agoBasic document describing functionality of available qdiscs.
Rostislav Lisovy [Tue, 30 Aug 2011 10:57:06 +0000 (12:57 +0200)]
Basic document describing functionality of available qdiscs.

11 years agoAdded some more example commands to Setcanprio script.
Rostislav Lisovy [Thu, 25 Aug 2011 14:21:57 +0000 (16:21 +0200)]
Added some more example commands to Setcanprio script.

11 years ago'tc filter show' seems to work correctly. Fixed setting of EFF_FLAG not only for...
Rostislav Lisovy [Mon, 22 Aug 2011 15:53:00 +0000 (17:53 +0200)]
'tc filter show' seems to work correctly. Fixed setting of EFF_FLAG not only for can_id but also for can_mask.

11 years agoCanprio-specific 'struct canprio_rule' changed to 'struct can_filter' from linux...
Rostislav Lisovy [Mon, 22 Aug 2011 10:51:56 +0000 (12:51 +0200)]
Canprio-specific 'struct canprio_rule' changed to 'struct can_filter' from linux/can.h

11 years agoScript setcanprio.sh improved. Added example of how to change an existing filter.
Rostislav Lisovy [Fri, 19 Aug 2011 14:19:46 +0000 (16:19 +0200)]
Script setcanprio.sh improved. Added example of how to change an existing filter.

11 years agoBasic improvements to make 'tc filter show' command work.
Rostislav Lisovy [Fri, 19 Aug 2011 14:17:04 +0000 (16:17 +0200)]
Basic improvements to make 'tc filter show' command work.

11 years agoAdded license header.
Rostislav Lisovy [Thu, 18 Aug 2011 19:55:33 +0000 (21:55 +0200)]
Added license header.

11 years agoFully implemented canprio_print_opt() function. Not sure if 100% correct (I don't...
Rostislav Lisovy [Thu, 18 Aug 2011 13:38:29 +0000 (15:38 +0200)]
Fully implemented canprio_print_opt() function. Not sure if 100% correct (I don't know how to call the function to verify the output).

11 years agoInstead of "match" keyword, there is "matchid" (for SFF) and "matcheid" (for EFF).
Rostislav Lisovy [Thu, 18 Aug 2011 12:32:24 +0000 (14:32 +0200)]
Instead of "match" keyword, there is "matchid" (for SFF) and "matcheid" (for EFF).

11 years agoAdded simple script for settin u32 filter.
Rostislav Lisovy [Tue, 16 Aug 2011 17:10:57 +0000 (19:10 +0200)]
Added simple script for settin u32 filter.

11 years agoIt is possible to pass multiple rules for one instance of a filter.
Rostislav Lisovy [Wed, 10 Aug 2011 09:31:00 +0000 (11:31 +0200)]
It is possible to pass multiple rules for one instance of a filter.

11 years agoMasking of Can ID is now possible.
Rostislav Lisovy [Tue, 9 Aug 2011 09:48:56 +0000 (11:48 +0200)]
Masking of Can ID is now possible.

11 years agoBasic script for creating Prio qdisc with Canprio clasifier.
Rostislav Lisovy [Mon, 8 Aug 2011 11:27:08 +0000 (13:27 +0200)]
Basic script for creating Prio qdisc with Canprio clasifier.

11 years agoSeems to work correctly. Is able to pass one Can ID to the kernel side. Is able of...
Rostislav Lisovy [Fri, 5 Aug 2011 15:45:13 +0000 (17:45 +0200)]
Seems to work correctly. Is able to pass one Can ID to the kernel side. Is able of parsing commands like <tt>tc filter add dev can0 parent 1:0 prio 1 canprio match 0x123 flowid 1:1</tt>

11 years agoBasic skeleton of CANPRIO filter userspace interface. Compilable. Seems not to crash.
Rostislav Lisovy [Wed, 3 Aug 2011 13:54:53 +0000 (15:54 +0200)]
Basic skeleton of CANPRIO filter userspace interface. Compilable. Seems not to crash.

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>