1. 10 Feb, 2015 1 commit
  2. 05 Feb, 2015 15 commits
    • Tom Herbert's avatar
      iproute: Descriptions of fou and gue options in ip-link man pages · 90f1df71
      Tom Herbert authored
      Add section for additional arguments to GRE, IPIP, and SIT types
      that are related to Foo-over-UDP and Generic UDP Encapsulation.
      Also, added an example GUE configuration in the examples section.
      Signed-off-by: default avatarTom Herbert <therbert@google.com>
      90f1df71
    • Tom Herbert's avatar
      ip link: Add support for remote checksum offload to IP tunnels · 858dbb20
      Tom Herbert authored
      This patch adds support to remote checksum checksum offload
      confinguration for IPIP, SIT, and GRE tunnels. This patch
      adds a [no]encap-remcsum to ip link command which applicable
      when configured tunnels that use GUE.
      
      http://tools.ietf.org/html/draft-herbert-remotecsumoffload-00
      
      Example:
      
      ip link add name tun1 type gre remote 192.168.1.1 local 192.168.1.2 \
         ttl 225 encap fou encap-sport auto encap-dport 7777 encap-csum \
         encap-remcsum
      
      This would create an GRE tunnel in GUE encapsulation where the source
      port is automatically selected (based on hash of inner packet),
      checksums in the encapsulating UDP header are enabled (needed.for
      remote checksum offload), and remote checksum ffload is configured to
      be used on the tunnel (affects TX side).
      Signed-off-by: default avatarTom Herbert <therbert@google.com>
      858dbb20
    • Oliver Hartkopp's avatar
      can: Add support for CAN FD non-ISO feature · 82a307e8
      Oliver Hartkopp authored
      This patch makes CAN_CTRLMODE_FD_NON_ISO netlink feature configurable.
      
      During the CAN FD standardization process within the ISO it turned out that
      the failure detection capability has to be improved.
      
      The CAN in Automation organization (CiA) defined the already implemented CAN
      FD controllers as 'non-ISO' and the upcoming improved CAN FD controllers as
      'ISO' compliant. See at http://www.can-cia.com/index.php?id=1937
      
      Starting with the - currently non-ISO - driver for M_CAN v3.0.1 introduced in
      Linux 3.18 this bit needs to be propagated to userspace. In future drivers this
      bit will become configurable depending on the CAN FD controllers capabilities.
      Signed-off-by: default avatarOliver Hartkopp <socketcan@hartkopp.net>
      82a307e8
    • Andreas Henriksson's avatar
      iproute2/ip: fix up filter when printing addresses · 5e5055bc
      Andreas Henriksson authored
      "ip addr show up" would exclude the interface (link), but include the
      addresses of down interfaces (which looked like they where indented
      under a different interface). This fixes the filtering.
      
      For a full example see the original bug report at:
      http://bugs.debian.org/776040Reported-by: default avatarPaul Slootman <paul@debian.org>
      CC: 776040@bugs.debian.org
      Signed-off-by: default avatarAndreas Henriksson <andreas@fatal.se>
      5e5055bc
    • Vadim Kochan's avatar
      ip netns: Delete all netns · 33724939
      Vadim Kochan authored
      Allow delete all namespace names by:
      
          $ ip -all netns del
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      33724939
    • Vadim Kochan's avatar
      ip netns: Allow exec on each netns · b13ba03f
      Vadim Kochan authored
      This change allows to exec some cmd on each
      named netns (except default) by specifying '-all' option:
      
          # ip -all netns exec ip link
      
      Each command executes synchronously.
      
      Exit status is not considered, so there might be a case
      that some CMD can fail on some netns but success on the other.
      
      EXAMPLES:
      
      1) Show link info on all netns:
      
      $ ip -all netns exec ip link
      
      netns: test_net
      1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN mode DEFAULT group default
          link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
      4: tap0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 500
          link/ether 1a:19:6f:25:eb:85 brd ff:ff:ff:ff:ff:ff
      
      netns: home0
      1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN mode DEFAULT group default
          link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
      4: tap0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 500
          link/ether ea:1a:59:40:d3:29 brd ff:ff:ff:ff:ff:ff
      
      netns: lan0
      1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN mode DEFAULT group default
          link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
      4: tap0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 500
          link/ether ce:49:d5:46:81:ea brd ff:ff:ff:ff:ff:ff
      
      2) Set UP tap0 device for the all netns:
      
      $ ip -all netns exec ip link set dev tap0 up
      
      netns: test_net
      
      netns: home0
      
      netns: lan0
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      b13ba03f
    • Vadim Kochan's avatar
      lib: Exec func on each netns · e998e118
      Vadim Kochan authored
      Added possibility to run some func on each netns.
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      e998e118
    • Stephen Hemminger's avatar
      can: update kernel header · 4c7d75de
      Stephen Hemminger authored
      Sanitized header from upstream 3.20-rc kernel
      4c7d75de
    • Vadim Kochan's avatar
      ss: Unify inet sockets output · 8250bc9f
      Vadim Kochan authored
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      8250bc9f
    • Vadim Kochan's avatar
      ss: Unify meminfo output · db08bdb8
      Vadim Kochan authored
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      db08bdb8
    • Vadim Kochan's avatar
      tests: Add few 'ip link' related tests · 4cec9db0
      Vadim Kochan authored
      Added two tests which checks the following fixed issues:
      
          1) Bug when not possible add new virtual interface via:
      
              $ ip link add dev XXX type
      
             It was fixed a few releases ago.
      
          2) Crash on older kernels when VF rate info does not exist:
      
              $ ip link show
      
             Used dump file from William Dauchy <william@gandi.net>:
                 testsuite/tests/ip/link/dev_wo_vf_rate.nl
      
             So 'ip link show' replaced by 'ip -d monitor file ...' which does
             the same thing.
      
      Also added new func in testsuite/lib/generic.sh to gen new random dev name.
      
      Added 'clean' dependency on running all tests.
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      4cec9db0
    • Vadim Kochan's avatar
      ss: Filter inet dgram sockets with established state by default · f42a4574
      Vadim Kochan authored
      As inet dgram sockets (udp, raw) can call connect(...)  - they
      might be set in ESTABLISHED state. So keep the original behaviour of
      'ss' which filtered them by ESTABLISHED state by default. So:
      
          $ ss -u
      
          or
      
          $ ss -w
      
      Will show only ESTABLISHED UDP sockets by default.
      Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
      f42a4574
    • Nicolas Dichtel's avatar
      lib: fix setns() function when !HAVE_SETNS · 1ff6b16e
      Nicolas Dichtel authored
      When HAVE_SETNS is not set, iproute2 provides a local implementation of this
      function based on __NR_setns.
      This macro is defined in sys/syscall.h, which was not included, thus the local
      implementation always returned -1.
      
      CC: Vadim Kochan <vadim4j@gmail.com>
      Fixes: eb67e449 ("lib: Add netns_switch func for change network namespace")
      Signed-off-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
      1ff6b16e
    • Nicolas Dichtel's avatar
      lib: fix warning in namespace.h · ffff6931
      Nicolas Dichtel authored
      Warning was:
      In file included from bridge.c:16:0:
      ../include/namespace.h:33:12: warning: ‘setns’ defined but not used [-Wunused-function]
      
      CC: Vadim Kochan <vadim4j@gmail.com>
      Fixes: eb67e449 ("lib: Add netns_switch func for change network namespace")
      Signed-off-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
      ffff6931
    • Reese Moore's avatar
      iproute2: ip-link.8.in: Spelling fixes · d36d9d41
      Reese Moore authored
      In the ip-link(8) man page, for the gretap, ip6gre, and ip6gretap types, the
      word tunnel was incorrectly spelled 'tuunel'.
      Signed-off-by: default avatarReese Moore <ram@vt.edu>
      d36d9d41
  3. 14 Jan, 2015 9 commits
  4. 07 Jan, 2015 4 commits
  5. 03 Jan, 2015 1 commit
  6. 01 Jan, 2015 4 commits
  7. 27 Dec, 2014 6 commits