Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3329586imc; Wed, 13 Mar 2019 15:08:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmjAGHmPUdFCqp+EYUqD7r4BeSsaJLLEilRnpQ3fn61yCT6MPj+Wh8/+hwitVWycdp3ugR X-Received: by 2002:a62:76d4:: with SMTP id r203mr46570790pfc.15.1552514927107; Wed, 13 Mar 2019 15:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552514927; cv=none; d=google.com; s=arc-20160816; b=tOU3GtuNwlgYISxB/9MllP8cmGnbNMYoDZ05olc6G/oynx59/6xgRSNuwzkhw9fBy9 NzaSVI9F4f63/XHX85zemd4iNCCs94jGLYVi8Zj6Fgfiai9M+LiqmVsLtiS4gA3ZTpTq ViDd6jv+2oz3dr3+GmdIlCkkJAJ9MN0VbyVTvhbKxJsdTbrxDejSkXAl5tEdWapQ1V1E fgX5ddCYgKfPlgtoEAgWBRRrCUV2wn0yT8GsLb2DnY54psHNGovKPLIq7qUn+7S9fuyM l7qlC+dZ1gLRb669VmEhY6Nixz7RM/lYyf8N39sjQ+xSMRqn/Se4gGYBGEVEiqcjxRKJ Y3pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=/qDGw5+rgwnGlzkiXKqOACIK+wIaTMx7JRkJ7TcmLUw=; b=VI0+dzWlDw6KkLWWbNsoAb6BOVMvz2J8PRTocUAPDH5r/whchbj3khuK4UfDvw0XbI hFaTjN7JRwvLpp6O5eMfk2zygPfREFdFsGfSsFsR+JZlTthIPewJy3eQXDfe2aMqEG1q hAQjbJGwBiu7VjUVefn1dkoVYoT3ss52FNEtAQEE3z2fPK/4fXZ1MVOuoLBN9AsQGsJI FgunxzDFq3ZdXjBMXHCSg1OpZ/clUnQ4Obrv8CwLOVJM6Kka4xEonTf2jtURhbnbLsB9 4M+z+08u+8KxudG1Rv/rL4tXTQ4NHDtjXTgVr+4S9bk5//GAiwPL9k78CYTpDsOKbmwJ kYrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=b99hvL0t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t33si6637747pgl.530.2019.03.13.15.08.30; Wed, 13 Mar 2019 15:08:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=b99hvL0t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726991AbfCMWIK (ORCPT + 99 others); Wed, 13 Mar 2019 18:08:10 -0400 Received: from mail-qk1-f171.google.com ([209.85.222.171]:43284 "EHLO mail-qk1-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726689AbfCMWIK (ORCPT ); Wed, 13 Mar 2019 18:08:10 -0400 Received: by mail-qk1-f171.google.com with SMTP id s26so2131622qkm.10 for ; Wed, 13 Mar 2019 15:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=/qDGw5+rgwnGlzkiXKqOACIK+wIaTMx7JRkJ7TcmLUw=; b=b99hvL0tzD+2RlQ79OplublQQ/cMZaaXhiwaJrSjCMvzGrV0npbUMGtjVrbo5pCSgP OmBfahqrdAvKNo8Th5waf3rszuqWtW3Oipd/0o1MwWPtatAKOyrD0mgVlCpNAfUlXzqD azlqNDvLpBz0tehnobs7HED0+gMwNyRlzYiYtVdtEt1rJGU6DMQtOPKkO6Hxmcggz++4 COBiMaN73xbtLXWHM8x0do/G+lBHp+osRiJ+duwAWwUY3VzOFa81qK9JDCygYPIhsJ1y umWBtPqUZ98axNe0wnKBXdyLDlyC5dmzcTAgd7Py6ZX9WUqbsCrmsuY1P5HmuV4QoDvO x9MA== 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:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=/qDGw5+rgwnGlzkiXKqOACIK+wIaTMx7JRkJ7TcmLUw=; b=hBNg4ltl5/EXTwNcnuBzRBvInXb+MKmW+Q22iVS1VxX6aE37iTfAeZMiknGjo/HDub q3CZwdJSSxbe7hGtPuZ0Z+W5iKRcA9PTsGPNbN2aRVjw38PQSuqhyRdrEI5vYl40c2SC 5Y3RcrCumBSSoXqwEMt5oxachNrRIfT26v7pnDcfY0eT+BIGnft9Fo8djPgXT+nzeacr R28EtyCIdEA5hk4Z2yUFIcfLRz8s7m0tCFiXJalXXlgdulpGcsqX64bUf/cjAa6n63Lz TjLOPJ7mA79YBmr2LZwwvIxBn9VxTsQoeZoIxBubrhOcxgD48rDpS9Ktp9DAdS7ln4P4 xKIg== X-Gm-Message-State: APjAAAV18ww5Dtv8IuneJ2jUATWCGLcyJCNez5YiFL6ejqB1VPu0L/bj 8kjdjcVTh9Tx0/A4//1ZzivYYQ== X-Received: by 2002:a37:c6d0:: with SMTP id s77mr15011864qkl.116.1552514888756; Wed, 13 Mar 2019 15:08:08 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id w29sm1920517qtk.72.2019.03.13.15.08.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Mar 2019 15:08:08 -0700 (PDT) Date: Wed, 13 Mar 2019 15:08:04 -0700 From: Jakub Kicinski To: Parav Pandit Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, michal.lkml@markovi.net, davem@davemloft.net, gregkh@linuxfoundation.org, jiri@mellanox.com, kwankhede@nvidia.com, alex.williamson@redhat.com, vuhuong@mellanox.com, yuvalav@mellanox.com, kvm@vger.kernel.org Subject: Re: [RFC net-next v1 0/3] Support mlx5 mediated devices in host Message-ID: <20190313150804.3702ae47@cakuba.netronome.com> In-Reply-To: <1552082876-60228-1-git-send-email-parav@mellanox.com> References: <1552082876-60228-1-git-send-email-parav@mellanox.com> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 8 Mar 2019 16:07:53 -0600, Parav Pandit wrote: > Use case: > --------- > A user wants to create/delete hardware linked sub devices without > using SR-IOV. > These devices for a pci device can be netdev (optional rdma device) > or other devices. Such sub devices share some of the PCI device > resources and also have their own dedicated resources. > A user wants to use this device in a host where PF PCI device exist. > (not in a guest VM.) A user may want to use such sub device in future > in guest VM. > > Few examples are: > 1. netdev having its own txq(s), rq(s) and/or hw offload parameters. > 2. netdev with switchdev mode using netdev representor Hi Parav! Sorry for going quiet, I'm hoping to clarify the use cases and the devlink part on the other thread with Jiri, and then come back to implementation details. > 3. rdma device with IB link layer and IPoIB netdev > 4. rdma/RoCE device and a netdev > 5. rdma device with multiple ports