1. 01 3月, 2018 36 次提交
  2. 28 2月, 2018 4 次提交
    • D
      Merge tag 'mlx5-updates-2018-02-23' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux · fb66cb07
      David S. Miller 提交于
      Saeed Mahameed says:
      
      mlx5-update-2018-02-23 (IB representors)
      
      From: Mark Bloch <markb@mellanox.com>
      =========
      Add IB representor when in switchdev mode
      
      The following series adds support for an IB (RAW Ethernet only) device
      representor which is created when the user switches to switchdev mode.
      
      Today when switching to switchdev mode the only representors which are
      created are net devices. Each netdev is a representor of a virtual
      function and any data sent via the representor is received on the virtual
      function, and any data sent via the virtual function is received by the
      representor.
      
      For the mlx5 driver the main use of this functionality is to be able to
      use Open vSwitch on the hypervisor in order to manage/control traffic
      from/to the virtual functions. Open vSwitch can also work with  DPDK
      devices and not just net devices, this series exposes an IB device, which
      Mellanox PMD driver uses, which then can be used by Open vSwitch DPDK.
      
      An IB device representor exposes only RAW Ethernet QP capabilities and
      the ability to create flow rules to direct traffic to its RX queues. The
      state of the IB device (ACTIVE/DOWN etc..) is based on the state of the
      corresponding net device representor. No other RDMA/RoCE functionality is
      currently supported and no GID table is exposed.
      =========
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fb66cb07
    • D
      Merge branch 'mlx4-misc' · 3f5a6830
      David S. Miller 提交于
      Tariq Toukan says:
      
      ====================
      mlx4_en misc for 4.17
      
      This patchset contains misc enhancements from the team
      to the mlx4 Eth driver.
      
      Patch 1 by Eran adds physical layer counters.
      Patch 2 by Eran cleans-up a redundant warn print.
      Patch 3 combines the checks of two end cases into a single if statement.
      Patch 4 takes common code structures out of the #ifdef, following your
      comment on a previous patch.
      
      Series generated against net-next commit:
      f74290fd Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3f5a6830
    • T
      net/mlx4_en: RX csum, pre-define enabled protocols for IP status masking · a970d8db
      Tariq Toukan 提交于
      Pre-define a mask for IP status of a completion, that tests the
      MLX4_CQE_STATUS_IPV6 only in case CONFIG_IPV6 is enabled.
      Use it for IP status testing upon completion, instead of separating
      the datapath into two flows.
      This takes common code structures (such as closing parenthesis)
      back to their original place, and makes code more readable.
      Signed-off-by: NTariq Toukan <tariqt@mellanox.com>
      Suggested-by: NDavid S. Miller <davem@davemloft.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a970d8db
    • T
      net/mlx4_en: Combine checks of end-cases in RX completion function · 1cb8b121
      Tariq Toukan 提交于
      Combine two end-cases in the same if statement with a single return value.
      Signed-off-by: NTariq Toukan <tariqt@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1cb8b121