Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1811724imm; Thu, 19 Jul 2018 08:14:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpejVbpXeT9iNlUsW2xyIXoGBGCzVSFX+KAYzMsTQx4tMuKt9Le9zwfFH6Prx9Jn82rguB0B X-Received: by 2002:a63:6e08:: with SMTP id j8-v6mr10381203pgc.428.1532013258177; Thu, 19 Jul 2018 08:14:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532013258; cv=none; d=google.com; s=arc-20160816; b=wfvq7MX3RpXktYdXFGXtBWKYdojOvz6UmjhERTYd60+KLxphxiMKbcvrFInmx59Van AxgPq0e2pORsD42NXuJenvhyCLP40pv9SMnr1gN7w8fRCyNyPK6lPBJQXg3WxL80IqY4 cYNGdgn9OwJrI1jU4J4GNPIO4arc6Otd7Z58y27bYBpqJjxFVdfy+QnNCU2g8rkvZ4jx tDfRUQXs2TxyvTwkNi6jRSab/icwJjC7KmAHihenj02Ynkzu7SGGLbKuJHMZIcBUP7wb OeMGGpVnf+XhyUpwp6UhDKYqIZjnNpp+XtqNEAn5dL/TeCQuLOErDYE6DTwTACqzVRkA Bfsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=4jNIFrG3VcyqV/YSOtZeJPoomFc64au5p9xTOZCJpYI=; b=LwhC6gV23209hhYaXCY0C8igHEwY7mrVBYqAyvS0oPbboCmQmCIPk+6OcIfrjz3Dyj V9D0UxnW+beP8osW5ysaVpUdWftWy/TjrJvY252JAd4ohBDWJwAhMHxBqvX79JjR06gD Z5Dbo9xn2QKbPKmPGj0Zk+0tZd8avuEsBPfLMHcQ23NuOnaN0MYlDAlPMe4xRRouT1gX 2rshaha8/4GiXxBW/8bUIhzxAu5/x1LWu22kt+o2r3r+ia+H76oazb8LMQWnArC3TEVf jqlIhOD0Z3r4KmSBoIAxJ5LzzopLvgVkb/i/Ou0BBjx4+mPWctpKpkLbrvyAZLxmArow S3ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dKqmMcFR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z75-v6si5860929pfk.340.2018.07.19.08.14.03; Thu, 19 Jul 2018 08:14:18 -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=@gmail.com header.s=20161025 header.b=dKqmMcFR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731862AbeGSP4Y (ORCPT + 99 others); Thu, 19 Jul 2018 11:56:24 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:38018 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731008AbeGSP4Y (ORCPT ); Thu, 19 Jul 2018 11:56:24 -0400 Received: by mail-oi0-f65.google.com with SMTP id v8-v6so15591207oie.5; Thu, 19 Jul 2018 08:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4jNIFrG3VcyqV/YSOtZeJPoomFc64au5p9xTOZCJpYI=; b=dKqmMcFR+w4Ihzd+Z/IfeylyGG8FUJwxXbWPnXh/JezXedow0qNxvytF3BDJN2MrJB WbU89PIKTxpX+91MSgDH2wrjMfwFm2aOSB4EZgJzHiGg87bMYMG40xJuWXAbw+udUrSq Y+gg495D4jDX1rfSWF+wxGZ35TCtTUK/ZQbVy2e0DL2YLUcybMLRVeCNKw+6gQUUp4bv VWqtAy7iY1teKBKYHpEuZoehFaPzMCwtCPHNCD8H2cKeEi51/5uJemafHyKyfuGmdUHS UXdTZo+TzXIxulyxYUgY8i8fOagi8FdwO6SsqyDLWnreIoHk/NdyezcFRMaajutekwK0 ugkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4jNIFrG3VcyqV/YSOtZeJPoomFc64au5p9xTOZCJpYI=; b=igCLQVy3rXMdjKa/DVxUeZ9Rgr141aQrChZTwhc4hNnOVAfbyRfo/skaNhX2mREc4L 15gjFwXA/1QkuDEJnkMi4+yUDJGTqu/mTfMbpxIdc8+qrJMemFPw0JPr8q++GOdaOLvU aDpr1TH7kf5v79wXHIIUs3oJV3WJITNVyjbuLlbj/zOKEo0QF1m/FBX2qHG6Jw0vNcEG M5jr3OiTRWlkQuPWqCKlLC4rYD1VskfEOmfkzOL7I0i3u4uizAubfmOZpmaasUcvxfnw Jr9O6ng0eTD5IhMrQ08r3I4A1Rglgr1qwZ+qv6e+9HC4BkN5mQeBRRZBLOt/Bc7seCyu gnNg== X-Gm-Message-State: AOUpUlGFw9n+izuR/AnhTBC+6XRnLlSjRj05iUGxwm76BP/gs4WhNNkb l1riyxREYq2HjLzOW7QjtIHyeFSSnBzrUgdQLFk= X-Received: by 2002:aca:a69b:: with SMTP id t27-v6mr11926560oij.261.1532013166454; Thu, 19 Jul 2018 08:12:46 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac9:42c1:0:0:0:0:0 with HTTP; Thu, 19 Jul 2018 08:12:45 -0700 (PDT) In-Reply-To: References: <20180420162633.46077.49012.stgit@ahduyck-green-test.jf.intel.com> <20180420163109.46077.60334.stgit@ahduyck-green-test.jf.intel.com> From: Alexander Duyck Date: Thu, 19 Jul 2018 08:12:45 -0700 Message-ID: Subject: Re: [pci PATCH v8 4/4] pci-pf-stub: Add PF driver stub for PFs that function only to enable VFs To: Sunil Kovvuri Cc: Alexander Duyck , Bjorn Helgaas , linux-pci , virtio-dev@lists.oasis-open.org, kvm@vger.kernel.org, Linux Netdev List , "Daly, Dan" , LKML , linux-nvme@lists.infradead.org, Keith Busch , netanel@amazon.com, Don Dutile , Maximilian Heyne , "Wang, Liang-min" , "Rustad, Mark D" , David Woodhouse , Christoph Hellwig , dwmw@amazon.co.uk Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 19, 2018 at 3:52 AM, Sunil Kovvuri wrote: > Hi, > >> +static struct pci_driver pf_stub_driver = { >> + .name = "pci-pf-stub", >> + .id_table = pci_pf_stub_white_list, >> + .probe = pci_pf_stub_probe, >> + .sriov_configure = pci_sriov_configure_simple, >> +}; >> + > > Is there any specific reason for not disabling SRIOV upon driver unload/remove ? > > i.e if a user sets numVFs to a non-zero value and unloads this driver > then we have a > situation where there is no PF driver in kernel but VFs still exist. > > Thanks, > Sunil. I think it was probably just an oversight on my part. Feel free to submit a patch to disable SR-IOV on remove and I will give it a quick review/ack assuming the code itself is fine. Thanks. - Alex