From: Muneendra Kumar M Subject: Fibre Channel Transport Services on Linux Date: Thu, 6 Jun 2019 16:23:48 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1231869251720431936==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: dm-devel@redhat.com Cc: Anand Nataraja Sundaram , Ganesh Murugesan , Ganesh Manjunath Pai , Howard Johnson List-Id: dm-devel.ids --===============1231869251720431936== Content-Type: multipart/alternative; boundary="00000000000073aa45058aa5870f" --00000000000073aa45058aa5870f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Introduction: The Fibre Channel Transport Service provides FC network intelligence in hos= t applications and also provide the host intelligence in FC network. This service can act as a bridge or transport mechanism between applications running on host and the FC network connected to the host. Presently, the service automates the marginal path failover by utilizing th= e FC network intelligence. The service uses Fabric Performance Impact Notification (FPIN) frames, as defined in the FC standards by T11 Committee, to perform = a deterministic path failover. How it works: When the FC network detects a shaky or marginal link in the Fabric, it find= s the impacted devices, gets the device's unique World-Wide-Name (WWNs) and populates the FPIN Link Integrity frame with the WWNs of these impacted devices. This frame is then sent to the FC host, through the Host Bus Adapters (HBAs). The FC transport service interprets the data received through HBA, and fail= s the corresponding marginal paths using the device mapper and multipath libraries. Below are the ways where the marginal path can be moved to active. 1.port toggling after resolving the link issues in fabric 2.Host intervention using multipathd utilities. The code is available in the below GIT repository. https://github.com/brocade/bsn-linux-open-os-contributions Please refer to the README for more details regarding compilation, service functionality and usage. https://github.com/brocade/bsn-linux-open-os-contributions/tree/master/mpio= /Fabric_Assist/FC_Transport_Daemon Contributors: Benjamin:bmarzins@redhat.com, Muneendra:(muneendra.kumar@broadcom.com) Ganesh:(ganesh.pai@broadcom.com) Future Work: Instead of moving the path to fail state we are planning to move the path to special priority group as defined by dm-multipath(which is to be implemented) History: The kernel related changes to send the ELS notifications to the user space is already available in the upstream. Below are the links related to the same. Linux: All the HBA and scsi transport related changes are available in linux upstream https://github.com/torvalds/linux/ CommitId: 1a61e5486aeb90d94dd6116c9749e36edd10bf9b =C3=A8 https://github.com/torvalds/linux/commit/1a61e5486aeb90d94dd6116c9749e36edd= 10bf9b c39e0af64bce3bba61c3986d6083df7b8f29a310 =C3=A8 https://github.com/torvalds/linux/commit/c39e0af64bce3bba61c3986d6083df7b8f= 29a310 2b1be55819dc7ae35576b3ba621c7fed0c323e04 =C3=A8 https://github.com/torvalds/linux/commit/2b1be55819dc7ae35576b3ba621c7fed0c= 323e04 a7dff3ad4787381a3aa831d558fb720b8f354435 =C3=A8 https://github.com/torvalds/linux/commit/a7dff3ad4787381a3aa831d558fb720b8f= 354435 Regards, Muneendra. --00000000000073aa45058aa5870f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <= div class=3D"WordSection1">

Introduction:

The Fibre Channel Transport Service provides FC network inte= lligence in host

applications and also provide th= e host intelligence in FC network. This service

c= an act as a bridge or transport mechanism between applications running on h= ost

and the FC network connected to the host.

=

=C2=A0

Presently, the serv= ice automates the marginal path failover by utilizing the

FC network intelligence. The service uses Fabric Performance Impac= t Notification

(FPIN) frames, as defined in the F= C standards by T11 Committee, to perform a

determ= inistic path failover.

=C2=A0

How it works:

When the FC network detects = a shaky or marginal link in the Fabric, it finds

= the impacted devices, gets the device's unique World-Wide-Name (WWNs) a= nd

populates the FPIN Link Integrity frame with t= he WWNs of these impacted devices.

This frame is = then sent to the FC host, through the Host Bus Adapters (HBAs).

=C2=A0

The FC transport service in= terprets the data received through HBA, and fails

the corresponding marginal paths using the device mapper and multipath

=

libraries.

=C2=A0

Below are the ways where the marginal path can be moved t= o active.

1.port toggling after resolving the lin= k issues in fabric

2.Host intervention using mult= ipathd utilities.

=C2=A0

The code is available in the below GIT repository.

=C2=A0

https://github.com/brocade/bsn-linux-open-= os-contributions

=C2=A0

=C2=A0

Please refer to the README for more d= etails regarding compilation, service

functionali= ty and usage.

=C2=A0

https://github.com/brocade/bsn= -linux-open-os-contributions/tree/master/mpio/Fabric_Assist/FC_Transport_Da= emon

=C2=A0

=C2=A0<= /p>

Contributors:

Benjamin:bmarzins@redhat.com= ,

Muneendra:(muneendra.kumar@broadcom.com)

Gan= esh:(ganesh.pai@broadcom.com= )

=C2=A0

Future Work:

Instead of moving the path to fail state we are pl= anning to move the path to special priority group

as defined by dm-multipath(which is to be implemented)

=C2=A0

History:

= =C2=A0

The kernel related changes to send the ELS= notifications to the user space is already available in the upstream.

<= p class=3D"MsoNormal">Below are the links related to the same.

=C2=A0

Linux:

<= p class=3D"MsoNormal">All the HBA and scsi transport related chang= es are available in linux upstream

=C2=A0

https://github.com/torvalds/linux/=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0

=C2=A0

Com= mitId:

1a61e5486aeb90d94dd6116c97= 49e36edd10bf9b =C3=A8https://git= hub.com/torvalds/linux/commit/1a61e5486aeb90d94dd6116c9749e36edd10bf9b<= span style=3D"font-size:9.0pt;font-family:Consolas;color:#444d56;background= :white">

=C2=A0

c39e0af64bce3bba61c3986d6083df7b8f29a310 =C3=A8https://github.com/torvalds/linux/c= ommit/c39e0af64bce3bba61c3986d6083df7b8f29a310

=C2=A0

2b1be55819dc7ae= 35576b3ba621c7fed0c323e04 =C3=A8= https://github.com/torvalds/linux/commit/2b1be55819dc7ae35576b3ba621c7fed0c= 323e04

=C2=A0

a7dff3ad4787381a3aa831d558fb720b8f354435 =C3=A8https://github.com/torvalds/linux/commit= /a7dff3ad4787381a3aa831d558fb720b8f354435

=C2=A0

Regards,

Muneendra.

--00000000000073aa45058aa5870f-- --===============1231869251720431936== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1231869251720431936==--