1. 15 3月, 2020 34 次提交
  2. 14 3月, 2020 6 次提交
    • D
      Merge tag 'mlx5-updates-2020-03-13' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux · 94229d45
      David S. Miller 提交于
      Saeed Mahameed says:
      
      ====================
      mlx5-updates-2020-03-13
      
      Misc update to mlx5 core and E-Switch driver:
      
      1) Blue-Field, Update VF vports config when num of VFs changed
      
      From Bodon, Various misc cleanups and refactoring
      for vport enabling/disabling routines to allow them to be called
      dynamically and not only on E-Switch load.
      
      This will allow ECPF (ConnectX BlueField Smartnic) support for dynamic
      num vf changes and dynamic vport creation and configuration as introduced
      in "Update VF vports config when num of VFs changed" patch.
      
      2) From Parav and Mark, trivial clean-ups.
      
      3) Software steering support for flow table id as destination
      and a clean-up patch to remove unnecessary function stubs, from Alex.
      ====================
      Acked-by: NJakub Kicinski <kuba@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      94229d45
    • D
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next · 44ef976a
      David S. Miller 提交于
      Daniel Borkmann says:
      
      ====================
      pull-request: bpf-next 2020-03-13
      
      The following pull-request contains BPF updates for your *net-next* tree.
      
      We've added 86 non-merge commits during the last 12 day(s) which contain
      a total of 107 files changed, 5771 insertions(+), 1700 deletions(-).
      
      The main changes are:
      
      1) Add modify_return attach type which allows to attach to a function via
         BPF trampoline and is run after the fentry and before the fexit programs
         and can pass a return code to the original caller, from KP Singh.
      
      2) Generalize BPF's kallsyms handling and add BPF trampoline and dispatcher
         objects to be visible in /proc/kallsyms so they can be annotated in
         stack traces, from Jiri Olsa.
      
      3) Extend BPF sockmap to allow for UDP next to existing TCP support in order
         in order to enable this for BPF based socket dispatch, from Lorenz Bauer.
      
      4) Introduce a new bpftool 'prog profile' command which attaches to existing
         BPF programs via fentry and fexit hooks and reads out hardware counters
         during that period, from Song Liu. Example usage:
      
         bpftool prog profile id 337 duration 3 cycles instructions llc_misses
      
              4228 run_cnt
           3403698 cycles                                              (84.08%)
           3525294 instructions   #  1.04 insn per cycle               (84.05%)
                13 llc_misses     #  3.69 LLC misses per million isns  (83.50%)
      
      5) Batch of improvements to libbpf, bpftool and BPF selftests. Also addition
         of a new bpf_link abstraction to keep in particular BPF tracing programs
         attached even when the applicaion owning them exits, from Andrii Nakryiko.
      
      6) New bpf_get_current_pid_tgid() helper for tracing to perform PID filtering
         and which returns the PID as seen by the init namespace, from Carlos Neira.
      
      7) Refactor of RISC-V JIT code to move out common pieces and addition of a
         new RV32G BPF JIT compiler, from Luke Nelson.
      
      8) Add gso_size context member to __sk_buff in order to be able to know whether
         a given skb is GSO or not, from Willem de Bruijn.
      
      9) Add a new bpf_xdp_output() helper which reuses XDP's existing perf RB output
         implementation but can be called from tracepoint programs, from Eelco Chaudron.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      44ef976a
    • A
      net/mlx5: DR, Remove unneeded functions deceleration · bc1a0288
      Alex Vesker 提交于
      Remove dummy functions declaration, the dummy functions are not needed
      since fs_dr is the only one to call mlx5dr and both fs_dr and dr files
      depend on the same config flag (MLX5_SW_STEERING).
      
      Fixes: 70605ea5 ("net/mlx5: DR, Expose APIs for direct rule managing")
      Signed-off-by: NAlex Vesker <valex@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      bc1a0288
    • A
      net/mlx5: DR, Add support for flow table id destination action · de346f40
      Alex Vesker 提交于
      This action allows to go to a flow table based on the table id.
      Goto flow table id is required for supporting user space SW.
      Signed-off-by: NAlex Vesker <valex@mellanox.com>
      Reviewed-by: NErez Shitrit <erezsh@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      de346f40
    • P
      net/mlx5: Avoid deriving mlx5_core_dev second time · 0e6fa491
      Parav Pandit 提交于
      All callers needs to work on mlx5_core_dev and it is already derived
      before calling mlx5_devlink_eswitch_check().
      Hence, accept mlx5_core_dev in mlx5_devlink_eswitch_check().
      
      Given that it works on mlx5_core_dev change helper function name to
      drop devlink prefix.
      Reviewed-by: NRoi Dayan <roid@mellanox.com>
      Reviewed-by: NBodong Wang <bodong@mellanox.com>
      Signed-off-by: NParav Pandit <parav@mellanox.com>
      Reviewed-by: NMark Bloch <markb@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      0e6fa491
    • P
      net/mlx5: E-switch, Annotate esw state_lock mutex destroy · d6c8022d
      Parav Pandit 提交于
      Invoke mutex_destroy() to catch any esw state_lock errors.
      Reviewed-by: NRoi Dayan <roid@mellanox.com>
      Reviewed-by: NBodong Wang <bodong@mellanox.com>
      Signed-off-by: NParav Pandit <parav@mellanox.com>
      Reviewed-by: NMark Bloch <markb@mellanox.com>
      Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
      d6c8022d