Thread (10 messages) flat view 10 messages, 3 authors, 2018-12-14

Re: [PATCH mlx5-next 2/6] IB/mlx5: Unify e-switch representors load approach between uplink and VFs

From: Jason Gunthorpe <hidden>
Date: 2018-12-13 03:37:11
Also in: linux-rdma

On Wed, Dec 12, 2018 at 07:11:37PM -0800, Saeed Mahameed wrote:
From: Mark Bloch <redacted>

When in switchdev mode and the add function is called by the core
level driver, make sure we only register the callbacks, but don't
create the mlx5 IB device or initialize anything. With this change
all the IB devices in switchdev mode are created only once the load
callback is invoked by the e-switch core sub-module. This follows
the design paradigm under which the all the Eth representors must
be loaded before any of IB reprs is loaded.

Signed-off-by: Mark Bloch <redacted>
Acked-by: Or Gerlitz <redacted>
Reviewed-by: Leon Romanovsky <redacted>
Signed-off-by: Saeed Mahameed <redacted>
---
 drivers/infiniband/hw/mlx5/ib_rep.c  | 11 ++++++++++-
 drivers/infiniband/hw/mlx5/main.c    | 29 +++++++++-------------------
 drivers/infiniband/hw/mlx5/mlx5_ib.h |  1 -
 3 files changed, 19 insertions(+), 22 deletions(-)
Why is this going in the shared branch? This looks like an IB patch??

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help