1. 23 Oct, 2018 6 commits
  2. 22 Oct, 2018 11 commits
  3. 21 Oct, 2018 14 commits
  4. 20 Oct, 2018 9 commits
    • David Ahern's avatar
      net/ipv6: Fix index counter for unicast addresses in in6_dump_addrs · 4ba4c566
      David Ahern authored
      The loop wants to skip previously dumped addresses, so loops until
      current index >= saved index. If the message fills it wants to save
      the index for the next address to dump - ie., the one that did not
      fit in the current message.
      
      Currently, it is incrementing the index counter before comparing to the
      saved index, and then the saved index is off by 1 - it assumes the
      current address is going to fit in the message.
      
      Change the index handling to increment only after a succesful dump.
      
      Fixes: 502a2ffd ("ipv6: convert idev_list to list macros")
      Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4ba4c566
    • Daniel Borkmann's avatar
      Merge branch 'bpf-msg-push-data' · 2576b967
      Daniel Borkmann authored
      John Fastabend says:
      
      ====================
      This series adds a new helper bpf_msg_push_data to be used by
      sk_msg programs. The helper can be used to insert extra bytes into
      the message that can then be used by the program as metadata tags
      among other things.
      
      The first patch adds the helper, second patch the libbpf support,
      and last patch updates test_sockmap to run msg_push_data tests.
      
      v2: rebase after queue map and in filter.c convert int -> u32
      ====================
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      2576b967
    • John Fastabend's avatar
      bpf: test_sockmap add options to use msg_push_data · 84fbfe02
      John Fastabend authored
      Add options to run msg_push_data, this patch creates two more flags
      in test_sockmap that can be used to specify the offset and length
      of bytes to be added. The new options are --txmsg_start_push to
      specify where bytes should be inserted and --txmsg_end_push to
      specify how many bytes. This is analagous to the options that are
      used to pull data, --txmsg_start and --txmsg_end.
      
      In addition to adding the options tests are added to the test
      suit to run the tests similar to what was done for msg_pull_data.
      Signed-off-by: default avatarJohn Fastabend <john.fastabend@gmail.com>
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      84fbfe02
    • John Fastabend's avatar
      bpf: libbpf support for msg_push_data · f908d26b
      John Fastabend authored
      Add support for new bpf_msg_push_data in libbpf.
      Signed-off-by: default avatarJohn Fastabend <john.fastabend@gmail.com>
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      f908d26b
    • John Fastabend's avatar
      bpf: sk_msg program helper bpf_msg_push_data · 6fff607e
      John Fastabend authored
      This allows user to push data into a msg using sk_msg program types.
      The format is as follows,
      
      	bpf_msg_push_data(msg, offset, len, flags)
      
      this will insert 'len' bytes at offset 'offset'. For example to
      prepend 10 bytes at the front of the message the user can,
      
      	bpf_msg_push_data(msg, 0, 10, 0);
      
      This will invalidate data bounds so BPF user will have to then recheck
      data bounds after calling this. After this the msg size will have been
      updated and the user is free to write into the added bytes. We allow
      any offset/len as long as it is within the (data, data_end) range.
      However, a copy will be required if the ring is full and its possible
      for the helper to fail with ENOMEM or EINVAL errors which need to be
      handled by the BPF program.
      
      This can be used similar to XDP metadata to pass data between sk_msg
      layer and lower layers.
      Signed-off-by: default avatarJohn Fastabend <john.fastabend@gmail.com>
      Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
      6fff607e
    • Florian Westphal's avatar
      r8169: add support for Byte Queue Limits · d92060bc
      Florian Westphal authored
      This patch is basically a resubmit of 1e918876 ("r8169: add support
      for Byte Queue Limits") which was reverted later. The problems causing
      the revert seem to have been fixed in the meantime.
      Only change to the original patch is that the call to
      netdev_reset_queue was moved to rtl8169_tx_clear.
      
      The Tested-by refers to a system using the RTL8168evl chip version.
      Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
      Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
      Tested-by: default avatarHolger Hoffstätte <holger@applied-asynchrony.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      d92060bc
    • Heiner Kallweit's avatar
      r8169: handle all interrupt events in the hard irq handler · 38caff5a
      Heiner Kallweit authored
      Having a separate "slow event" handler isn't needed because all
      interrupt events trigger asynchronous activity. And in case of SYSErr
      we have bigger problems than performance anyway.
      This patch also allows to get rid of acking interrupt events in the
      NAPI poll callback.
      Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      38caff5a
    • David S. Miller's avatar
      Merge branch 'for-upstream' of... · 342149c5
      David S. Miller authored
      Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next
      
      Johan Hedberg says:
      
      ====================
      pull request: bluetooth-next 2018-10-20
      
      Here's one more bluetooth-next pull request for the 4.20 kernel.
      
       - Added new USB ID for QCA_ROME controller
       - Added debug trace support from QCA wcn3990 controllers
       - Updated L2CAP to conform to latest Errata Service Release
       - Fix binding to non-removable BCM43430 devices
      
      Please let me know if there are any issues pulling. Thanks.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      342149c5
    • David S. Miller's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next · a4efbaf6
      David S. Miller authored
      Pablo Neira Ayuso says:
      
      ====================
      Netfilter updates for net-next
      
      The following patchset contains Netfilter updates for your net-next tree:
      
      1) Use lockdep_is_held() in ipset_dereference_protected(), from Lance Roy.
      
      2) Remove unused variable in cttimeout, from YueHaibing.
      
      3) Add ttl option for nft_osf, from Fernando Fernandez Mancera.
      
      4) Use xfrm family to deal with IPv6-in-IPv4 packets from nft_xfrm,
         from Florian Westphal.
      
      5) Simplify xt_osf_match_packet().
      
      6) Missing ct helper alias definition in snmp_trap helper, from Taehee Yoo.
      
      7) Remove unnecessary parameter in nf_flow_table_cleanup(), from Taehee Yoo.
      
      8) Remove unused variable definitions in nft_{dup,fwd}, from Weongyo Jeong.
      
      9) Remove empty net/netfilter/nfnetlink_log.h file, from Taehee Yoo.
      
      10) Revert xt_quota updates remain option due to problems in the listing
          path for 32-bit arches, from Maze.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a4efbaf6