From: Karan Tilak Kumar <kartilak@cisco.com>
To: sebaddel@cisco.com
Cc: arulponn@cisco.com, djhawar@cisco.com, gcboffa@cisco.com,
mkai2@cisco.com, satishkh@cisco.com, aeasi@cisco.com,
jejb@linux.ibm.com, martin.petersen@oracle.com,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
Karan Tilak Kumar <kartilak@cisco.com>
Subject: [PATCH v2 00/14] Introduce support for Fabric Discovery and
Date: Fri, 9 Aug 2024 09:42:26 -0700 [thread overview]
Message-ID: <20240809164240.47561-1-kartilak@cisco.com> (raw)
Hi Martin, reviewers,
This cover letter describes the feature: add support for Fabric
Discovery and Login Services (FDLS) to fnic driver.
This functionality is needed to support port channel RSCN (PC-RSCN)
handling and serves as a base to create FC-NVME initiators
(planned later), and eCPU handling (planned later).
It is used to discover the fabric and target ports associated with the
fabric.
It will then login to the target ports that are zoned to it.
The driver uses the tport structure presented by FDLS.
Port channel RSCN is a Cisco vendor specific RSCN
event. It is applicable only to Cisco UCS fabrics.
In cases where the eCPU in the UCS VIC (Unified Computing Services
Virtual Interface Card) hangs, a fabric log out is sent to the fabric.
Upon successful log out from the fabric, the IO path is failed over
to a new path.
Generally from a feature perspective, the code is divided into adding
support for this functionality initially. Then, code has been added to
modify the IO path and interfaces. Finally, support for port channel
RSCN handling has been added.
Here are the headers of some of the salient patches:
o add headers and definitions for FDLS
o add support for fabric based solicited requests and responses
o add support for target based solicited requests and responses
o add support for unsolicited requests and responses
o add support for FDMI
o add support for FIP
o add functionality in fnic to support FDLS
o modify IO path to use FDLS and tport
o modify fnic interfaces to use FDLS
o add support to handle port channel RSCN
Even though the patches have been made into a series, some patches are
heavier than others. But, every effort has been made to keep the
purpose of each patch as a single-purpose, and to compile cleanly.
All the individual patches compile cleanly. There are some unused
function warnings, but since the function calls happen in later
patches, those warnings go away.
This patchset has been tested as a whole. Therefore, the tested-by
fields have been added only to one patch in the set.
I've refrained from adding tested-by to most of the patches,
so as to not mislead the reviewer/reader.
A brief note on the unit tests:
o. Perform zone in zone out testing in a loop: remove a target
port from the zone, add it to the zone in a loop. 1000+ iterations
of this test have been successful.
o. Configure multipathing, and run link flaps on single link.
IOs drop briefly, but pick up as expected.
o. Configure multipathing, and run link flaps on two links, with a
30 second delay in between. IOs drop briefly, but pick up as expected.
o. Module load/unload test.
o. Repeat the above tests with 1 queue and 64 queues.
All tests were successful.
Please consider this patch series for the next merge window.
Changes between v1 and v2:
Replace pr_err with printk.
Replace simultaneous use of fc_tport_abts_s and tport_abts with
just tport_abts.
Incorporate review comments by Hannes:
Replace pr_info with dev_info.
Replace pr_err with dev_err.
Restore usage of tagset iterators.
Replace fnic_del_tport_timer_sync macro calls with function
calls.
Use the correct kernel-doc format.
Replace definitions with standard definitions from
fc_els.h.
Replace htonll() with get_unaligned_be64().
Use standard definitions from scsi_transport_fc.h for
port speeds.
Refactor definitions in struct fnic to avoid cache holes.
Replace memcmp with not equal to operator.
Fix indentation.
Replace fnic_del_fabric_timer_sync macro calls to function
calls.
Rename fc_abts_s to fc_tport_abts_s.
Modify fc_tport_abts_s to be a global frame.
Rename variable pfc_abts to tport_abts.
Modify functions with returns in the middle to if else
clauses.
Remove double newline.
Fix indentation in fnic_send_frame.
Add fnic_del_fabric_timer_sync as an inline function.
Add fnic_del_tport_timer_sync as an inline function.
Modify fc_abts_s variable name to fc_fabric_abts_s.
Modify fc_fabric_abts_s to be a global frame.
Rename pfc_abts to fabric_abts.
Remove redundant patch description.
Replace htonll() with get_unaligned_be64().
Replace raw values with macro names.
Remove fnic_del_fabric_timer_sync macro.
Remove fnic_del_tport_timer_sync macro.
Add fnic_del_fabric_timer_sync function declaration.
Add fnic_del_tport_timer_sync function declaration.
Move FDMI function declaration.
Modify patch heading and description appropriately.
Incorporate review comments from John:
Remove unreferenced variable.
Use standard definitions of true and false.
Replace if else clauses with switch statement.
Use kzalloc instead of kmalloc.
Modify fnic_send_fcoe_frame to not send a return value.
Replace int return value with void.
Fix warning from kernel test robot:
Remove version.h
Thanks and regards,
Karan
Karan Tilak Kumar (14):
scsi: fnic: Replace shost_printk with dev_info/dev_err
scsi: fnic: Add headers and definitions for FDLS
scsi: fnic: Add support for fabric based solicited requests and
responses
scsi: fnic: Add support for target based solicited requests and
responses
scsi: fnic: Add support for unsolicited requests and responses
scsi: fnic: Add and integrate support for FDMI
scsi: fnic: Add and integrate support for FIP
scsi: fnic: Add functionality in fnic to support FDLS
scsi: fnic: Modify IO path to use FDLS
scsi: fnic: Modify fnic interfaces to use FDLS
scsi: fnic: Add stats and related functionality
scsi: fnic: Code cleanup
scsi: fnic: Add support to handle port channel RSCN
scsi: fnic: Increment driver version
drivers/scsi/fnic/Makefile | 5 +-
drivers/scsi/fnic/fdls_disc.c | 3909 +++++++++++++++++++++
drivers/scsi/fnic/fdls_fc.h | 555 +++
drivers/scsi/fnic/fip.c | 841 +++++
drivers/scsi/fnic/fip.h | 341 ++
drivers/scsi/fnic/fnic.h | 216 +-
drivers/scsi/fnic/fnic_attrs.c | 12 +-
drivers/scsi/fnic/fnic_debugfs.c | 30 +-
drivers/scsi/fnic/fnic_fcs.c | 1772 ++++------
drivers/scsi/fnic/fnic_fdls.h | 358 ++
drivers/scsi/fnic/fnic_io.h | 14 +-
drivers/scsi/fnic/fnic_isr.c | 28 +-
drivers/scsi/fnic/fnic_main.c | 673 ++--
drivers/scsi/fnic/fnic_pci_subsys_devid.c | 131 +
drivers/scsi/fnic/fnic_res.c | 77 +-
drivers/scsi/fnic/fnic_scsi.c | 1163 +++---
drivers/scsi/fnic/fnic_stats.h | 48 +-
drivers/scsi/fnic/fnic_trace.c | 83 +-
18 files changed, 8380 insertions(+), 1876 deletions(-)
create mode 100644 drivers/scsi/fnic/fdls_disc.c
create mode 100644 drivers/scsi/fnic/fdls_fc.h
create mode 100644 drivers/scsi/fnic/fip.c
create mode 100644 drivers/scsi/fnic/fip.h
create mode 100644 drivers/scsi/fnic/fnic_fdls.h
create mode 100644 drivers/scsi/fnic/fnic_pci_subsys_devid.c
--
2.31.1
next reply other threads:[~2024-08-09 16:44 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-09 16:42 Karan Tilak Kumar [this message]
2024-08-09 16:42 ` [PATCH v2 01/14] scsi: fnic: Replace shost_printk with dev_info/dev_err Karan Tilak Kumar
2024-08-09 16:42 ` [PATCH v2 02/14] scsi: fnic: Add headers and definitions for FDLS Karan Tilak Kumar
2024-08-09 16:42 ` [PATCH v2 03/14] scsi: fnic: Add support for fabric based solicited requests and responses Karan Tilak Kumar
2024-08-10 14:38 ` kernel test robot
2024-08-09 16:42 ` [PATCH v2 04/14] scsi: fnic: Add support for target " Karan Tilak Kumar
2024-08-09 16:42 ` [PATCH v2 05/14] scsi: fnic: Add support for unsolicited " Karan Tilak Kumar
2024-08-09 16:42 ` [PATCH v2 06/14] scsi: fnic: Add and integrate support for FDMI Karan Tilak Kumar
2024-08-09 16:42 ` [PATCH v2 07/14] scsi: fnic: Add and integrate support for FIP Karan Tilak Kumar
2024-08-09 16:42 ` [PATCH v2 08/14] scsi: fnic: Add functionality in fnic to support FDLS Karan Tilak Kumar
2024-08-09 16:42 ` [PATCH v2 09/14] scsi: fnic: Modify IO path to use FDLS Karan Tilak Kumar
2024-08-09 16:42 ` [PATCH v2 10/14] scsi: fnic: Modify fnic interfaces " Karan Tilak Kumar
2024-08-09 16:42 ` [PATCH v2 11/14] scsi: fnic: Add stats and related functionality Karan Tilak Kumar
2024-08-09 16:42 ` [PATCH v2 12/14] scsi: fnic: Code cleanup Karan Tilak Kumar
2024-08-09 16:42 ` [PATCH v2 13/14] scsi: fnic: Add support to handle port channel RSCN Karan Tilak Kumar
2024-08-09 16:42 ` [PATCH v2 14/14] scsi: fnic: Increment driver version Karan Tilak Kumar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240809164240.47561-1-kartilak@cisco.com \
--to=kartilak@cisco.com \
--cc=aeasi@cisco.com \
--cc=arulponn@cisco.com \
--cc=djhawar@cisco.com \
--cc=gcboffa@cisco.com \
--cc=jejb@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=mkai2@cisco.com \
--cc=satishkh@cisco.com \
--cc=sebaddel@cisco.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®