From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx3-rdu2.redhat.com ([66.187.233.73]:40698 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751566AbeB1Du2 (ORCPT ); Tue, 27 Feb 2018 22:50:28 -0500 Message-ID: <1519789826.28560.214.camel@redhat.com> Subject: Re: [pull request][for-next 00/15] Mellanox, mlx5 RDMA E-Switch representors 2018-02-23 From: Doug Ledford To: Saeed Mahameed , "David S. Miller" , Jason Gunthorpe Cc: Leon Romanovsky , Mark Bloch , Or Gerlitz , netdev@vger.kernel.org, linux-rdma@vger.kernel.org Date: Tue, 27 Feb 2018 22:50:26 -0500 In-Reply-To: <20180226203617.10242-1-saeedm@mellanox.com> References: <20180226203617.10242-1-saeedm@mellanox.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-d5tUhAwiYITZEhpUerWi" Mime-Version: 1.0 Sender: netdev-owner@vger.kernel.org List-ID: --=-d5tUhAwiYITZEhpUerWi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2018-02-26 at 12:36 -0800, Saeed Mahameed wrote: > Hi Doug and Dave, >=20 > This series includes shared code updates for mlx5 core driver for both > netdev and rdma subsystems. This series should be pulled to both > trees so we can continue netdev and rdma specific submissions separately. >=20 > For more information please see tag log below. >=20 > P.S. We expect one more shared code pull requests. >=20 > Since this series contains more work on RDMA than mlx5 eswitch, I would > like to get Doug's or Jason's approval before pulling it in. This series looks OK to me, I'm good to pull it in. > The series doesn't cause any conflict with the latest mlx5 net fixes > series. >=20 > Thanks, > Saeed. >=20 > --- >=20 > The following changes since commit 388ca8be00370db132464e27f745b8a0add19f= cb: >=20 > IB/mlx5: Implement fragmented completion queue (CQ) (2018-02-15 00:30:0= 3 -0800) >=20 > are available in the Git repository at: >=20 > git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux.git tags/m= lx5-updates-2018-02-23 >=20 > for you to fetch changes up to ec9c2fb8ceb5b514c4820f732537cb2982de0620: >=20 > IB/mlx5: Disable self loopback check when in switchdev mode (2018-02-23= 12:36:39 -0800) >=20 > ---------------------------------------------------------------- > mlx5-update-2018-02-23 (IB representors) >=20 > From: Mark Bloch > =3D=3D=3D=3D=3D=3D=3D=3D=3D > Add IB representor when in switchdev mode >=20 > The following series adds support for an IB (RAW Ethernet only) device > representor which is created when the user switches to switchdev mode. >=20 > 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. >=20 > 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. >=20 > 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. > =3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > ---------------------------------------------------------------- > Mark Bloch (15): > net/mlx5: E-Switch, Add callback to get representor device > net/mlx5: E-Switch, Move representors definition to a global scope > net/mlx5: E-Switch, Increase number of FTEs in FDB in switchdev mod= e > net/mlx5: E-Switch, Optimize HW steering tables in switchdev mode > net/mlx5: E-Switch, Add definition of IB representor > IB/mlx5: Add basic regiser/unregister representors code > IB/mlx5: Allocate flow DB only on PF IB device > IB/mlx5: Add match on vport when in switchdev mode > IB/mlx5: Listen to netdev register/unresiter events in switchdev mo= de > IB/mlx5: When in switchdev mode, expose only raw packet capabilitie= s > IB/mlx5: Don't expose MR cache in switchdev mode > IB/mlx5: E-Switch, Add rule to forward traffic to vport > IB/mlx5: Add proper representors support > net/mlx5: E-Switch, Reload IB interface when switching devlink mode= s > IB/mlx5: Disable self loopback check when in switchdev mode >=20 > drivers/infiniband/hw/mlx5/Makefile | 1 + > drivers/infiniband/hw/mlx5/ib_rep.c | 189 +++++++++++ > drivers/infiniband/hw/mlx5/ib_rep.h | 72 ++++ > drivers/infiniband/hw/mlx5/main.c | 361 +++++++++++++++= +----- > drivers/infiniband/hw/mlx5/mlx5_ib.h | 32 +- > drivers/infiniband/hw/mlx5/mr.c | 5 +- > drivers/infiniband/hw/mlx5/qp.c | 24 ++ > drivers/net/ethernet/mellanox/mlx5/core/dev.c | 8 + > drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 11 + > drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 23 +- > drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 42 +-- > .../ethernet/mellanox/mlx5/core/eswitch_offloads.c | 104 ++++-- > .../net/ethernet/mellanox/mlx5/core/mlx5_core.h | 7 +- > include/linux/mlx5/driver.h | 6 + > include/linux/mlx5/eswitch.h | 58 ++++ > 15 files changed, 796 insertions(+), 147 deletions(-) > create mode 100644 drivers/infiniband/hw/mlx5/ib_rep.c > create mode 100644 drivers/infiniband/hw/mlx5/ib_rep.h > create mode 100644 include/linux/mlx5/eswitch.h --=20 Doug Ledford GPG KeyID: B826A3330E572FDD Key fingerprint =3D AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD --=-d5tUhAwiYITZEhpUerWi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEErmsb2hIrI7QmWxJ0uCajMw5XL90FAlqWJwIACgkQuCajMw5X L90MhA/7BSzc/LceDk74YEQB8V2vY6UBsdbM3hVv9h2NtGmunrzOZZ2vBkSSs97v deVnYwQlxf7j32U6Ahl83B9o75MaLvK2X26j5QY7d0G9lbVJ9NODVzZsNyvASsV6 szY4WYXB1CEPAdkJhjk/JWUj5sUFm7ztXeGZkEKmvyiPSPW5MZz596/0YQtM7+uA 5NNq8aWTnyhb4twj2v4XaesAwwKUeSz09it2I12gpWbEyWPqrOKjazdODr1yZ6TK UXId13X5krj9+gGu+IvxP4SPLQrlc/Tt3WQ0MevxLnrOaSuXiL8Kz/K5sZTPHerx 4d5zWd0eWBMp00wb8bj7V5HY1aUKJza0VMQkiwVjC3+GN1qGteCs6aesl7DLFQ6W pQkqH03RMffZtfux1u0HCEfHK2Uxl/J+3gLf5rA58jj0RtoAEEDZoxk3P2VDJopr M++ICXwT2koy6PTU/EL2+QC+covv1Y7rIHaDyoYFJ/931iagjTsTskN2zqewH9qS veqkERk7qR+DuDU4a/jPaietoxHVBuOtWs2pVyWid/Uf2d6YVyR1XlNFAjvHB+fl abgPWveI/8w95+FcmVZWfL96fbOiIfrsGKkQzR6z9iBh50PTY45KTkibKgSS/QRz BSDVCpDb2WjDUMg0uG2rfoJM3AaNods/IRc9z7/lXerfkYE3whA= =Adh0 -----END PGP SIGNATURE----- --=-d5tUhAwiYITZEhpUerWi--