1. 16 Jan, 2018 9 commits
  2. 15 Jan, 2018 22 commits
  3. 14 Jan, 2018 1 commit
    • David S. Miller's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf · 8155aedf
      David S. Miller authored
      Daniel Borkmann says:
      
      ====================
      pull-request: bpf 2018-01-13
      
      The following pull-request contains BPF updates for your *net* tree.
      
      The main changes are:
      
      1) Follow-up fix to the recent BPF out-of-bounds speculation
         fix that prevents max_entries overflows and an undefined
         behavior on 32 bit archs on index_mask calculation, from
         Daniel.
      
      2) Reject unsupported BPF_ARSH opcode in 32 bit ALU mode that
         was otherwise throwing an unknown opcode warning in the
         interpreter, from Daniel.
      
      3) Typo fix in one of the user facing verbose() messages that
         was added during the BPF out-of-bounds speculation fix,
         from Colin.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      8155aedf
  4. 12 Jan, 2018 8 commits
    • David S. Miller's avatar
      Merge tag 'mlx5-fixes-2018-01-11' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux · 5dd966c6
      David S. Miller authored
      Saeed Mahameed says:
      
      ====================
      Mellanox, mlx5 fixes 2018-01-11
      
      The following series includes fixes to mlx5 core and netdev driver.
      To highlight we have two critical fixes in this series:
      1st patch from Eran to address a fix for Host2BMC Breakage.
      
      2nd patch from Saeed to address the RDMA IRQ vector affinity settings query
      issue, the patch provides the correct mlx5_core implementation for RDMA to
      correctly  query vector affinity.
      I sent this patch privately to Sagi a week a go, so he could to test it
      but I didn't hear from him.
      
      All other patches are trivial misc fixes.
      Please pull and let me know if there's any problem.
      
      for -stable v4.14-y and later:
      ("net/mlx5: Fix get vector affinity helper function")
      ("{net,ib}/mlx5: Don't disable local loopback multicast traffic when needed")
      
      Note: Merging this series with net-next will produce the following conflict:
      <<<<<<< HEAD
              u8         disable_local_lb[0x1];
              u8         reserved_at_3e2[0x1];
              u8         log_min_hairpin_wq_data_sz[0x5];
              u8         reserved_at_3e8[0x3];
      =======
              u8         disable_local_lb_uc[0x1];
              u8         disable_local_lb_mc[0x1];
              u8         reserved_at_3e3[0x8];
      >>>>>>> 359c96447ac2297fabe15ef30b60f3b4b71e7fd0
      
      To resolve, use the following hunk:
      i.e:
      <<<<<<
              u8         disable_local_lb_uc[0x1];
              u8         disable_local_lb_mc[0x1];
              u8         log_min_hairpin_wq_data_sz[0x5];
              u8         reserved_at_3e8[0x3];
      >>>>>>
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      5dd966c6
    • David S. Miller's avatar
      Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec · 9c70f1a7
      David S. Miller authored
      Steffen Klassert says:
      
      ====================
      pull request (net): ipsec 2018-01-11
      
      1) Don't allow to change the encap type on state updates.
         The encap type is set on state initialization and
         should not change anymore. From Herbert Xu.
      
      2) Skip dead policies when rehashing to fix a
         slab-out-of-bounds bug in xfrm_hash_rebuild.
         From Florian Westphal.
      
      3) Two buffer overread fixes in pfkey.
         From Eric Biggers.
      
      4) Fix rcu usage in xfrm_get_type_offload,
         request_module can sleep, so can't be used
         under rcu_read_lock. From Sabrina Dubroca.
      
      5) Fix an uninitialized lock in xfrm_trans_queue.
         Use __skb_queue_tail instead of skb_queue_tail
         in xfrm_trans_queue as we don't need the lock.
         From Herbert Xu.
      
      6) Currently it is possible to create an xfrm state with an
         unknown encap type in ESP IPv4. Fix this by returning an
         error on unknown encap types. Also from Herbert Xu.
      
      7) Fix sleeping inside a spinlock in xfrm_policy_cache_flush.
         From Florian Westphal.
      
      8) Fix ESP GRO when the headers not fully in the linear part
         of the skb. We need to pull before we can access them.
      
      9) Fix a skb leak on error in key_notify_policy.
      
      10) Fix a race in the xdst pcpu cache, we need to
          run the resolver routines with bottom halfes
          off like the old flowcache did.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9c70f1a7
    • Linus Torvalds's avatar
      Merge tag 'ceph-for-4.15-rc8' of git://github.com/ceph/ceph-client · 1545dec4
      Linus Torvalds authored
      Pull ceph fixes from Ilya Dryomov:
       "Two rbd fixes for 4.12 and 4.2 issues respectively, marked for
        stable"
      
      * tag 'ceph-for-4.15-rc8' of git://github.com/ceph/ceph-client:
        rbd: set max_segments to USHRT_MAX
        rbd: reacquire lock should update lock owner client id
      1545dec4
    • Linus Torvalds's avatar
      Merge tag 'gpio-v4.15-4' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio · ab278159
      Linus Torvalds authored
      Pull GPIO fix from Linus Walleij:
       "Fix a raw vs elaborate GPIO descriptor bug introduced by yours truly"
      
      * tag 'gpio-v4.15-4' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio:
        gpio: Add missing open drain/source handling to gpiod_set_value_cansleep()
      ab278159
    • Feras Daoud's avatar
      net/mlx5e: Remove timestamp set from netdevice open flow · 237f258c
      Feras Daoud authored
      To avoid configuration override, timestamp set call will
      be moved from the netdevice open flow to the init flow.
      By this, a close-open procedure will not override the timestamp
      configuration.
      In addition, the change will rename mlx5e_timestamp_set function
      to be mlx5e_timestamp_init.
      
      Fixes: ef9814de ("net/mlx5e: Add HW timestamping (TS) support")
      Signed-off-by: default avatarFeras Daoud <ferasda@mellanox.com>
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      237f258c
    • Feras Daoud's avatar
      net/mlx5: Update ptp_clock_event foreach PPS event · afc98a0b
      Feras Daoud authored
      PPS event did not update ptp_clock_event fields, therefore,
      timestamp value was not updated correctly. This fix updates the
      event source and the timestamp value for each PPS event.
      
      Fixes: 7c39afb3 ("net/mlx5: PTP code migration to driver core section")
      Signed-off-by: default avatarFeras Daoud <ferasda@mellanox.com>
      Reported-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      afc98a0b
    • Gal Pressman's avatar
      net/mlx5e: Don't override netdev features field unless in error flow · 75b81ce7
      Gal Pressman authored
      Set features function sets dev->features in order to keep track of which
      features were successfully changed and which weren't (in case the user
      asks for more than one change in a single command).
      
      This breaks the logic in __netdev_update_features which assumes that
      dev->features is not changed on success and checks for diffs between
      features and dev->features (diffs that might not exist at this point
      because of the driver override).
      
      The solution is to keep track of successful/failed feature changes and
      assign them to dev->features in case of failure only.
      
      Fixes: 0e405443 ("net/mlx5e: Improve set features ndo resiliency")
      Signed-off-by: default avatarGal Pressman <galp@mellanox.com>
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      75b81ce7
    • Tariq Toukan's avatar
      net/mlx5e: Check support before TC swap in ETS init · 4b7d4363
      Tariq Toukan authored
      Should not do the following swap between TCs 0 and 1
      when max num of TCs is 1:
      tclass[prio=0]=1, tclass[prio=1]=0, tclass[prio=i]=i (for i>1)
      
      Fixes: 08fb1dac ("net/mlx5e: Support DCBNL IEEE ETS")
      Signed-off-by: default avatarTariq Toukan <tariqt@mellanox.com>
      Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
      4b7d4363