From patchwork Fri Apr 5 23:04:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Smart X-Patchwork-Id: 10887947 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 95C71922 for ; Fri, 5 Apr 2019 23:04:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BB72286D7 for ; Fri, 5 Apr 2019 23:04:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BAEA28B35; Fri, 5 Apr 2019 23:04:33 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,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 176FB286D7 for ; Fri, 5 Apr 2019 23:04:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726265AbfDEXEc (ORCPT ); Fri, 5 Apr 2019 19:04:32 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:35497 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726124AbfDEXEc (ORCPT ); Fri, 5 Apr 2019 19:04:32 -0400 Received: by mail-pf1-f193.google.com with SMTP id t21so1740666pfh.2 for ; Fri, 05 Apr 2019 16:04:32 -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=kk6yJwwnwNv479JBEQgvuAnCGrNW2B/27yj5ry906zQ=; b=nGTP/XLdeyuRJxrTe7hXBGqGLQLiQTFmS7yB0ImQb2Rn5A3Qw0hzGU3hjCxEkSVeqG gcF2Ytj7w8qqMLpnesHM0gCU1sPN2dRYaO+njTEvq6N0X8Yn2g8IFuXeM3IPrVI2HKRZ 197AFgYpfB6cST6CJtIzoTBwhReptmTqIj718c1uPJN39VxHSWL2SacC8P2tRFGjZhrk Vzy5/m09P7WQ/lKzYVNTYy618IhxN0XCtcu/ZZdN+3YuCNdCYk1NjT8eP2Q890Omr3zU 3KZ/WmTPGa1ZPlDaVvi+T7EHNxJclQgO+2y/CFE0mMW6gFBpAYDTRAp8qlIMMyT77rLI Sobw== 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=kk6yJwwnwNv479JBEQgvuAnCGrNW2B/27yj5ry906zQ=; b=dMFUF2hleIF4Si4VuOS1/h6terstNUw491FqAPzXEbtzY0QSkYagZYVaT0zinHDNy5 pxgf89GyPbTOg8c02G4+YyQiiDEl4Kb/ble05NEwr5lw9/QukRl4XDUcjP6W74gWYyHp /I19hqHQYVyET/fSIpk7T3mA+iYuiCloHDvRq+1cVYPyZhfFTkLk/mG2mbgw6CHGt5g4 7sKuttIV3L2wOiuW7nsKyQUh0UISS3PlUK803VnJOBPQJOqosGRQ/0q2LN4pT/r6qa5x g9A3Yy0XYTggUDQ1DMqPJWI1JUDvn0ysTcqxJWFMInLt9tno7v3e8R0Mha4AJIbIxPAO 4EHA== X-Gm-Message-State: APjAAAWuKxhiidkHfu8fM34YcZ7AYk5DlkysyvOQYN3sZ/zxKM4cAi1P a6n1mE80aSgSIgQjxMinr65bQgqm X-Google-Smtp-Source: APXvYqy278oyLnE7EcxaZ/YYNZ3SNzGtHAmfGSjiw3hiRWYyCyIsCYsM8rRVJ3QDMMewCFHqWL05iQ== X-Received: by 2002:a65:6410:: with SMTP id a16mr785145pgv.315.1554505471102; Fri, 05 Apr 2019 16:04:31 -0700 (PDT) Received: from os42.localdomain ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id j67sm30805068pfc.72.2019.04.05.16.04.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Apr 2019 16:04:30 -0700 (PDT) From: James Smart To: linux-scsi@vger.kernel.org Cc: muneendra.kumar@broadcom.com, James Smart Subject: [PATCH 0/4] scsi fc FPIN event support Date: Fri, 5 Apr 2019 16:04:19 -0700 Message-Id: <20190405230423.4316-1-jsmart2021@gmail.com> X-Mailer: git-send-email 2.13.7 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 The FC standard has defined a new Fabric Performance Impact Notification (FPIN) ELS that can be sent from the fabric to an endpoint to communicate fabric integrity information. The FPIN may communicate congestion detection, link integrity issues, or other similar conditions. This patch set adds minimal support for the new FPIN ELS which is still being worked in T11. The base ELS format is defined and scsi_transport_fc is updated to allow an lldd to pass it an FPIN, which the transport will post as an fc event with the FPIN payload. In the future, it may be interesting to parse the payload and set attributes on different fc ports. The last patch updates the lpfc driver to post a received FPIN. These patches were cut from the 5.2/scsi-queue branch. James Smart (4): scsi fc: add FPIN ELS definition scsi_transport_fc: refactor event posting routines scsi_transport_fc: Add FPIN fc event codes lpfc: add support for posting FC events on FPIN reception drivers/scsi/lpfc/lpfc_els.c | 8 +++ drivers/scsi/lpfc/lpfc_hw.h | 4 ++ drivers/scsi/scsi_transport_fc.c | 116 +++++++++++++++++++-------------------- include/scsi/scsi_transport_fc.h | 13 ++++- include/uapi/scsi/fc/fc_els.h | 33 +++++++++++ 5 files changed, 113 insertions(+), 61 deletions(-) Reviewed-by: Ewan D. Milne