1. 02 Aug, 2010 1 commit
    • Andreas Henriksson's avatar
      tc: make symbols loaded from tc action modules global. · 02833d1b
      Andreas Henriksson authored
      Fixes problems with xtables based MARK target ("ipt" module).
      When tc loads the "ipt" (xt) module it kept the symbols local,
      this made loading of libxtables not find the required struct.
      
      currently ipt/xt is the only tc action module.
      iproute2 never seem to do dlclose.
      hopefully the modules doesn't export more symbols then needed.
      
      In this situation hopefully the RTLD_GLOBAL flag won't hurt us.
      
      I've been using this patch in the Debian package of iproute for
      the last 3 weeks and noone has complained.
      ( This fixes http://bugs.debian.org/584898 )
      Signed-off-by: default avatarAndreas Henriksson <andreas@fatal.se>
      02833d1b
  2. 01 Aug, 2010 2 commits
    • Steve Fink's avatar
      ss -p is much too slow · fbc0f876
      Steve Fink authored
      > On closer inspection, it appears that ss -p does a quadratic scan. It
      > rescans every entry in /proc/*/fd/* repeatedly (once per listening
      > port? per process? I don't remember what I figured out.)
      >
      > I humbly suggest that this is not a good idea.
      
      Yep, this is junk.  Please give this patch a try:
      
      ss: Avoid quadradic complexity with '-p'
      
      Scan the process list of open sockets once, and store in a hash
      table to be used by subsequent find_user() calls.
      Reported-by: default avatarSteve Fink <sphink@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fbc0f876
    • Mike Frysinger's avatar
      netem: fix installs of dist files · 1a7943bc
      Mike Frysinger authored
      The tc program searches LIBDIR by default for the .dist files, and that
      defaults to /usr/lib.  But the netem subdir has /lib/ hardcoded which
      means the default build+install results in the files not being found.
      
      Further, these are plain text files which are read at runtime, so it
      doesn't make sense to give them executable bits.
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      1a7943bc
  3. 30 Jul, 2010 1 commit
  4. 23 Jul, 2010 9 commits
  5. 09 Jun, 2010 1 commit
  6. 19 May, 2010 5 commits
  7. 18 May, 2010 1 commit
    • Chris Wright's avatar
      iproute2: rework SR-IOV VF support · 3fd86630
      Chris Wright authored
      The kernel interface changed just before 2.6.34 was released.  This brings
      iproute2 in line with the current changes.  The VF portion of setlink is
      comprised of a set of nested attributes.
      
        IFLA_VFINFO_LIST (NESTED)
          IFLA_VF_INFO (NESTED)
            IFLA_VF_MAC
            IFLA_VF_VLAN
            IFLA_VF_TX_RATE
      Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
      3fd86630
  8. 17 May, 2010 2 commits
  9. 13 May, 2010 1 commit
  10. 22 Apr, 2010 2 commits
    • Bart Trojanowski's avatar
      fix build issues with flex ver 2.5 · 608a96c7
      Bart Trojanowski authored
      When building on an old environment, the flex generated
      tc/emp_ematch.lex.c file would not compile.  The error given was:
      
      emp_ematch.lex.c:1686: error: expected ‘;’, ‘,’ or ‘)’ before numeric constant
      
      The emp_ematch.l uses 'str' as a start symbol name, and  flex would create
      a '#define str 1' statement.  This particular version of flex,
      unfortunately, used 'str' as names of string variables in the generated
      parser functions.  This is line 1686 in the generated file:
      
      YY_BUFFER_STATE ematch__scan_string (yyconst char * str )
      
      This patch just substitutes 'str' for 'lexstr' in emp_ematch.l to avoid
      the collision.
      608a96c7
    • Stephen Hemminger's avatar
      Update ip.8 man page to describe route table id values · 4ec1933d
      Stephen Hemminger authored
      2.6 kernel allows 2^32 route tables, but documentation stated only
      255 values were possible.
      4ec1933d
  11. 12 Apr, 2010 2 commits
  12. 30 Mar, 2010 2 commits
  13. 29 Mar, 2010 6 commits
  14. 09 Mar, 2010 1 commit
  15. 04 Mar, 2010 4 commits
    • Stephen Hemminger's avatar
    • Wolfgang Grandegger's avatar
      iproute2: netlink support for bus-error reporting and counters · 8a517946
      Wolfgang Grandegger authored
      This patch uses the new features of the kernel's netlink CAN interface
      making the bus-error reporting configurable and allowing to retrieve
      the CAN TX and RX bus error counters via netlink interface. Here is the
      output of my test session showing how to use them:
      
      # ip link set can0 up type can bitrate 500000 berr-reporting on
      # ip -d -s link show can0
      2: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN qlen 10
          link/can
          can <BERR-REPORTING> state ERROR-PASSIVE (berr-counter tx 128 rx 0) restart-ms 0
                                    CAN bus error counter values ^^^^^^^^^^^
          bitrate 500000 sample-point 0.875
          tq 125 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1
          sja1000: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1
          clock 8000000
          re-started bus-errors arbit-lost error-warn error-pass bus-off
          0          54101      0          1          1          0
          RX: bytes  packets  errors  dropped overrun mcast
          432808     54101    54101   0       0       0
          TX: bytes  packets  errors  dropped carrier collsns
          0          0        0       0       0       0
      
      # ifconfig can0 down
      # ip link set can0 up type can berr-reporting off
      # candump -t d any,0:0,#FFFFFFFF
       (0.000000)  can0  20000004  [8] 00 08 00 00 00 00 60 00   ERRORFRAME
       (0.000474)  can0  20000004  [8] 00 20 00 00 00 00 80 00   ERRORFRAME
                                                         ^^ ^^
      						    \  \___ rxerr
      						     \_____ txerr
      
      Furthermore, the missing support for one-shot mode has been added.
      Signed-off-by: default avatarWolfgang Grandegger <wg@grandegger.com>
      8a517946
    • Jamal Hadi Salim's avatar
      xfrm: add support for SA by mark · c90cda94
      Jamal Hadi Salim authored
      Add support for SA manipulation by mark
      Signed-off-by: default avatarJamal Hadi Salim <hadi@cyberus.ca>
      c90cda94
    • Jamal Hadi Salim's avatar
      xfrm: Introduce xfrm by mark · f6fd52e6
      Jamal Hadi Salim authored
      This patch carries basic infrastructure.
      You need to make sure that the proper include/linux/xfrm.h is included
      for it to compile.
      
      Example:
      f6fd52e6