* [PATCH] thaw FC local port
@ 2010-12-16 16:07 Hillf Danton
2010-12-16 23:18 ` Robert Love
0 siblings, 1 reply; 6+ messages in thread
From: Hillf Danton @ 2010-12-16 16:07 UTC (permalink / raw)
To: devel; +Cc: Joe Eykholt, linux-scsi
The state machine of local port is freezed if it could not get ready,
so thawing is necessary.
Signed-off-by: Hillf Danton <dhillf@gmail.com>
---
--- a/drivers/scsi/libfc/fc_lport.c 2010-11-01 19:54:12.000000000 +0800
+++ b/drivers/scsi/libfc/fc_lport.c 2010-12-17 00:08:06.000000000 +0800
@@ -1514,11 +1514,11 @@ void fc_lport_enter_flogi(struct fc_lpor
fc_lport_state_enter(lport, LPORT_ST_FLOGI);
- if (lport->point_to_multipoint) {
- if (lport->port_id)
+ if (lport->point_to_multipoint)
+ if (lport->port_id) {
fc_lport_enter_ready(lport);
- return;
- }
+ return;
+ }
fp = fc_frame_alloc(lport, sizeof(struct fc_els_flogi));
if (!fp)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] thaw FC local port
2010-12-16 16:07 [PATCH] thaw FC local port Hillf Danton
@ 2010-12-16 23:18 ` Robert Love
2010-12-17 13:46 ` Hillf Danton
0 siblings, 1 reply; 6+ messages in thread
From: Robert Love @ 2010-12-16 23:18 UTC (permalink / raw)
To: Hillf Danton; +Cc: devel@open-fcoe.org, Joe Eykholt, linux-scsi@vger.kernel.org
On Thu, 2010-12-16 at 08:07 -0800, Hillf Danton wrote:
> The state machine of local port is freezed if it could not get ready,
> so thawing is necessary.
>
Please start putting a prefix "fcoe: ", "libfc: " or "libfcoe: " on your
patch titles. Also, please provide more meaningful commit messages. I
believe that I've pointed out these two issues with your patches before.
> Signed-off-by: Hillf Danton <dhillf@gmail.com>
> ---
>
> --- a/drivers/scsi/libfc/fc_lport.c 2010-11-01 19:54:12.000000000 +0800
> +++ b/drivers/scsi/libfc/fc_lport.c 2010-12-17 00:08:06.000000000 +0800
> @@ -1514,11 +1514,11 @@ void fc_lport_enter_flogi(struct fc_lpor
>
> fc_lport_state_enter(lport, LPORT_ST_FLOGI);
>
> - if (lport->point_to_multipoint) {
> - if (lport->port_id)
> + if (lport->point_to_multipoint)
> + if (lport->port_id) {
> fc_lport_enter_ready(lport);
> - return;
> - }
> + return;
> + }
>
> fp = fc_frame_alloc(lport, sizeof(struct fc_els_flogi));
> if (!fp)
We do not want to proceed with sending a FLOGI here when we're in
point-to-multipoint (VN2VN) mode. VN2VN is a mode where there is no
fabric and we FLOGI directly into the remote port. So for VN2VN the
FLOGI happens in the rport layer.
//Rob
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] thaw FC local port
2010-12-16 23:18 ` Robert Love
@ 2010-12-17 13:46 ` Hillf Danton
2010-12-17 19:04 ` Robert Love
2010-12-17 19:33 ` Joe Eykholt
0 siblings, 2 replies; 6+ messages in thread
From: Hillf Danton @ 2010-12-17 13:46 UTC (permalink / raw)
To: Robert Love; +Cc: devel@open-fcoe.org, Joe Eykholt, linux-scsi@vger.kernel.org
On Fri, Dec 17, 2010 at 7:18 AM, Robert Love <robert.w.love@intel.com> wrote:
> On Thu, 2010-12-16 at 08:07 -0800, Hillf Danton wrote:
>> The state machine of local port is freezed if it could not get ready,
>> so thawing is necessary.
>>
> Please start putting a prefix "fcoe: ", "libfc: " or "libfcoe: " on your
> patch titles. Also, please provide more meaningful commit messages. I
> believe that I've pointed out these two issues with your patches before.
>
>> Signed-off-by: Hillf Danton <dhillf@gmail.com>
>> ---
>>
>> --- a/drivers/scsi/libfc/fc_lport.c 2010-11-01 19:54:12.000000000 +0800
>> +++ b/drivers/scsi/libfc/fc_lport.c 2010-12-17 00:08:06.000000000 +0800
>> @@ -1514,11 +1514,11 @@ void fc_lport_enter_flogi(struct fc_lpor
>>
>> fc_lport_state_enter(lport, LPORT_ST_FLOGI);
>>
>> - if (lport->point_to_multipoint) {
>> - if (lport->port_id)
>> + if (lport->point_to_multipoint)
>> + if (lport->port_id) {
>> fc_lport_enter_ready(lport);
>> - return;
>> - }
>> + return;
>> + }
>>
>> fp = fc_frame_alloc(lport, sizeof(struct fc_els_flogi));
>> if (!fp)
>
> We do not want to proceed with sending a FLOGI here when we're in
> point-to-multipoint (VN2VN) mode. VN2VN is a mode where there is no
> fabric and we FLOGI directly into the remote port. So for VN2VN the
> FLOGI happens in the rport layer.
How will lport get out of the LPORT_ST_FLOGI state then?
Thanks
Hillf
>
> //Rob
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] thaw FC local port
2010-12-17 13:46 ` Hillf Danton
@ 2010-12-17 19:04 ` Robert Love
2010-12-18 13:20 ` Hillf Danton
2010-12-17 19:33 ` Joe Eykholt
1 sibling, 1 reply; 6+ messages in thread
From: Robert Love @ 2010-12-17 19:04 UTC (permalink / raw)
To: Hillf Danton; +Cc: devel@open-fcoe.org, Joe Eykholt, linux-scsi@vger.kernel.org
On Fri, 2010-12-17 at 05:46 -0800, Hillf Danton wrote:
> On Fri, Dec 17, 2010 at 7:18 AM, Robert Love <robert.w.love@intel.com> wrote:
> > On Thu, 2010-12-16 at 08:07 -0800, Hillf Danton wrote:
> >> The state machine of local port is freezed if it could not get ready,
> >> so thawing is necessary.
> >>
> > Please start putting a prefix "fcoe: ", "libfc: " or "libfcoe: " on your
> > patch titles. Also, please provide more meaningful commit messages. I
> > believe that I've pointed out these two issues with your patches before.
> >
> >> Signed-off-by: Hillf Danton <dhillf@gmail.com>
> >> ---
> >>
> >> --- a/drivers/scsi/libfc/fc_lport.c 2010-11-01 19:54:12.000000000 +0800
> >> +++ b/drivers/scsi/libfc/fc_lport.c 2010-12-17 00:08:06.000000000 +0800
> >> @@ -1514,11 +1514,11 @@ void fc_lport_enter_flogi(struct fc_lpor
> >>
> >> fc_lport_state_enter(lport, LPORT_ST_FLOGI);
> >>
> >> - if (lport->point_to_multipoint) {
> >> - if (lport->port_id)
> >> + if (lport->point_to_multipoint)
> >> + if (lport->port_id) {
> >> fc_lport_enter_ready(lport);
> >> - return;
> >> - }
> >> + return;
> >> + }
> >>
> >> fp = fc_frame_alloc(lport, sizeof(struct fc_els_flogi));
> >> if (!fp)
> >
> > We do not want to proceed with sending a FLOGI here when we're in
> > point-to-multipoint (VN2VN) mode. VN2VN is a mode where there is no
> > fabric and we FLOGI directly into the remote port. So for VN2VN the
> > FLOGI happens in the rport layer.
>
> How will lport get out of the LPORT_ST_FLOGI state then?
>
fc_lport_set_local_id
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] thaw FC local port
2010-12-17 13:46 ` Hillf Danton
2010-12-17 19:04 ` Robert Love
@ 2010-12-17 19:33 ` Joe Eykholt
1 sibling, 0 replies; 6+ messages in thread
From: Joe Eykholt @ 2010-12-17 19:33 UTC (permalink / raw)
To: Hillf Danton; +Cc: Robert Love, devel@open-fcoe.org, linux-scsi@vger.kernel.org
On 12/17/10 5:46 AM, Hillf Danton wrote:
> On Fri, Dec 17, 2010 at 7:18 AM, Robert Love <robert.w.love@intel.com> wrote:
>> On Thu, 2010-12-16 at 08:07 -0800, Hillf Danton wrote:
>>> The state machine of local port is freezed if it could not get ready,
>>> so thawing is necessary.
>>>
>> Please start putting a prefix "fcoe: ", "libfc: " or "libfcoe: " on your
>> patch titles. Also, please provide more meaningful commit messages. I
>> believe that I've pointed out these two issues with your patches before.
>>
>>> Signed-off-by: Hillf Danton <dhillf@gmail.com>
>>> ---
>>>
>>> --- a/drivers/scsi/libfc/fc_lport.c 2010-11-01 19:54:12.000000000 +0800
>>> +++ b/drivers/scsi/libfc/fc_lport.c 2010-12-17 00:08:06.000000000 +0800
>>> @@ -1514,11 +1514,11 @@ void fc_lport_enter_flogi(struct fc_lpor
>>>
>>> fc_lport_state_enter(lport, LPORT_ST_FLOGI);
>>>
>>> - if (lport->point_to_multipoint) {
>>> - if (lport->port_id)
>>> + if (lport->point_to_multipoint)
>>> + if (lport->port_id) {
>>> fc_lport_enter_ready(lport);
>>> - return;
>>> - }
>>> + return;
>>> + }
>>>
>>> fp = fc_frame_alloc(lport, sizeof(struct fc_els_flogi));
>>> if (!fp)
>>
>> We do not want to proceed with sending a FLOGI here when we're in
>> point-to-multipoint (VN2VN) mode. VN2VN is a mode where there is no
>> fabric and we FLOGI directly into the remote port. So for VN2VN the
>> FLOGI happens in the rport layer.
>
> How will lport get out of the LPORT_ST_FLOGI state then?
By getting a FLOGI accept. Why else would it need to?
What end-user problem are you trying to solve.
Also, I suggest *not* copying linux-scsi. This can be handled by
those subscribed to devel@open-fcoe.org.
Joe
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] thaw FC local port
2010-12-17 19:04 ` Robert Love
@ 2010-12-18 13:20 ` Hillf Danton
0 siblings, 0 replies; 6+ messages in thread
From: Hillf Danton @ 2010-12-18 13:20 UTC (permalink / raw)
To: Robert Love; +Cc: devel@open-fcoe.org, Joe Eykholt, linux-scsi@vger.kernel.org
On Sat, Dec 18, 2010 at 3:04 AM, Robert Love <robert.w.love@intel.com> wrote:
> On Fri, 2010-12-17 at 05:46 -0800, Hillf Danton wrote:
>> On Fri, Dec 17, 2010 at 7:18 AM, Robert Love <robert.w.love@intel.com> wrote:
>> > On Thu, 2010-12-16 at 08:07 -0800, Hillf Danton wrote:
>> >> The state machine of local port is freezed if it could not get ready,
>> >> so thawing is necessary.
>> >>
>> > Please start putting a prefix "fcoe: ", "libfc: " or "libfcoe: " on your
>> > patch titles. Also, please provide more meaningful commit messages. I
>> > believe that I've pointed out these two issues with your patches before.
>> >
>> >> Signed-off-by: Hillf Danton <dhillf@gmail.com>
>> >> ---
>> >>
>> >> --- a/drivers/scsi/libfc/fc_lport.c 2010-11-01 19:54:12.000000000 +0800
>> >> +++ b/drivers/scsi/libfc/fc_lport.c 2010-12-17 00:08:06.000000000 +0800
>> >> @@ -1514,11 +1514,11 @@ void fc_lport_enter_flogi(struct fc_lpor
>> >>
>> >> fc_lport_state_enter(lport, LPORT_ST_FLOGI);
>> >>
>> >> - if (lport->point_to_multipoint) {
>> >> - if (lport->port_id)
>> >> + if (lport->point_to_multipoint)
>> >> + if (lport->port_id) {
>> >> fc_lport_enter_ready(lport);
>> >> - return;
>> >> - }
>> >> + return;
>> >> + }
>> >>
>> >> fp = fc_frame_alloc(lport, sizeof(struct fc_els_flogi));
>> >> if (!fp)
>> >
>> > We do not want to proceed with sending a FLOGI here when we're in
>> > point-to-multipoint (VN2VN) mode. VN2VN is a mode where there is no
>> > fabric and we FLOGI directly into the remote port. So for VN2VN the
>> > FLOGI happens in the rport layer.
>>
>> How will lport get out of the LPORT_ST_FLOGI state then?
>>
>
> fc_lport_set_local_id
>
You are right, thanks.
Hillf
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-12-18 13:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-16 16:07 [PATCH] thaw FC local port Hillf Danton
2010-12-16 23:18 ` Robert Love
2010-12-17 13:46 ` Hillf Danton
2010-12-17 19:04 ` Robert Love
2010-12-18 13:20 ` Hillf Danton
2010-12-17 19:33 ` Joe Eykholt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox