summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qedf/qedf.h
diff options
context:
space:
mode:
authorJaved Hasan <jhasan@marvell.com>2021-03-31 18:49:16 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2021-04-13 06:26:11 +0200
commit4aab946f789ed7c2e44481f395ab2eab0b63824a (patch)
treeb8ccba0862114dad946de2b6485a30e9a015bd9b /drivers/scsi/qedf/qedf.h
parentscsi: sni_53c710: Add IRQ check (diff)
downloadlinux-4aab946f789ed7c2e44481f395ab2eab0b63824a.tar.xz
linux-4aab946f789ed7c2e44481f395ab2eab0b63824a.zip
scsi: qedf: Enable devlink support
Devlink instance lifetime was linked to qed_dev object. That caused devlink to be recreated on each recovery. Change it by making higher level driver (qede) responsible for lifetime management. This way devlink survives recoveries. qede now stores devlink structure pointer as a part of its device object, devlink private data contains a linkage structure, qed_devlink. Link: https://lore.kernel.org/r/20210331164917.24662-2-jhasan@marvell.com Signed-off-by: Javed Hasan <jhasan@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qedf/qedf.h')
-rw-r--r--drivers/scsi/qedf/qedf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qedf/qedf.h b/drivers/scsi/qedf/qedf.h
index 0583b0707354..ba94413fe2ea 100644
--- a/drivers/scsi/qedf/qedf.h
+++ b/drivers/scsi/qedf/qedf.h
@@ -333,6 +333,7 @@ struct qedf_ctx {
unsigned int curr_conn_id;
struct workqueue_struct *ll2_recv_wq;
struct workqueue_struct *link_update_wq;
+ struct devlink *devlink;
struct delayed_work link_update;
struct delayed_work link_recovery;
struct completion flogi_compl;