Skip to content
  1. Oct 23, 2018
  2. Oct 22, 2018
  3. Oct 21, 2018
    • Greg Kroah-Hartman's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 23469de6
      Greg Kroah-Hartman authored
      David writes:
        "Networking:
      
         A few straggler bug fixes:
      
         1) Fix indexing of multi-pass dumps of ipv6 addresses, from David
            Ahern.
      
         2) Revert RCU locking change for bonding netpoll, causes worse
            problems than it solves.
      
         3) pskb_trim_rcsum_slow() doesn't handle odd trim offsets, resulting
            in erroneous bad hw checksum triggers with CHECKSUM_COMPLETE
            devices.  From Dimitris Michailidis.
      
         4) a revert to some neighbour code changes that adjust notifications
            in a way that confuses some apps."
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net:
        Revert "neighbour: force neigh_invalidate when NUD_FAILED update is from admin"
        net/ipv6: Fix index counter for unicast addresses in in6_dump_addrs
        net: fix pskb_trim_rcsum_slow() with odd trim offset
        Revert "bond: take rcu lock in netpoll_send_skb_on_dev"
      23469de6
    • Quentin Monnet's avatar
      selftests/bpf: fix return value comparison for tests in test_libbpf.sh · c5fa5d60
      Quentin Monnet authored
      
      
      The return value for each test in test_libbpf.sh is compared with
      
          if (( $? == 0 )) ; then ...
      
      This works well with bash, but not with dash, that /bin/sh is aliased to
      on some systems (such as Ubuntu).
      
      Let's replace this comparison by something that works on both shells.
      
      Signed-off-by: default avatarQuentin Monnet <quentin.monnet@netronome.com>
      Reviewed-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
      Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
      c5fa5d60
    • Alexei Starovoitov's avatar
      Merge branch 'misc-improvements' · 76b5e303
      Alexei Starovoitov authored
      
      
      Daniel Borkmann says:
      
      ====================
      Last batch of misc patches I had in queue: first one removes some left-over
      bits from ULP, second is a fix in the verifier where we wrongly use register
      number as type to fetch the string for the dump, third disables xadd on flow
      keys and subsequent one removes the flow key type from check_helper_mem_access()
      as they cannot be passed into any helper as of today. Next one lets map push,
      pop, peek avoid having to go through retpoline, and last one has a couple of
      minor fixes and cleanups for the ring buffer walk.
      ====================
      
      Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
      76b5e303
    • Daniel Borkmann's avatar
      bpf, libbpf: simplify and cleanup perf ring buffer walk · 3dca2115
      Daniel Borkmann authored
      
      
      Simplify bpf_perf_event_read_simple() a bit and fix up some minor
      things along the way: the return code in the header is not of type
      int but enum bpf_perf_event_ret instead. Once callback indicated
      to break the loop walking event data, it also needs to be consumed
      in data_tail since it has been processed already.
      
      Moreover, bpf_perf_event_print_t callback should avoid void * as
      we actually get a pointer to struct perf_event_header and thus
      applications can make use of container_of() to have type checks.
      The walk also doesn't have to use modulo op since the ring size is
      required to be power of two.
      
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
      3dca2115