- 30 Oct, 2013 5 commits
-
-
Stephen Hemminger authored
Lastest from net-next
-
Stephen Hemminger authored
Conflicts: tc/q_fq.c
-
Nigel Kukard authored
There are two global variables in tc/tc_class.c: __u32 filter_qdisc; __u32 filter_classid; These are not re-initialized for each line received in -batch mode: class show dev eth0 parent 1: classid 1:1 class show dev eth0 parent 1: classid 1:1 Error: duplicate "classid": "1:1" is the second value. This patch fixes the issue by initializing the two globals when we enter print_class(). Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
-
WANG Cong authored
The kernel already supports it, so add the support to iproute2 as well. Cc: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
-
Stephen Hemminger authored
-
- 27 Oct, 2013 2 commits
-
-
Stephen Hemminger authored
Alexey had htb2 as name for version in ancient code.
-
Stephen Hemminger authored
Some qdisc like htb want the parse_qopt to be called even if no options present. Fixes regression caused by: e9e78b0d is the first bad commit commit e9e78b0d Author: Stephen Hemminger <stephen@networkplumber.org> Date: Mon Aug 26 08:41:19 2013 -0700 tc: allow qdisc without options
-
- 09 Oct, 2013 2 commits
-
-
Nicolas Dichtel authored
macvtap and vti were missing. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
-
Christophe Gouault authored
ip xfrm considers that the user-defined mark is "any" as soon as (mark.v & mark.m == 0), which prevents from specifying non-wildcard marks that include the value 0 (typically 0/0xffffffff). Yet, matching exactly mark 0 is useful for instance to separate vti policies from global policies. Always configure the user mark if mark.m != 0. Signed-off-by: Christophe Gouault <christophe.gouault@6wind.com>
-
- 04 Oct, 2013 1 commit
-
-
xeb@mail.ru authored
Update man pages with ip6gre info. Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
-
- 01 Oct, 2013 7 commits
-
-
Stephen Hemminger authored
-
xeb@mail.ru authored
GRE over IPv6 tunnel support. Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
-
Jamal Hadi Salim authored
If you taketh you giveth. I Went the LinuxWay and copied this for m_simple.c and noticed this one typo (I wonder where it came from?;->). Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
-
Jamal Hadi Salim authored
Simple action is already in the kernel for years now as an example. This complements it with user space control. Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
-
Stephen Hemminger authored
-
Fan Du authored
This bug is reported from below link: https://bugzilla.redhat.com/show_bug.cgi?id=982761 An simplified command from its original reproducing method in bugzilla: ip xfrm state add src 10.0.0.2 dst 10.0.0.1 proto ah spi 0x12345678 auth md5 12 will cause below spew from gcc. Reported-by: Sohny Thomas <sthomas@linux.vnet.ibm.com>
-
Petr Písař authored
The `bridge monitor file FILENAME' reads dumped netlink messages from a file. But it forgot to close the file after using it. This patch fixes it. Signed-off-by: Petr Písař <ppisar@redhat.com>
-
- 24 Sep, 2013 5 commits
-
-
Stephen Hemminger authored
New json option
-
Stephen Hemminger authored
-
Stephen Hemminger authored
-
Stephen Hemminger authored
Also add long options
-
Stephen Hemminger authored
-
- 23 Sep, 2013 2 commits
-
-
Stephen Hemminger authored
-
Stephen Hemminger authored
-
- 20 Sep, 2013 4 commits
-
-
Eric Dumazet authored
TCA_HTB_DIRECT_QLEN attribute is supported since linux-3.10 HTB classes use an internal pfifo queue, which limit was not reported by tc, and value inherited from device tx_queue_len at setup time. With this patch, tc displays the value and can change it. Signed-off-by: Eric Dumazet <edumazet@google.com>
-
Eric Dumazet authored
Since linux-3.11, rate estimator can provide TCA_STATS_RATE_EST64 when rate (bytes per second) is above 2^32 (~34 Mbits) Change tc to use this attribute for high rates. Signed-off-by: Eric Dumazet <edumazet@google.com>
-
Petr Písař authored
This augments bridge(8) manual page with `bridge mdb' and `bridge monitor mdb' commands which have been added recently. Signed-off-by: Petr Písař <ppisar@redhat.com>
-
Eric Dumazet authored
Support for FQ packet scheduler $ tc qd add dev eth0 root fq help Usage: ... fq [ limit PACKETS ] [ flow_limit PACKETS ] [ quantum BYTES ] [ initial_quantum BYTES ] [ maxrate RATE ] [ buckets NUMBER ] [ [no]pacing ] $ tc -s -d qd qdisc fq 8002: dev eth0 root refcnt 32 limit 10000p flow_limit 100p buckets 256 quantum 3028 initial_quantum 15140 Sent 216532416 bytes 148395 pkt (dropped 0, overlimits 0 requeues 14) backlog 0b 0p requeues 14 511 flows (511 inactive, 0 throttled) 110 gc, 0 highprio, 0 retrans, 1143 throttled, 0 flows_plimit limit : max number of packets on whole Qdisc (default 10000) flow_limit : max number of packets per flow (default 100) quantum : the max deficit per RR round (default is 2 MTU) initial_quantum : initial credit for new flows (default is 10 MTU) maxrate : max per flow rate (default : unlimited) buckets : number of RB trees (default : 1024) in hash table. (consumes 8 bytes per bucket) [no]pacing : disable/enable pacing (default is enable) Usage : tc qdisc add dev $ETH root fq tc qdisc del dev $ETH root 2>/dev/null tc qdisc add dev $ETH root handle 1: mq for i in `seq 1 4` do tc qdisc add dev $ETH parent 1:$i est 1sec 4sec fq done Signed-off-by: Eric Dumazet <edumazet@google.com>
-
- 13 Sep, 2013 1 commit
-
-
Stephen Hemminger authored
New command line flag to output statistics in JSON format. In our envrionment, we have scripts that parse output of commands. It is better to use a format supported by existing parsers.
-
- 03 Sep, 2013 7 commits
-
-
Eric Dumazet authored
Support for FQ packet scheduler $ tc qd add dev eth0 root fq help Usage: ... fq [ limit PACKETS ] [ flow_limit PACKETS ] [ quantum BYTES ] [ initial_quantum BYTES ] [ maxrate RATE ] [ buckets NUMBER ] [ [no]pacing ] $ tc -s -d qd qdisc fq 8002: dev eth0 root refcnt 32 limit 10000p flow_limit 100p buckets 256 quantum 3028 initial_quantum 15140 Sent 216532416 bytes 148395 pkt (dropped 0, overlimits 0 requeues 14) backlog 0b 0p requeues 14 511 flows (511 inactive, 0 throttled) 110 gc, 0 highprio, 0 retrans, 1143 throttled, 0 flows_plimit limit : max number of packets on whole Qdisc (default 10000) flow_limit : max number of packets per flow (default 100) quantum : the max deficit per RR round (default is 2 MTU) initial_quantum : initial credit for new flows (default is 10 MTU) maxrate : max per flow rate (default : unlimited) buckets : number of RB trees (default : 1024) in hash table. (consumes 8 bytes per bucket) [no]pacing : disable/enable pacing (default is enable) Usage : tc qdisc add dev $ETH root fq tc qdisc del dev $ETH root 2>/dev/null tc qdisc add dev $ETH root handle 1: mq for i in `seq 1 4` do tc qdisc add dev $ETH parent 1:$i est 1sec 4sec fq done Signed-off-by: Eric Dumazet <edumazet@google.com>
-
Stephen Hemminger authored
-
Stephen Hemminger authored
-
Stephen Hemminger authored
-
Jesper Dangaard Brouer authored
This iproute2 tc patch is connected to the kernel - commit 8a8e3d84b17 (net_sched: restore "linklayer atm" handling) The rate table calculated by tc, have gotten replaced in the kernel and is no-longer used for lookups. This happened in kernel release v3.8 caused by kernel - commit 56b765b79 ("htb: improved accuracy at high rates"). This change unfortunately caused breakage of tc overhead and linklayer parameters. Kernel overhead handling got fixed in kernel v3.10 by - commit 01cb71d2d47 (net_sched: restore "overhead xxx" handling) Kernel linklayer handling got fixed in kernel v3.11 by - commit 8a8e3d84b17 (net_sched: restore "linklayer atm" handling) The linklayer fix introduced a struct change, that allow the linklayer attribute to be transferred between tc and kernel. This patch make use of this linklayer attribute. The linklayer setting is transfer to the kernel. And linklayer setting received from the kernel is printed with a prefixed "linklayer" when listing current configuration. The default TC_LINKLAYER_ETHERNET is only printed in detailed output mode. Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
-
Nicolas Dichtel authored
Since commit a05f6511, ip batch mode is broken when using 'netns exec' cmd. When WIFEXITED() returns true, it means that the child exited normally, hence we must not call exit() but just returns the status. If we call exit, the next commands in the file file are not executed. If WIFEXITED() returns false, we can call exit() because it means that the child failed. This patch partially reverts commit a05f6511. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
-
Stephen Hemminger authored
Last minute addition to pkt_sched.h
-
- 31 Aug, 2013 4 commits
-
-
Thomas Egerer authored
The git-commit dc8867d0, that added support for displaying the extra-flags of a state, introduced a potential segfault. Trying to show a state without the extra-flag attribute and show_stats enabled, would cause the NULL pointer in tb[XFRMA_SA_EXTRA_FLAGS] to be dereferenced. Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
-
Lutz Jaenicke authored
The mode information is contained in IFLA_MACVLAN_MODE instead of IFLA_VLAN_ID (both evaluating to "1" in their enums). Signed-off-by: Lutz Jaenicke <ljaenicke@innominate.com>
-
Richard Godbee authored
In SYNOPSIS section: - Add 'reordering' - Add missing '[' before 'quickack' Signed-off-by: Richard Godbee <richard@godbee.net>
-
Richard Godbee authored
Signed-off-by: Richard Godbee <richard@godbee.net>
-