[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1416523323.2280.10.camel@jtkirshe-mobl>
Date: Thu, 20 Nov 2014 14:42:03 -0800
From: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
To: Bjorn Helgaas <bhelgaas@...gle.com>
Cc: Sathya Perla <sathya.perla@...lex.com>, linux.nics@...el.com,
shahed.shaikh@...gic.com, linux-pci@...r.kernel.org,
ddutile@...hat.com, ariel.elior@...gic.com, netdev@...r.kernel.org
Subject: Re: [linux-nics] [PATCH 0/4] move pci_assivned_vfs() check (while
disabling VFs) to pci sub-system
On Thu, 2014-11-20 at 15:21 -0700, Bjorn Helgaas wrote:
> [+cc Jeff]
>
> On Mon, Nov 10, 2014 at 05:23:26PM +0530, Sathya Perla wrote:
> > A user must not be allowed to disable VFs while they are already assigned to
> > a guest. This check is being made in each individual driver that implements
> > the sriov_configure PCI method.
> > This patch-set fixes this code duplication by moving this check from
> > drivers to the sriov_nuvfs_store() routine just before invoking
> > sriov_configure() when num_vfs is equal to 0.
> >
> > Vasundhara Volam (4):
> > pci: move pci_assivned_vfs() check while disabling VFs to pci
> > sub-system
> > bnx2x: remove pci_assigned_vfs() check while disabling VFs
> > i40e: remove pci_assigned_vfs() check while disabling VFs
> > qlcnic: remove pci_assigned_vfs() check while disabling VFs
> >
> > drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c | 2 +-
> > drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 7 +------
> > .../net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c | 10 ----------
> > drivers/pci/pci-sysfs.c | 5 +++++
> > 4 files changed, 7 insertions(+), 17 deletions(-)
>
> I'm dropping these for the reasons Don & Alex outlined -- they don't fix
> the problem for VFIO, so this amounts to shuffling around code that's known
> to be broken, which seems more confusing than worthwhile.
>
> Jeff, if I were you I would drop the i40e patch. I don't think it makes
> sense to remove the check from i40e before adding it to the PCI core.
>
Thanks for the heads up, I will drop the i40e patch as well.
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists