1. 07 Nov, 2014 1 commit
  2. 02 Nov, 2014 3 commits
    • Stephen Hemminger's avatar
      ip: add iec formatted option and cleanup code · 1e264abc
      Stephen Hemminger authored
      Add a new -iec option in addition to -human.
      Cleanup code so the formatting of numbers is done in one function,
      not 2 ways and 2 sizes.
      1e264abc
    • Christian Hesse's avatar
      ip-link: add switch to show human readable output · b68d9837
      Christian Hesse authored
      Byte and packet count can increase to really big numbers. This adds a
      switch to show human readable output.
      
      4: wl: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
          link/ether 00:de:ad:be:ee:ef brd ff:ff:ff:ff:ff:ff
          RX: bytes  packets  errors  dropped overrun mcast
          1523846973 3969051  0       0       0       0
          TX: bytes  packets  errors  dropped carrier collsns
          8710088361 6077735  0       0       0       0
      4: wl: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
          link/ether 00:de:ad:be:ee:ef brd ff:ff:ff:ff:ff:ff
          RX: bytes  packets  errors  dropped overrun mcast
          1.5G       3.9M     0       0       0       0
          TX: bytes  packets  errors  dropped carrier collsns
          8.7G       6.0M     0       0       0       0
      b68d9837
    • Alexey Andriyanov's avatar
      iproute2: ip6_tunnel mode bugfixes: any,vti6 · a0638e18
      Alexey Andriyanov authored
      - any ipv6 tunnel mode (proto == 0) could not be set
      due to incomplete set of cases in do_add, do_del.
      - vti6 logic was inverted: it was using "ip6_vti0" basedev
      UNLESS mode is set to vti6.
      
      We don't need a switch by p.proto in do_add()/do_del(): it
      already exists in parse_args(). So if parse_args() call
      was successful, no need to check tunnel mode again.
      Signed-off-by: default avatarAlexey Andriyanov <alan@al-an.info>
      a0638e18
  3. 30 Oct, 2014 12 commits
  4. 09 Oct, 2014 15 commits
  5. 29 Sep, 2014 4 commits
    • vadimk's avatar
      ip netns: Create /var/run/netns dir when do 'ip netns monitor' · c1cbb18a
      vadimk authored
      netns monitor fails when there is no /var/run/netns dir
      which might be created later while monitoring.
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      c1cbb18a
    • vadimk's avatar
      tests: Fix problem with test running · 9ecff68d
      vadimk authored
      Tests were not allowed to be ran, the following
      issues were fixed:
          - creating the results folder before test running
          - sudo $PREFIX moved before variables definition which
              allow to pass them through the sudo to test script.
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      9ecff68d
    • Jamal Hadi Salim's avatar
      rsvp classifier support for multiple actions · 10f5a375
      Jamal Hadi Salim authored
      Example setup:
      
      sudo tc qdisc del dev eth0 root handle 1:0 prio
      sudo tc qdisc add dev eth0 root handle 1:0 prio
      
      sudo tc filter add dev eth0 pref 10 proto ip parent 1:0 \
      rsvp session 10.0.0.1 ipproto icmp \
      classid 1:1  \
      action police rate 1kbit burst 90k pipe \
      action ok
      
      tc -s filter show dev eth0 parent 1:0
      
      filter protocol ip pref 10 rsvp
      filter protocol ip pref 10 rsvp fh 0x0001100a flowid 1:1 session
      10.0.0.1 ipproto icmp
              action order 1:  police 0x5 rate 1Kbit burst 23440b mtu 2Kb
      action pipe overhead 0b
      ref 1 bind 1
              Action statistics:
              Sent 98000 bytes 1000 pkt (dropped 0, overlimits 761 requeues 0)
              backlog 0b 0p requeues 0
      
              action order 2: gact action pass
               random type none pass val 0
               index 2 ref 1 bind 1 installed 60 sec used 3 sec
              Action statistics:
              Sent 74578 bytes 761 pkt (dropped 0, overlimits 0 requeues 0)
              backlog 0b 0p requeues 0
      Signed-off-by: default avatarJamal Hadi Salim <jhs@mojatatu.com>
      Tested-by: default avatarJohn Fastabend <john.r.fastabend@intel.com>
      10f5a375
    • Jamal Hadi Salim's avatar
      actions: BugFix action stats to display with -s · 954de6c7
      Jamal Hadi Salim authored
      Was broken by commit 288abf51
      Lets not be too clever and have a separate call to print flushed
      actions info.
      
      Broken looks like:
      root@moja-1:~# tc actions add  action drop index 4
      root@moja-1:~# tc -s actions ls action gact
      
          action order 0: gact action drop
           random type none pass val 0
           index 4 ref 1 bind 0 installed 9 sec used 4 sec
      
      The fixed version looks like:
          action order 0: gact action drop
           random type none pass val 0
           index 4 ref 1 bind 0 installed 9 sec used 4 sec
               Sent 108948 bytes 1297 pkts (dropped 1297, overlimits 0)
      Signed-off-by: default avatarJamal Hadi Salim <jhs@mojatatu.com>
      954de6c7
  6. 28 Sep, 2014 5 commits