All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Smart <James.Smart@Emulex.Com>
To: linux-scsi <linux-scsi@vger.kernel.org>
Subject: [PATCH 17/22] lpfc 8.1.2 : Allow turning on internal loop-back mode
Date: Wed, 08 Feb 2006 10:43:07 -0500	[thread overview]
Message-ID: <43EA118B.8040700@emulex.com> (raw)


Allow turning on internal loop-back mode


Signed-off-by: James Smart <James.Smart@emulex.com>

--- a/drivers/scsi/lpfc/lpfc_mbox.c
+++ b/drivers/scsi/lpfc/lpfc_mbox.c
@@ -195,6 +195,9 @@ lpfc_init_link(struct lpfc_hba * phba,
  		mb->un.varInitLnk.link_flags = FLAGS_TOPOLOGY_MODE_PT_PT;
  		mb->un.varInitLnk.link_flags |= FLAGS_TOPOLOGY_FAILOVER;
  		break;
+	case FLAGS_LOCAL_LB:
+		mb->un.varInitLnk.link_flags = FLAGS_LOCAL_LB;
+		break;
  	}

  	/* NEW_FEATURE
--- a/drivers/scsi/lpfc/lpfc_attr.c
+++ b/drivers/scsi/lpfc/lpfc_attr.c
@@ -616,6 +616,7 @@ LPFC_ATTR_RW(nodev_tmo, 30, 0, 255,
  /*
  # lpfc_topology:  link topology for init link
  #            0x0  = attempt loop mode then point-to-point
+#            0x01 = internal loopback mode
  #            0x02 = attempt point-to-point mode only
  #            0x04 = attempt loop mode only
  #            0x06 = attempt point-to-point mode then loop
@@ -623,7 +624,7 @@ LPFC_ATTR_RW(nodev_tmo, 30, 0, 255,
  # Set loop mode if you want to run as an NL_Port. Value range is [0,0x6].
  # Default value is 0.
  */
-LPFC_ATTR_R(topology, 0, 0, 6, "Select Fibre Channel topology");
+LPFC_ATTR_RW(topology, 0, 0, 6, "Select Fibre Channel topology");

  /*
  # lpfc_link_speed: Link speed selection for initializing the Fibre Channel


             reply	other threads:[~2006-02-08 15:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-08 15:43 James Smart [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-03-01  0:25 [PATCH 17/22] lpfc 8.1.2: Allow turning on internal loop-back mode Jamie Wellnitz

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=43EA118B.8040700@emulex.com \
    --to=james.smart@emulex.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.