From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6AE49C4360F for ; Thu, 4 Apr 2019 13:02:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 383212075E for ; Thu, 4 Apr 2019 13:02:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="eI4vhReS" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729553AbfDDNCY (ORCPT ); Thu, 4 Apr 2019 09:02:24 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:42063 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728543AbfDDNCX (ORCPT ); Thu, 4 Apr 2019 09:02:23 -0400 Received: by mail-qt1-f194.google.com with SMTP id p20so3024285qtc.9 for ; Thu, 04 Apr 2019 06:02:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=XkKVIPdccGCO3pbCUcvttNUjWYOwWUqpgBjsG3f2aBs=; b=eI4vhReS0rO5D7uVZJwq7fs2cApxwmbH/pON7k20OLzd1Yw3YdRZj0IeZBZyGfcaO6 ONZ1AnSJN7F151uWzHvqTOfqsBZKsCCDEXsHmRolKgPJwBThkYBBUSuWRFjrYKGehH7w tjVwRqsdAdB0VjUkkXqzwPYHLEvkj5iTQvYW2VDfrwAz0Ask9wphsi7Q+XgzQPY9GxKM ivZQs8TecLFKDECaFAXfI6/UWEfjkYAW4LpyouuYcNHUW/0hQ0tTH6BiwrhHcodVDzdT haDeAFA37Q/E6QzueCPAdhB+tqy5Il5dDu6eCvI+TQE407V5Lxl52w1p8Hc+QAdq8JRY XfYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XkKVIPdccGCO3pbCUcvttNUjWYOwWUqpgBjsG3f2aBs=; b=jy4vmOgqtDHxZtQehq2369xeCBo+TExmaXsc0TpeQEdmusxnVkNdJJYYe8Io/DFMiz z8aYRxn+seV7hYz6autm8eqKEfTFnY+vB3aRfrE54ew9hoKDwZ1x3DVffW8heQUaNBxz K0Qt6Qe2LCwDtCKi9M8kmKzlX/qzOJUBc6767lOeJABAINshQmdSEVomD2Oc8A4Tf9KY hobCJq9HxuzySkqkO863hm0lvtXza7H/+xfM4OP+HgRgHIBwPLNS612cAOtVTO89xGTD sdi2hYE8lDGCgQ340mR1fFLpRCNW/vMZW9TfHrUp+i2n6f134WC+UPr+BmHIGjU1THQv fixw== X-Gm-Message-State: APjAAAWMnDrOHDOp2kyssV2oanRHtkXav4SYIIW/uwFYa454zSwIDG1F Ab3Bq02yRSM6mcTMGXAIQ6Yplw== X-Google-Smtp-Source: APXvYqy2d/CuTgm1WtRQ4scNoHJ1DokH44U/lZ99Meb1W7FPU0IN0NWo6zgaDmkcWBTnrWnToESnqA== X-Received: by 2002:aed:3c0f:: with SMTP id t15mr5353808qte.282.1554382942792; Thu, 04 Apr 2019 06:02:22 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-156-34-49-251.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.49.251]) by smtp.gmail.com with ESMTPSA id y6sm10254614qka.69.2019.04.04.06.02.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Apr 2019 06:02:21 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1hC20b-00049E-9i; Thu, 04 Apr 2019 10:02:21 -0300 Date: Thu, 4 Apr 2019 10:02:21 -0300 From: Jason Gunthorpe To: Leon Romanovsky Cc: Doug Ledford , Leon Romanovsky , RDMA mailing list , Maor Gottlieb , Mark Bloch , Saeed Mahameed , linux-netdev Subject: Re: [PATCH rdma-next 00/12] Move IB representors to single IB device multiple ports Message-ID: <20190404130221.GA15890@ziepe.ca> References: <20190328132742.12070-1-leon@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190328132742.12070-1-leon@kernel.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, Mar 28, 2019 at 03:27:30PM +0200, Leon Romanovsky wrote: > From: Leon Romanovsky > > >From Mark, > > Hi, > > This series starts from two refactoring patches performed in mlx5_core > and they are part of a larger series intended to expose the ability > to insert FDB steering rules by the RDMA side. > > They are followed by patches which move IB representors to single IB > device. Currently when moving to switchdev mode an IB device is created > per virtual function (and one for the uplink). While initially this was > right approach, the limitation of this model requires us to change it. > > Such limitations includes: > - Inability to share resources between IB devices. > - Lack of DEVX to allow more control and device specific functionality. > - Interacting with the E-Switch. > - Doesn't work well with namespaces. > > In this series we move to a single IB device with multiple ports where > each port represents a different virtual function (port 1 is for the > uplink). All the limitations listed above are now resolved and the > software model exposed to users is more cohesive. > > Thanks > > Mark Bloch (12): > net/mlx5: E-Switch, don't use hardcoded values for FDB prios > net/mlx5: E-Switch, add a new prio to be used by the RDMA side > RDMA/mlx5: Move netdev info into the port struct > RDMA/mlx5: Free IB device on remove > RDMA/mlx5: Move ports allocation to outside of INIT stage > RDMA/mlx5: Use correct size for device resources > RDMA/mlx5: Move rep into port struct > RDMA/mlx5: Move default representors SQ steering to rule to modify QP > RDMA/mlx5: Refactor netdev affinity code > RDMA/mlx5: Move SMI caps logic > RDMA/mlx5: Move to single device multiport ports in switchdev mode > RDMA/mlx5: Remove VF representor profile This looks Ok, can you update the shared branch please Jason