1. 23 Oct, 2015 20 commits
  2. 19 Oct, 2015 5 commits
  3. 16 Oct, 2015 7 commits
  4. 12 Oct, 2015 8 commits
    • Stephen Hemminger's avatar
      Merge branch 'master' into net-next · d2ccb70a
      Stephen Hemminger authored
      d2ccb70a
    • willy tarreau's avatar
      fix "ss -p" segfaults · 0ee9052f
      willy tarreau authored
      I've updated Jose's patch to make it slightly simpler (eg: calloc instead
      of malloc+memset), and ported it to 4.2.0 which requires it as well, and
      attached it to this e-mail.
      
      I can confirm that with this patch 4.1.1 doesn't segfault on me anymore.
      The commit message should be reworked I guess though everything's in it
      and I didn't want to modify his description.
      
      Can it be merged as-is or should I reword the commit message and reference
      Jose as the fix reporter ? We should not let this bug live forever.
      
      From: "j.ps@openmailbox.org" <j.ps@openmailbox.org>
      
      Essentially all that is needed to get rid of this issue is the
      addition of:
      
          memset(u, 0, sizeof(*u));
      
      after:
      
          if (!(u = malloc(sizeof(*u))))
                  break;
      
      Also patched some other situations (strcpy and sprintf uses) that
      potentially produce the same results.
      Signed-off-by: default avatarJose P Santos <j.ps@openmailbox.org>
      
      [ wt: made Jose's patch slightly simpler, all credits to him for the diag ]
      Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
      0ee9052f
    • Phil Sutter's avatar
      a60223bc
    • Phil Sutter's avatar
      ip: macvlan: support MACVLAN_FLAG_NOPROMISC flag · 3cf8ba59
      Phil Sutter authored
      This flag is allowed for devices in passthru mode to prevent forcing the
      underlying interface into promiscuous mode.
      Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
      3cf8ba59
    • Phil Sutter's avatar
      ip: link: consolidate macvlan and macvtap · 541f1b3e
      Phil Sutter authored
      After eliminating the minor differences in both files which existed
      solely because features/fixes were applied to only one of them and not
      the other, the remaining differences were in function naming and error
      messages. The latter is addressed by using the 'id' field of struct
      link_util.
      
      Fold both files into one in order to share common code and eliminate the
      chance of having fixes/enhancements applied to only one of them.
      Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
      541f1b3e
    • Daniel Borkmann's avatar
      m_bpf: don't require default opcode on ebpf actions · 343dc908
      Daniel Borkmann authored
      After the patch, the most minimal command to load an eBPF action
      for late binding with auto index selection through tc is:
      
        tc actions add action bpf obj prog.o
      
      We already set TC_ACT_PIPE in tc as default opcode, so if nothing
      further has been specified, just use it. Also, allow "ok" next to
      "pass" for matching cmdline on TC_ACT_OK.
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      343dc908
    • David Ahern's avatar
      ip neigh: Add ifindex to request when filtering dumps by device · b8c75324
      David Ahern authored
      Add ifindex to dump request when filtering by device. If the kernel
      supports it adding the index to the request limits the amount of data
      the kernel pushes to userpsace.
      
      The feature exists in userspace already, so no need to warn the user
      if kernel side support does not exist. Using the kernel side filter
      makes the request more efficient.
      Signed-off-by: default avatarDavid Ahern <dsa@cumulusnetworks.com>
      b8c75324
    • Daniel Borkmann's avatar
      f_bpf: allow for optional classid and add flags · faa8a463
      Daniel Borkmann authored
      When having optional classid, most minimal command can be sth
      like:
      
        tc filter add dev foo parent X: bpf obj prog.o
      
      Therefore, adapt the code so that a next argument will not be
      enforced as the case currently.
      
      Also, minor cleanup on the classid, where we should rather
      have used addattr32(), and add flags for exec configuration,
      for example (using short notation):
      
        tc filter add dev foo parent X: bpf da obj prog.o
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      Acked-by: default avatarAlexei Starovoitov <ast@plumgrid.com>
      faa8a463