linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Neerav Parikh <neerav.parikh@intel.com>
To: linux-scsi@vger.kernel.org
Cc: JBottomley@parallels.com, james.smart@emulex.com, devel@open-fcoe.org
Subject: [PATCH 2/6] scsi_transport_fc: Getting FC Port Speed in sync with FC-GS
Date: Sun, 22 Jan 2012 17:29:55 -0800	[thread overview]
Message-ID: <20120123012955.923.19004.stgit@localhost6.localdomain6> (raw)
In-Reply-To: <20120123012944.923.63220.stgit@localhost6.localdomain6>

The values for the 4G and 10G speeds are not in sync with
definitions in SM-HBA/FC-GS-x/etc.
This patch brings them in sync to these specifications.

The values are converted to strings when represented via
sysfs attribute, hence that should cover for user space
apps as they may not see any change.

Signed-off-by: Neerav Parikh <neerav.parikh@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Acked-by: Robert Love <robert.w.love@intel.com>
---
 include/scsi/scsi_transport_fc.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/scsi/scsi_transport_fc.h b/include/scsi/scsi_transport_fc.h
index 0135cbc..719faf1 100644
--- a/include/scsi/scsi_transport_fc.h
+++ b/include/scsi/scsi_transport_fc.h
@@ -126,8 +126,8 @@ enum fc_vport_state {
 					     incapable of reporting */
 #define FC_PORTSPEED_1GBIT		1
 #define FC_PORTSPEED_2GBIT		2
-#define FC_PORTSPEED_4GBIT		4
-#define FC_PORTSPEED_10GBIT		8
+#define FC_PORTSPEED_10GBIT		4
+#define FC_PORTSPEED_4GBIT		8
 #define FC_PORTSPEED_8GBIT		0x10
 #define FC_PORTSPEED_16GBIT		0x20
 #define FC_PORTSPEED_NOT_NEGOTIATED	(1 << 15) /* Speed not established */


  parent reply	other threads:[~2012-01-23  1:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-23  1:29 [PATCH 0/6] Support FDMI in libfc Neerav Parikh
2012-01-23  1:29 ` [PATCH 1/6] scsi_transport_fc: Add FDMI host attributes Neerav Parikh
2012-01-23  1:29 ` Neerav Parikh [this message]
2012-01-23  1:30 ` [PATCH 3/6] libfc: Make the libfc Common Transport(CT) code generic Neerav Parikh
2012-01-23  1:30 ` [PATCH 4/6] libfc: Add support for FDMI Neerav Parikh
2012-01-23  1:30 ` [PATCH 5/6] fcoe: Add support for FDMI in fcoe Neerav Parikh
2012-01-23  1:30 ` [PATCH 6/6] fcoe: Allow exposing FDMI attributes via sysfs Neerav Parikh

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=20120123012955.923.19004.stgit@localhost6.localdomain6 \
    --to=neerav.parikh@intel.com \
    --cc=JBottomley@parallels.com \
    --cc=devel@open-fcoe.org \
    --cc=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 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).