1. 20 Sep, 2013 1 commit
    • Eric Dumazet's avatar
      pkt_sched: fq: Fair Queue packet scheduler · bc113e46
      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: default avatarEric Dumazet <edumazet@google.com>
      bc113e46
  2. 03 Sep, 2013 6 commits
    • Stephen Hemminger's avatar
      Update to 3.11 net-next kernel headers · c92716d1
      Stephen Hemminger authored
      c92716d1
    • Stephen Hemminger's avatar
      c5e3ee2c
    • Stephen Hemminger's avatar
      v3.11.0 · d3c77c46
      Stephen Hemminger authored
      d3c77c46
    • Jesper Dangaard Brouer's avatar
      linklayer interface between kernel and tc/userspace · 3e92ff52
      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: default avatarJesper Dangaard Brouer <brouer@redhat.com>
      3e92ff52
    • Nicolas Dichtel's avatar
      ipnetns: fix ip batch mode when using 'netns exec' · 3c61c01a
      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: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
      3c61c01a
    • Stephen Hemminger's avatar
      Update kernel headers to 3.11 · efa4dde4
      Stephen Hemminger authored
      Last minute addition to pkt_sched.h
      efa4dde4
  3. 31 Aug, 2013 5 commits
  4. 29 Aug, 2013 1 commit
  5. 26 Aug, 2013 1 commit
  6. 19 Aug, 2013 1 commit
  7. 04 Aug, 2013 8 commits
  8. 01 Aug, 2013 1 commit
    • Stephen Hemminger's avatar
      Remove -Werror · 3140e9a3
      Stephen Hemminger authored
      -Werror just doesn't work because it changes too much
      between compiler versions.
      3140e9a3
  9. 26 Jul, 2013 3 commits
  10. 16 Jul, 2013 4 commits
  11. 13 Jul, 2013 1 commit
  12. 12 Jul, 2013 3 commits
  13. 09 Jul, 2013 5 commits
    • Thomas Richter's avatar
      iproute2 vxlan documentation update for ip command · 2816a568
      Thomas Richter authored
      The ip link command line help and the ip-link.8.in
      man page are outdated in regards to the vxlan support.
      The patch updates both the command line help for the
      ip command and its man page.
      Signed-off-by: default avatarThomas Richter <tmricht@linux.vnet.ibm.com>
      2816a568
    • Thomas Richter's avatar
      iproute2 vxlan documentation update for bridge command · 7578ae88
      Thomas Richter authored
      The bridge fdb command line help and the bridge.8
      man page are outdated in regards to the vxlan support.
      The patch updates both the command line help for the
      bridge command and its man page.
      Signed-off-by: default avatarThomas Richter <tmricht@linux.vnet.ibm.com>
      7578ae88
    • JunweiZhang's avatar
      ipbatch: fix use of 'ip netns exec' · 95592b47
      JunweiZhang authored
      execvp() does not return when the command succeed, hence all commands in the
      batch file after the line 'ip netns exec' are not executed.
      
      Let's fork before calling execvp() if batch mode is used..
      
      Example:
      $ cat test.batch
      netns add netns1
      netns exec netns1 ip l
      netns
      $ ip -b test.batch
      1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN mode DEFAULT
          link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
      2: sit0: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT
          link/sit 0.0.0.0 brd 0.0.0.0
      
      All command after 'netns exec' are never executed.
      
      With the patch:
      $ ip -b test.batch
      1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN mode DEFAULT
          link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
      2: sit0: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT
          link/sit 0.0.0.0 brd 0.0.0.0
      netns1
      
      Now, existing netns are displayed.
      Signed-off-by: default avatarJunweiZhang <junwei.zhang@6wind.com>
      Signed-off-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
      95592b47
    • Amerigo Wang's avatar
      iptunnel: check SIT_ISATAP flag only for SIT tunnel · 86c00faa
      Amerigo Wang authored
      Without patch, I got:
      
      	# ./ip/ip tunnel show
      	ip_vti0: ioctl 89f4 failed: Invalid argument
      	ip_vti0: ip/ip  remote any  local any  ttl inherit  nopmtudisc key 0
      
      this is due to VTI_ISVTI has the same numeric value with SIT_ISATAP,
      but only sit tunnel has SIOCGETPRL, therefore it should check for SIT
      tunnel first.
      
      Cc: Stephen Hemminger <stephen@networkplumber.org>
      Signed-off-by: default avatarCong Wang <amwang@redhat.com>
      86c00faa
    • esr@thyrsus.com's avatar
      tc-stab.8: Fix synopsis errors, an invalid escape, and incorrect English usge. · 11eb9396
      esr@thyrsus.com authored
      The command synopsis is regularized and part of it split off into an
      OPTIONS section.  This allows the page to lift to XML-DocBook.
      
      An invalid \p escape was removed.
      
      This page was written by someone who didn't understand the use of
      definite and indefinite articles in English, nor its punctuation rules.
      I've fixed these mistakes, and some glitches in punctuation and
      capitalization.
      11eb9396