From: Jiri Pirko <jiri@resnulli.us>
To: netdev@vger.kernel.org
Cc: davem@davemloft.net, eladr@mellanox.com, idosch@mellanox.com,
yotamg@mellanox.com, nogahf@mellanox.com, ogerlitz@mellanox.com
Subject: [patch net-next 00/16] mlxsw: Add Infiniband support for Mellanox switches
Date: Fri, 28 Oct 2016 21:17:34 +0200 [thread overview]
Message-ID: <1477682270-7903-1-git-send-email-jiri@resnulli.us> (raw)
From: Jiri Pirko <jiri@mellanox.com>
This patchset adds basic Infiniband support for SwitchX-2, Switch-IB
and Switch-IB-2 ASIC drivers.
SwitchX-2 ASIC is VPI capable, which means each port can be either
Ethernet or Infiniband. When the port is configured as Infiniband,
the Subnet Management Agent (SMA) is managed by the SwitchX-2 firmware
and not by the host. Port configuration, MTU and more are configured
remotely by the Subnet Manager (SM).
Usage:
$ devlink port show
pci/0000:03:00.0/1: type eth netdev eth0
pci/0000:03:00.0/3: type eth netdev eth1
pci/0000:03:00.0/5: type eth netdev eth2
pci/0000:03:00.0/6: type eth netdev eth3
pci/0000:03:00.0/8: type eth netdev eth4
$ devlink port set pci/0000:03:00.0/1 type ib
$ devlink port show
pci/0000:03:00.0/1: type ib
Switch-IB (FDR) and Switch-IB-2 (EDR 100Gbs) ASICs are Infiniband-only
switches. The support provided in the mlxsw_switchib.ko driver is port
initialization only. The firmware running in the Silicon implements
the SMA.
Please note that this patchset does only very basic port initialization.
ib_device or RDMA implementations are not part of this patchset.
Elad Raz (12):
mlxsw: core: Zero payload buffers for couple of registers
mlxsw: switchx2: Add support for physical port names
mlxsw: switchx2: Fix port speed configuration
mlxsw: reg: Add eth prefix to PTYS pack and unpack
mlxsw: reg: Add Infiniband support to PTYS
mlxsw: reg: Add local-port to Infiniband port mapping
mlxsw: switchx2: Add Infiniband switch partition
mlxsw: core: Add "eth" prefix to mlxsw_core_port_set
mlxsw: core: Add port type (Eth/IB) set API
mlxsw: switchx2: Add eth prefix to port create and remove
mlxsw: switchx2: Add IB port support
mlxsw: switchib: Introduce SwitchIB and SwitchIB silicon driver
Jiri Pirko (4):
mlxsw: switchx2: Check if port is usable before calling port create
mlxsw: switchx2: Move port used check outside port remove function
mlxsw: spectrum: Move port used check outside port remove function
mlxsw: Make devlink port instances independent of spectrum/switchx2
port instances
drivers/net/ethernet/mellanox/mlxsw/Kconfig | 11 +
drivers/net/ethernet/mellanox/mlxsw/Makefile | 2 +
drivers/net/ethernet/mellanox/mlxsw/core.c | 123 ++++-
drivers/net/ethernet/mellanox/mlxsw/core.h | 32 +-
drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c | 4 +-
drivers/net/ethernet/mellanox/mlxsw/ib.h | 39 ++
drivers/net/ethernet/mellanox/mlxsw/pci.h | 2 +
drivers/net/ethernet/mellanox/mlxsw/port.h | 4 +
drivers/net/ethernet/mellanox/mlxsw/reg.h | 104 +++-
drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 95 ++--
drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 1 -
drivers/net/ethernet/mellanox/mlxsw/switchib.c | 598 +++++++++++++++++++++++
drivers/net/ethernet/mellanox/mlxsw/switchx2.c | 380 +++++++++++---
13 files changed, 1258 insertions(+), 137 deletions(-)
create mode 100644 drivers/net/ethernet/mellanox/mlxsw/ib.h
create mode 100644 drivers/net/ethernet/mellanox/mlxsw/switchib.c
--
2.5.5
next reply other threads:[~2016-10-28 19:18 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-28 19:17 Jiri Pirko [this message]
2016-10-28 19:35 ` [patch net-next 01/16] mlxsw: core: Zero payload buffers for couple of registers Jiri Pirko
2016-10-28 19:35 ` [patch net-next 02/16] mlxsw: switchx2: Check if port is usable before calling port create Jiri Pirko
2016-10-28 19:35 ` [patch net-next 03/16] mlxsw: switchx2: Move port used check outside port remove function Jiri Pirko
2016-10-28 19:35 ` [patch net-next 04/16] mlxsw: spectrum: " Jiri Pirko
2016-10-28 19:35 ` [patch net-next 05/16] mlxsw: switchx2: Add support for physical port names Jiri Pirko
2016-10-28 19:35 ` [patch net-next 06/16] mlxsw: switchx2: Fix port speed configuration Jiri Pirko
2016-10-28 19:35 ` [patch net-next 07/16] mlxsw: reg: Add eth prefix to PTYS pack and unpack Jiri Pirko
2016-10-28 19:35 ` [patch net-next 08/16] mlxsw: reg: Add Infiniband support to PTYS Jiri Pirko
2016-10-28 19:35 ` [patch net-next 09/16] mlxsw: reg: Add local-port to Infiniband port mapping Jiri Pirko
2016-10-28 19:35 ` [patch net-next 10/16] mlxsw: Make devlink port instances independent of spectrum/switchx2 port instances Jiri Pirko
2016-10-28 19:35 ` [patch net-next 11/16] mlxsw: switchx2: Add Infiniband switch partition Jiri Pirko
2016-10-28 19:35 ` [patch net-next 12/16] mlxsw: core: Add "eth" prefix to mlxsw_core_port_set Jiri Pirko
2016-10-28 19:35 ` [patch net-next 13/16] mlxsw: core: Add port type (Eth/IB) set API Jiri Pirko
2016-10-28 19:35 ` [patch net-next 14/16] mlxsw: switchx2: Add eth prefix to port create and remove Jiri Pirko
2016-10-28 19:36 ` [patch net-next 15/16] mlxsw: switchx2: Add IB port support Jiri Pirko
2016-10-28 19:36 ` [patch net-next 16/16] mlxsw: switchib: Introduce SwitchIB and SwitchIB silicon driver Jiri Pirko
2016-10-30 20:51 ` [patch net-next 00/16] mlxsw: Add Infiniband support for Mellanox switches David Miller
2016-10-30 21:14 ` Jiri Pirko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1477682270-7903-1-git-send-email-jiri@resnulli.us \
--to=jiri@resnulli.us \
--cc=davem@davemloft.net \
--cc=eladr@mellanox.com \
--cc=idosch@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=nogahf@mellanox.com \
--cc=ogerlitz@mellanox.com \
--cc=yotamg@mellanox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).