1. 23 May, 2020 4 commits
    • David S. Miller's avatar
      Merge tag 'mlx5-updates-2020-05-22' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux · 46c54f95
      David S. Miller authored
      Saeed Mahameed says:
      
      ====================
      mlx5-updates-2020-05-22
      
      This series includes two updates and one cleanup patch
      
      1) Tang Bim, clean-up with IS_ERR() usage
      
      2) Vlad introduces a new mlx5 kconfig flag for TC support
      
         This is required due to the high volume of current and upcoming
         development in the eswitch and representors areas where some of the
         feature are TC based such as the downstream patches of MPLSoUDP and
         the following representor bonding support for VF live migration and
         uplink representor dynamic loading.
         For this Vlad kept TC specific code in tc.c and rep/tc.c and
         organized non TC code in representors specific files.
      
      3) Eli Cohen adds support for MPLS over UPD encap and decap TC offloads.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      46c54f95
    • Randy Dunlap's avatar
      net: psample: fix build error when CONFIG_INET is not enabled · 07a7f308
      Randy Dunlap authored
      Fix psample build error when CONFIG_INET is not set/enabled by
      bracketing the tunnel code in #ifdef CONFIG_NET / #endif.
      
      ../net/psample/psample.c: In function ‘__psample_ip_tun_to_nlattr’:
      ../net/psample/psample.c:216:25: error: implicit declaration of function ‘ip_tunnel_info_opts’; did you mean ‘ip_tunnel_info_opts_set’? [-Werror=implicit-function-declaration]
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: Yotam Gigi <yotam.gi@gmail.com>
      Cc: Cong Wang <xiyou.wangcong@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      07a7f308
    • Michael Walle's avatar
      net: phy: at803x: fix PHY ID masks · 0465d8f8
      Michael Walle authored
      Ever since its first commit 0ca7111a ("phy: add AT803x driver") the
      PHY ID mask was set to 0xffffffef. It is unclear to me why this mask was
      chosen in the first place. Both the AR8031/AR8033 and the AR8035
      datasheets mention it is always the given value:
       - for AR8031/AR8033 its 0x004d/0xd074
       - for AR8035 its 0x004d/0xd072
      
      Unfortunately, I don't have a datasheet for the AR8030. Therefore, we
      leave its PHY ID mask untouched. For the PHYs mentioned before use the
      handy PHY_ID_MATCH_EXACT() macro.
      
      I've tried to contact the author of the initial commit, but received no
      answer so far.
      
      Cc: Matus Ujhelyi <ujhelyi.m@gmail.com>
      Signed-off-by: default avatarMichael Walle <michael@walle.cc>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0465d8f8
    • David S. Miller's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · a152b859
      David S. Miller authored
      Daniel Borkmann says:
      
      ====================
      pull-request: bpf-next 2020-05-23
      
      The following pull-request contains BPF updates for your *net-next* tree.
      
      We've added 50 non-merge commits during the last 8 day(s) which contain
      a total of 109 files changed, 2776 insertions(+), 2887 deletions(-).
      
      The main changes are:
      
      1) Add a new AF_XDP buffer allocation API to the core in order to help
         lowering the bar for drivers adopting AF_XDP support. i40e, ice, ixgbe
         as well as mlx5 have been moved over to the new API and also gained a
         small improvement in performance, from Björn Töpel and Magnus Karlsson.
      
      2) Add getpeername()/getsockname() attach types for BPF sock_addr programs
         in order to allow for e.g. reverse translation of load-balancer backend
         to service address/port tuple from a connected peer, from Daniel Borkmann.
      
      3) Improve the BPF verifier is_branch_taken() logic to evaluate pointers
         being non-NULL, e.g. if after an initial test another non-NULL test on
         that pointer follows in a given path, then it can be pruned right away,
         from John Fastabend.
      
      4) Larger rework of BPF sockmap selftests to make output easier to understand
         and to reduce overall runtime as well as adding new BPF kTLS selftests
         that run in combination with sockmap, also from John Fastabend.
      
      5) Batch of misc updates to BPF selftests including fixing up test_align
         to match verifier output again and moving it under test_progs, allowing
         bpf_iter selftest to compile on machines with older vmlinux.h, and
         updating config options for lirc and v6 segment routing helpers, from
         Stanislav Fomichev, Andrii Nakryiko and Alan Maguire.
      
      6) Conversion of BPF tracing samples outdated internal BPF loader to use
         libbpf API instead, from Daniel T. Lee.
      
      7) Follow-up to BPF kernel test infrastructure in order to fix a flake in
         the XDP selftests, from Jesper Dangaard Brouer.
      
      8) Minor improvements to libbpf's internal hashmap implementation, from
         Ian Rogers.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a152b859
  2. 22 May, 2020 36 commits