From patchwork Fri Nov 3 23:26:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Smart X-Patchwork-Id: 10041369 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 06C84602D8 for ; Fri, 3 Nov 2017 23:26:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E30F629882 for ; Fri, 3 Nov 2017 23:26:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D6C6429A19; Fri, 3 Nov 2017 23:26:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 250F929882 for ; Fri, 3 Nov 2017 23:26:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752352AbdKCX0S (ORCPT ); Fri, 3 Nov 2017 19:26:18 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:47213 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752273AbdKCX0R (ORCPT ); Fri, 3 Nov 2017 19:26:17 -0400 Received: by mail-qt0-f195.google.com with SMTP id z50so5120357qtj.4 for ; Fri, 03 Nov 2017 16:26:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=LlS8Tna+9FknD4ca4FDfASXlAA31RdzqewhsKKM+Mrs=; b=ZN+btcRva/HLPesxwWx7M1LSNnwLnfp2hkCb4gm1C9FWal9nuHGm4oGIpDzVF2fqKR iLirLEWLo/DHEnLNvwNadW7sAFRoI0lbn/sPsmNsRKC0vrhrOrO7Fub2xZklUV3dx6ff gjKxZlRs36bOoaAFiRPEbHyfFHQ4mkKcKe+fWvubxtWDa3Bw/sNs509vn+uDFDXjj6IH RfWwj/IJZpCrcn69WAnmSy8VkxyCDpEU7Ei6AblU/O2gUd68vuL5Es3RqvdAwa13ZHVO tfTUXHwLXcb4swlDpO7/1uJ5h3dmks9yjlSzeNhn0XD2ZEObe/9M9NmVr6D5pIHksOZ7 7uog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=LlS8Tna+9FknD4ca4FDfASXlAA31RdzqewhsKKM+Mrs=; b=avTJY+cHY0vmapG9SKIpaingLGJqQCvpi5zmvysVY+12oNAqJ/WjVepFx/49CHDdKz /2vO/LP3Cm1lKBsL9JnJOP7Z4p2yoAXnZOxWWfXkolx7DvnU5vpRIkcj/Xoz7MdaSyf9 eehCcKiUMs4BpRkTGAA6TH26ix6ypW1p1urG7mVquKkNJBOfZ1+R4xfn81JQJynmIO2s vsh8GiuWUSoJe7ZV8r/nBs/4N76rtIcf7W1Y+UJqCl5fVVduAK0njN1qd0oOHIjxrYiD TJDkGGYpIzOHIMAnq37htfXOyb77Tg5ZbH5UbXWqnWChGCKps82NBQGgeVxE2aU2X6V0 3iyA== X-Gm-Message-State: AMCzsaWJNK7Iud+zxlsEO80jlVhR/wQ+Qn+78cxui5exVuUXrMvrRMMA p/7LBXbyeu/ISf7qHaFfb0tAgllk X-Google-Smtp-Source: ABhQp+S9jWjS3isHcJCtk9jp+2sn+0kUyulTA9WN6WVDHlh4Ugdxhgg2elQkimYAJXUn+bs0O1X74Q== X-Received: by 10.237.55.102 with SMTP id i93mr13331695qtb.333.1509751576945; Fri, 03 Nov 2017 16:26:16 -0700 (PDT) Received: from pallmd1.broadcom.com ([192.19.255.250]) by smtp.gmail.com with ESMTPSA id x35sm4459037qte.26.2017.11.03.16.26.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Nov 2017 16:26:16 -0700 (PDT) From: James Smart To: linux-scsi@vger.kernel.org Cc: James Smart , James Smart Subject: [PATCH] scsi_transport_fc: add 64GBIT and 128GBIT port speed definitions Date: Fri, 3 Nov 2017 16:26:08 -0700 Message-Id: <20171103232608.26460-1-jsmart2021@gmail.com> X-Mailer: git-send-email 2.13.1 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add 64GBIT and 128GBIT port speed definitions. Upcoming hardware will reference these speeds. Signed-off-by: James Smart --- drivers/scsi/scsi_transport_fc.c | 2 ++ include/scsi/scsi_transport_fc.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c index 3c6bc0081fcb..49058295d9bc 100644 --- a/drivers/scsi/scsi_transport_fc.c +++ b/drivers/scsi/scsi_transport_fc.c @@ -267,6 +267,8 @@ static const struct { { FC_PORTSPEED_50GBIT, "50 Gbit" }, { FC_PORTSPEED_100GBIT, "100 Gbit" }, { FC_PORTSPEED_25GBIT, "25 Gbit" }, + { FC_PORTSPEED_64BIT, "64 Gbit" }, + { FC_PORTSPEED_128BIT, "128 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 e8644eea9fe5..8cf30215c177 100644 --- a/include/scsi/scsi_transport_fc.h +++ b/include/scsi/scsi_transport_fc.h @@ -139,6 +139,8 @@ enum fc_vport_state { #define FC_PORTSPEED_50GBIT 0x200 #define FC_PORTSPEED_100GBIT 0x400 #define FC_PORTSPEED_25GBIT 0x800 +#define FC_PORTSPEED_64BIT 0x1000 +#define FC_PORTSPEED_128BIT 0x2000 #define FC_PORTSPEED_NOT_NEGOTIATED (1 << 15) /* Speed not established */ /*