[PATCH v4 10/20] qedn: Add qedn probe
Shai Malin
malin1024 at gmail.com
Mon Jul 5 08:13:39 PDT 2021
On Thu, 1 Jul 2021 at 16:48, Christoph Hellwig <hch at lst.de> wrote:
> On Tue, Jun 29, 2021 at 03:47:33PM +0300, Prabhakar Kushwaha wrote:
> > From: Shai Malin <smalin at marvell.com>
> >
> > This patch introduces the functionality of loading and unloading
> > physical function.
> > qedn_probe() loads the offload device PF(physical function), and
> > initialize the HW and the FW with the PF parameters using the
> > HW ops->qed_nvmetcp_ops, which are similar to other "qed_*_ops" which
> > are used by the qede, qedr, qedf and qedi device drivers.
> > qedn_remove() unloads the offload device PF, re-initialize the HW and
> > the FW with the PF parameters.
> >
> > The struct qedn_ctx is per PF container for PF-specific attributes and
> > resources.
> >
> > Acked-by: Igor Russkikh <irusskikh at marvell.com>
> > Signed-off-by: Dean Balandin <dbalandin at marvell.com>
> > Signed-off-by: Prabhakar Kushwaha <pkushwaha at marvell.com>
> > Signed-off-by: Omkar Kulkarni <okulkarni at marvell.com>
> > Signed-off-by: Michal Kalderon <mkalderon at marvell.com>
> > Signed-off-by: Ariel Elior <aelior at marvell.com>
> > Signed-off-by: Shai Malin <smalin at marvell.com>
> > Reviewed-by: Hannes Reinecke <hare at suse.de>
> > ---
> > drivers/nvme/hw/Kconfig | 1 +
> > drivers/nvme/hw/qedn/qedn.h | 26 ++++++
> > drivers/nvme/hw/qedn/qedn_main.c | 155 ++++++++++++++++++++++++++++++-
> > 3 files changed, 177 insertions(+), 5 deletions(-)
> >
> > diff --git a/drivers/nvme/hw/Kconfig b/drivers/nvme/hw/Kconfig
> > index 374f1f9dbd3d..91b1bd6f07d8 100644
> > --- a/drivers/nvme/hw/Kconfig
> > +++ b/drivers/nvme/hw/Kconfig
> > @@ -2,6 +2,7 @@
> > config NVME_QEDN
> > tristate "Marvell NVM Express over Fabrics TCP offload"
> > depends on NVME_TCP_OFFLOAD
> > + select QED_NVMETCP
>
> This makes kconfig unhappy:
>
> WARNING: unmet direct dependencies detected for QED_NVMETCP
> Depends on [n]: NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_QLOGIC [=n]
> Selected by [y]:
> - NVME_QEDN [=y] && NVME_TCP_OFFLOAD [=y]
>
> While we're at unhappy: without pinpointing it to the pointlessly
> split patches, this series generates tons of sparse warnings:
>
Sorry about that. Will be fixed.
More information about the Linux-nvme
mailing list