linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joe Eykholt <jeykholt@cisco.com>
To: G S <gogman69-linuxscsi@yahoo.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: Fibre Channel pass-through for sending arbitrary FC and SCSI commands
Date: Wed, 30 Sep 2009 23:35:49 -0700	[thread overview]
Message-ID: <4AC44DC5.4060106@cisco.com> (raw)
In-Reply-To: <da0ca6030909302225g6009092bh960a2e09f2cdeadd@mail.gmail.com>



G S wrote:
> Howdy,
> 
> The Linux "sg" (SCSI pass-through) can be used to send arbitrary SCSI
> commands to SCSI target devices.
> 
> But "sg" doesn't give me access to the transport layer details, such
> as constructing my own FCP_CMND and receiving FCP_RSP IU's.
> 
> Is there FC pass-thru in Linux (2.6) SCSI stack, that allows me to
> construct my own transport frames and payloads?

There's /dev/bsg* that gives lets you send ELS and CT frames, but not
just any FC frames.   You need to configure it under the "Block layer"
kconfig menu.  And perhaps not all HBAs support it.   See source
block/bsg.c for details.

> If not, is there vendor (eg. QLogic and Emulex) provided IOCTL module
> that allows application to interface directly to the HBA driver for
> doing FC pass-through?

I don't know that.

	Joe

  reply	other threads:[~2009-10-01  6:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-01  5:25 Fibre Channel pass-through for sending arbitrary FC and SCSI commands G S
2009-10-01  6:35 ` Joe Eykholt [this message]
2009-10-01 14:18   ` James Smart

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=4AC44DC5.4060106@cisco.com \
    --to=jeykholt@cisco.com \
    --cc=gogman69-linuxscsi@yahoo.com \
    --cc=linux-scsi@vger.kernel.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).