All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scsi: add 256GBit speed setting to scsi fc transport
@ 2020-08-31 21:35 James Smart
  2020-09-01 14:36 ` Himanshu Madhani
  2020-09-09  2:09 ` Martin K. Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: James Smart @ 2020-08-31 21:35 UTC (permalink / raw)
  To: linux-scsi; +Cc: James Smart

Add 256GBit speed setting to the scsi fc transport.  This speed can be
reached via FC trunking techniques.

Signed-off-by: James Smart <james.smart@broadcom.com>
---
 drivers/scsi/scsi_transport_fc.c | 1 +
 include/scsi/scsi_transport_fc.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c
index 2732fa65119c..2ff7f06203da 100644
--- a/drivers/scsi/scsi_transport_fc.c
+++ b/drivers/scsi/scsi_transport_fc.c
@@ -253,6 +253,7 @@ static const struct {
 	{ FC_PORTSPEED_25GBIT,		"25 Gbit" },
 	{ FC_PORTSPEED_64GBIT,		"64 Gbit" },
 	{ FC_PORTSPEED_128GBIT,		"128 Gbit" },
+	{ FC_PORTSPEED_256GBIT,		"256 Gbit" },
 	{ FC_PORTSPEED_NOT_NEGOTIATED,	"Not Negotiated" },
 };
 fc_bitfield_name_search(port_speed, fc_port_speed_names)
diff --git a/include/scsi/scsi_transport_fc.h b/include/scsi/scsi_transport_fc.h
index 7db2dd783834..1c7dd35cb7a0 100644
--- a/include/scsi/scsi_transport_fc.h
+++ b/include/scsi/scsi_transport_fc.h
@@ -124,6 +124,7 @@ enum fc_vport_state {
 #define FC_PORTSPEED_25GBIT		0x800
 #define FC_PORTSPEED_64GBIT		0x1000
 #define FC_PORTSPEED_128GBIT		0x2000
+#define FC_PORTSPEED_256GBIT		0x4000
 #define FC_PORTSPEED_NOT_NEGOTIATED	(1 << 15) /* Speed not established */
 
 /*
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] scsi: add 256GBit speed setting to scsi fc transport
  2020-08-31 21:35 [PATCH] scsi: add 256GBit speed setting to scsi fc transport James Smart
@ 2020-09-01 14:36 ` Himanshu Madhani
  2020-09-09  2:09 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Himanshu Madhani @ 2020-09-01 14:36 UTC (permalink / raw)
  To: James Smart; +Cc: linux-scsi



> On Aug 31, 2020, at 4:35 PM, James Smart <james.smart@broadcom.com> wrote:
> 
> Add 256GBit speed setting to the scsi fc transport.  This speed can be
> reached via FC trunking techniques.
> 
> Signed-off-by: James Smart <james.smart@broadcom.com>
> ---
> drivers/scsi/scsi_transport_fc.c | 1 +
> include/scsi/scsi_transport_fc.h | 1 +
> 2 files changed, 2 insertions(+)
> 
> diff --git a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c
> index 2732fa65119c..2ff7f06203da 100644
> --- a/drivers/scsi/scsi_transport_fc.c
> +++ b/drivers/scsi/scsi_transport_fc.c
> @@ -253,6 +253,7 @@ static const struct {
> 	{ FC_PORTSPEED_25GBIT,		"25 Gbit" },
> 	{ FC_PORTSPEED_64GBIT,		"64 Gbit" },
> 	{ FC_PORTSPEED_128GBIT,		"128 Gbit" },
> +	{ FC_PORTSPEED_256GBIT,		"256 Gbit" },
> 	{ FC_PORTSPEED_NOT_NEGOTIATED,	"Not Negotiated" },
> };
> fc_bitfield_name_search(port_speed, fc_port_speed_names)
> diff --git a/include/scsi/scsi_transport_fc.h b/include/scsi/scsi_transport_fc.h
> index 7db2dd783834..1c7dd35cb7a0 100644
> --- a/include/scsi/scsi_transport_fc.h
> +++ b/include/scsi/scsi_transport_fc.h
> @@ -124,6 +124,7 @@ enum fc_vport_state {
> #define FC_PORTSPEED_25GBIT		0x800
> #define FC_PORTSPEED_64GBIT		0x1000
> #define FC_PORTSPEED_128GBIT		0x2000
> +#define FC_PORTSPEED_256GBIT		0x4000
> #define FC_PORTSPEED_NOT_NEGOTIATED	(1 << 15) /* Speed not established */
> 
> /*
> -- 
> 2.26.2
> 

Looks Good. 

Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>

--
Himanshu Madhani	 Oracle Linux Engineering


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] scsi: add 256GBit speed setting to scsi fc transport
  2020-08-31 21:35 [PATCH] scsi: add 256GBit speed setting to scsi fc transport James Smart
  2020-09-01 14:36 ` Himanshu Madhani
@ 2020-09-09  2:09 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2020-09-09  2:09 UTC (permalink / raw)
  To: linux-scsi, James Smart; +Cc: Martin K . Petersen

On Mon, 31 Aug 2020 14:35:18 -0700, James Smart wrote:

> Add 256GBit speed setting to the scsi fc transport.  This speed can be
> reached via FC trunking techniques.

Applied to 5.10/scsi-queue, thanks!

[1/1] scsi: fc: Add 256GBit speed setting to SCSI FC transport
      https://git.kernel.org/mkp/scsi/c/2a5c98d2d2fe

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-09  2:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-31 21:35 [PATCH] scsi: add 256GBit speed setting to scsi fc transport James Smart
2020-09-01 14:36 ` Himanshu Madhani
2020-09-09  2:09 ` Martin K. Petersen

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.