From: Hannes Reinecke <hare-l3A5Bk7waGM@public.gmane.org>
To: "Dupuis,
Chad" <chad.dupuis-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>,
martin.petersen-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org
Cc: fcoe-devel-s9riP+hp16TNLxjTenLetw@public.gmane.org,
netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
yuval.mintz-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org,
linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
QLogic-Storage-Upstream-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org
Subject: Re: [PATCH RFC 3/5] qedf: Add offloaded I/O request functions.
Date: Wed, 28 Dec 2016 10:08:09 +0100 [thread overview]
Message-ID: <7cfe465a-ad6c-7604-1262-d4dbf4aee525@suse.de> (raw)
In-Reply-To: <1482520628-24207-4-git-send-email-chad.dupuis-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
On 12/23/2016 08:17 PM, Dupuis, Chad wrote:
> From: "Dupuis, Chad" <chad.dupuis-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
>
> This patch adds various I/O requests types that are handled in firmware:
>
> - Normal I/O requests
> - ABTS requests
> - Cleanup requests
> - Task management requests
>
> It also contains:
>
> - I/O request initialization
> - Firmware completion handling
>
> Signed-off-by: Nilesh Javali <nilesh.javali-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
> Signed-off-by: Manish Rangankar <manish.rangankar-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
> Signed-off-by: Saurav Kashyap <saurav.kashyap-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
> Signed-off-by: Chad Dupuis <chad.dupuis-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
> ---
> drivers/scsi/qedf/qedf_hsi.h | 427 ++++++++
> drivers/scsi/qedf/qedf_io.c | 2303 ++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 2730 insertions(+)
> create mode 100644 drivers/scsi/qedf/qedf_hsi.h
> create mode 100644 drivers/scsi/qedf/qedf_io.c
>
[ .. ]
> +static int qedf_execute_tmf(struct qedf_rport *fcport, struct scsi_cmnd *sc_cmd,
> + uint8_t tm_flags)
> +{
> + struct qedf_ioreq *io_req;
> + struct qedf_mp_req *tm_req;
> + struct fcoe_task_context *task;
> + struct fc_frame_header *fc_hdr;
> + struct fcp_cmnd *fcp_cmnd;
> + struct qedf_ctx *qedf = fcport->qedf;
> + int rc = 0;
> + uint16_t xid;
> + uint32_t sid, did;
> + int tmo = 0;
> + unsigned long flags;
> +
> + if (!sc_cmd) {
> + QEDF_ERR(&(qedf->dbg_ctx), "invalid arg\n");
> + return FAILED;
> + }
> +
> + if (!(test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags))) {
> + QEDF_ERR(&(qedf->dbg_ctx), "fcport not offloaded\n");
> + rc = FAILED;
> + return FAILED;
> + }
> +
> + scsi_block_requests(qedf->lport->host);
> +
Typically, EH commands will be executed after the scsi host is stopped
and no commands are outstanding.
So there's no point in issuing 'scsi_block_requests()' here.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare-l3A5Bk7waGM@public.gmane.org +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
next prev parent reply other threads:[~2016-12-28 9:08 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-23 19:17 [PATCH RFC 0/5] Add QLogic FastLinQ FCoE (qedf) driver Dupuis, Chad
2016-12-23 19:17 ` [PATCH RFC 3/5] qedf: Add offloaded I/O request functions Dupuis, Chad
[not found] ` <1482520628-24207-4-git-send-email-chad.dupuis-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
2016-12-28 9:08 ` Hannes Reinecke [this message]
2017-01-09 16:46 ` [Open-FCoE] " Chad Dupuis
2016-12-23 19:17 ` [PATCH RFC 4/5] qedf: Add offload ELS request handling Dupuis, Chad
2016-12-28 9:10 ` [Open-FCoE] " Hannes Reinecke
[not found] ` <1482520628-24207-1-git-send-email-chad.dupuis-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
2016-12-23 19:17 ` [PATCH RFC net-next 1/5] qed: Add support for hardware offloaded FCoE Dupuis, Chad
[not found] ` <1482520628-24207-2-git-send-email-chad.dupuis-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
2016-12-28 8:41 ` Hannes Reinecke
2016-12-29 17:28 ` [Open-FCoE] " Mintz, Yuval
2017-01-10 16:49 ` Arun Easi
2016-12-23 19:17 ` [PATCH RFC 2/5] qedf: Add QLogic FastLinQ offload FCoE driver framework Dupuis, Chad
2016-12-28 9:00 ` [Open-FCoE] " Hannes Reinecke
2017-01-09 16:45 ` Chad Dupuis
2017-01-10 6:56 ` Hannes Reinecke
2016-12-23 19:17 ` [PATCH RFC 5/5] qedf: Add FIP request handling Dupuis, Chad
[not found] ` <1482520628-24207-6-git-send-email-chad.dupuis-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
2016-12-28 9:11 ` Hannes Reinecke
2017-01-09 16:47 ` [Open-FCoE] " Chad Dupuis
[not found] ` <alpine.OSX.2.00.1701091147040.1044-nVgGmETfwnIFUnR/tdpssI0aTaFgKE92ACYyPGjX6YU@public.gmane.org>
2017-01-10 6:58 ` Hannes Reinecke
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=7cfe465a-ad6c-7604-1262-d4dbf4aee525@suse.de \
--to=hare-l3a5bk7wagm@public.gmane.org \
--cc=QLogic-Storage-Upstream-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org \
--cc=chad.dupuis-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org \
--cc=fcoe-devel-s9riP+hp16TNLxjTenLetw@public.gmane.org \
--cc=linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=martin.petersen-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org \
--cc=netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=yuval.mintz-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org \
/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;
as well as URLs for NNTP newsgroup(s).