mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH]ibft: Fix the display of a few fields in the NIC attribute  structure in sysfs
@ 2009-04-11 13:29 Ashutosh Naik
  2009-04-11 17:34 ` Konrad Rzeszutek
  2009-04-11 17:56 ` James Bottomley
  0 siblings, 2 replies; 8+ messages in thread
From: Ashutosh Naik @ 2009-04-11 13:29 UTC (permalink / raw)
  To: linux-kernel, linux-scsi, Andrew Morton
  Cc: pjones, konradr, ketuzsezr, Vishnu V. Mandyam

[-- Attachment #1: Type: text/plain, Size: 191 bytes --]

This patch fixes the display of a few fields in the iBFT NIC attribute
structure in sysfs.

Signed-off-by: Ashutosh Naik <ashutosh.naik@gmail.com>
Signed-off-by: Vishnu V<vishnu@chelsio.com>

[-- Attachment #2: iscsi_ibft_c_fix_nic_attribute_display_in_sysfs.txt --]
[-- Type: text/plain, Size: 641 bytes --]

diff -ruN linux-2.6.29.1-orig/drivers/firmware/iscsi_ibft.c linux-2.6.29.1/drivers/firmware/iscsi_ibft.c
--- linux-2.6.29.1-orig/drivers/firmware/iscsi_ibft.c	2009-04-11 18:25:40.000000000 +0530
+++ linux-2.6.29.1/drivers/firmware/iscsi_ibft.c	2009-04-11 18:33:42.000000000 +0530
@@ -754,11 +754,11 @@
 		rc = 1;
 		break;
 	case ibft_eth_ip_addr:
-		if (!memcmp(nic->dhcp, nulls, sizeof(nic->dhcp)))
+		if (memcmp(nic->ip_addr, nulls, sizeof(nic->ip_addr)))
 			rc = 1;
 		break;
 	case ibft_eth_subnet_mask:
-		if (!memcmp(nic->dhcp, nulls, sizeof(nic->dhcp)))
+		if (nic->subnet_mask_prefix)
 			rc = 1;
 		break;
 	case ibft_eth_origin:

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

* Re: [PATCH]ibft: Fix the display of a few fields in the NIC attribute  structure in sysfs
  2009-04-11 13:29 [PATCH]ibft: Fix the display of a few fields in the NIC attribute structure in sysfs Ashutosh Naik
@ 2009-04-11 17:34 ` Konrad Rzeszutek
  2009-04-11 17:56 ` James Bottomley
  1 sibling, 0 replies; 8+ messages in thread
From: Konrad Rzeszutek @ 2009-04-11 17:34 UTC (permalink / raw)
  To: Ashutosh Naik
  Cc: linux-kernel, linux-scsi, Andrew Morton, pjones, Vishnu V. Mandyam

On Saturday 11 April 2009 09:29:36 Ashutosh Naik wrote:
> This patch fixes the display of a few fields in the iBFT NIC attribute
> structure in sysfs.
>
> Signed-off-by: Ashutosh Naik <ashutosh.naik@gmail.com>
> Signed-off-by: Vishnu V<vishnu@chelsio.com>

Thanks for finding such glaring copy-n-paste error.

Acked-off-by:Konrad Rzeszutek <ketuzsezr@darnok.org>



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

* Re: [PATCH]ibft: Fix the display of a few fields in the NIC attribute  structure in sysfs
  2009-04-11 13:29 [PATCH]ibft: Fix the display of a few fields in the NIC attribute structure in sysfs Ashutosh Naik
  2009-04-11 17:34 ` Konrad Rzeszutek
@ 2009-04-11 17:56 ` James Bottomley
  2009-04-11 18:13   ` Ashutosh Naik
  2009-04-12 13:06   ` Konrad Rzeszutek
  1 sibling, 2 replies; 8+ messages in thread
From: James Bottomley @ 2009-04-11 17:56 UTC (permalink / raw)
  To: Ashutosh Naik
  Cc: linux-kernel, linux-scsi, Andrew Morton, pjones, konradr,
	ketuzsezr, Vishnu V. Mandyam

On Sat, 2009-04-11 at 18:59 +0530, Ashutosh Naik wrote:
> This patch fixes the display of a few fields in the iBFT NIC attribute
> structure in sysfs.
> 
> Signed-off-by: Ashutosh Naik <ashutosh.naik@gmail.com>
> Signed-off-by: Vishnu V<vishnu@chelsio.com>

What do these signoffs mean?  Traditionally you sign off on a patch if
it passed through your hands, so if this is a patch from Vishnu which
you're sending in, they need to be in reverse order (and a From: for
Vishnu).

The second question is who picks this up?  The drivers/firmware
directory doesn't seem to have a dedicated tree, so I can take this
through the SCSI tree if required or Andrew can take it through -mm.

James



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

* Re: [PATCH]ibft: Fix the display of a few fields in the NIC attribute  structure in sysfs
  2009-04-11 17:56 ` James Bottomley
@ 2009-04-11 18:13   ` Ashutosh Naik
  2009-04-12 13:06   ` Konrad Rzeszutek
  1 sibling, 0 replies; 8+ messages in thread
From: Ashutosh Naik @ 2009-04-11 18:13 UTC (permalink / raw)
  To: James Bottomley
  Cc: linux-kernel, linux-scsi, Andrew Morton, pjones, konradr,
	ketuzsezr, Vishnu V. Mandyam, open-iscsi

[-- Attachment #1: Type: text/plain, Size: 808 bytes --]

On Sat, Apr 11, 2009 at 11:26 PM, James Bottomley
<James.Bottomley@hansenpartnership.com> wrote:

> What do these signoffs mean?

I am reattaching the patch here:

Description:This patch fixes the display of a few fields in the iBFT
NIC attribute
structure in sysfs.

Signed-off-by: Ashutosh Naik <ashutosh.naik@gmail.com>
Cc: Vishnu V<vishnu@chelsio.com>

> The second question is who picks this up?  The drivers/firmware
> directory doesn't seem to have a dedicated tree, so I can take this
> through the SCSI tree if required or Andrew can take it through -mm.

This is used for display of the various structures of the iBFT table
via sysfs and can be picked up by any iSCSI initiator driver module
that uses the information in the iBFT table to boot over iSCSI, such
as open-iscsi.

[-- Attachment #2: iscsi_ibft_c_fix_nic_attribute_display_in_sysfs.txt --]
[-- Type: text/plain, Size: 641 bytes --]

diff -ruN linux-2.6.29.1-orig/drivers/firmware/iscsi_ibft.c linux-2.6.29.1/drivers/firmware/iscsi_ibft.c
--- linux-2.6.29.1-orig/drivers/firmware/iscsi_ibft.c	2009-04-11 18:25:40.000000000 +0530
+++ linux-2.6.29.1/drivers/firmware/iscsi_ibft.c	2009-04-11 18:33:42.000000000 +0530
@@ -754,11 +754,11 @@
 		rc = 1;
 		break;
 	case ibft_eth_ip_addr:
-		if (!memcmp(nic->dhcp, nulls, sizeof(nic->dhcp)))
+		if (memcmp(nic->ip_addr, nulls, sizeof(nic->ip_addr)))
 			rc = 1;
 		break;
 	case ibft_eth_subnet_mask:
-		if (!memcmp(nic->dhcp, nulls, sizeof(nic->dhcp)))
+		if (nic->subnet_mask_prefix)
 			rc = 1;
 		break;
 	case ibft_eth_origin:

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

* Re: [PATCH]ibft: Fix the display of a few fields in the NIC attribute  structure in sysfs
  2009-04-11 17:56 ` James Bottomley
  2009-04-11 18:13   ` Ashutosh Naik
@ 2009-04-12 13:06   ` Konrad Rzeszutek
  2009-04-15 21:37     ` Andrew Morton
  1 sibling, 1 reply; 8+ messages in thread
From: Konrad Rzeszutek @ 2009-04-12 13:06 UTC (permalink / raw)
  To: James Bottomley
  Cc: Ashutosh Naik, linux-kernel, linux-scsi, Andrew Morton, pjones,
	konradr, Vishnu V. Mandyam

> The second question is who picks this up?  The drivers/firmware
> directory doesn't seem to have a dedicated tree, so I can take this
> through the SCSI tree if required or Andrew can take it through -mm.

Which way works best for everybody? I was thinking SCSI, since the end result 
of this module is to configure the storage used to bootstrap the box.

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

* Re: [PATCH]ibft: Fix the display of a few fields in the NIC attribute  structure in sysfs
  2009-04-12 13:06   ` Konrad Rzeszutek
@ 2009-04-15 21:37     ` Andrew Morton
  2009-04-20 15:59       ` Ashutosh Naik
  2009-04-20 16:00       ` Ashutosh Naik
  0 siblings, 2 replies; 8+ messages in thread
From: Andrew Morton @ 2009-04-15 21:37 UTC (permalink / raw)
  To: ketuzsezr
  Cc: James.Bottomley, ashutosh.naik, linux-kernel, linux-scsi, pjones,
	konradr, vishnu

On Sun, 12 Apr 2009 09:06:59 -0400
Konrad Rzeszutek <ketuzsezr@darnok.org> wrote:

> > The second question is who picks this up?  The drivers/firmware
> > directory doesn't seem to have a dedicated tree, so I can take this
> > through the SCSI tree if required or Andrew can take it through -mm.
> 
> Which way works best for everybody? I was thinking SCSI, since the end result 
> of this module is to configure the storage used to bootstrap the box.

I can merge merge it later this week.

However...


: From: Ashutosh Naik <ashutosh.naik@gmail.com>
: 
: Fix the display of a few fields in the iBFT NIC attribute structure in
: sysfs.
: 
: Signed-off-by: Ashutosh Naik <ashutosh.naik@gmail.com>
: Cc: Vishnu V <vishnu@chelsio.com>
: Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
: ---
: 
:  drivers/firmware/iscsi_ibft.c |    4 ++--
:  1 file changed, 2 insertions(+), 2 deletions(-)
: 
: diff -puN drivers/firmware/iscsi_ibft.c~ibft-fix-the-display-of-a-few-fields-in-the-nic-attribute-structure-in-sysfs drivers/firmware/iscsi_ibft.c
: --- a/drivers/firmware/iscsi_ibft.c~ibft-fix-the-display-of-a-few-fields-in-the-nic-attribute-structure-in-sysfs
: +++ a/drivers/firmware/iscsi_ibft.c
: @@ -754,11 +754,11 @@ static int __init ibft_check_nic_for(str
:  		rc = 1;
:  		break;
:  	case ibft_eth_ip_addr:
: -		if (!memcmp(nic->dhcp, nulls, sizeof(nic->dhcp)))
: +		if (memcmp(nic->ip_addr, nulls, sizeof(nic->ip_addr)))
:  			rc = 1;
:  		break;
:  	case ibft_eth_subnet_mask:
: -		if (!memcmp(nic->dhcp, nulls, sizeof(nic->dhcp)))
: +		if (nic->subnet_mask_prefix)
:  			rc = 1;
:  		break;
:  	case ibft_eth_origin:

The changelog is bad.

What does "fix" mean?  What does the old output look like and how does
this patch change it?

This matters, because this is a userspace interface and who knows, there
might be applications out there which somehow depend on the old and
broken behaviour.

Of course, that might be totally silly and unrealistic but because we
weren't told what the patch actually does, how can I tell?

Please send a new and complete description of this change, thanks.


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

* Re: [PATCH]ibft: Fix the display of a few fields in the NIC attribute  structure in sysfs
  2009-04-15 21:37     ` Andrew Morton
@ 2009-04-20 15:59       ` Ashutosh Naik
  2009-04-20 16:00       ` Ashutosh Naik
  1 sibling, 0 replies; 8+ messages in thread
From: Ashutosh Naik @ 2009-04-20 15:59 UTC (permalink / raw)
  To: Andrew Morton
  Cc: ketuzsezr, James.Bottomley, linux-kernel, linux-scsi, pjones,
	konradr, vishnu

On Thu, Apr 16, 2009 at 3:07 AM, Andrew Morton
<akpm@linux-foundation.org> wrote:
> On Sun, 12 Apr 2009 09:06:59 -0400
> Konrad Rzeszutek <ketuzsezr@darnok.org> wrote:
>
>> > The second question is who picks this up?  The drivers/firmware
>> > directory doesn't seem to have a dedicated tree, so I can take this
>> > through the SCSI tree if required or Andrew can take it through -mm.
>>
>> Which way works best for everybody? I was thinking SCSI, since the end result
>> of this module is to configure the storage used to bootstrap the box.
>
> I can merge merge it later this week.
>
> However...
>
>
> : From: Ashutosh Naik <ashutosh.naik@gmail.com>
> :
> : Fix the display of a few fields in the iBFT NIC attribute structure in
> : sysfs.
<snip>

> The changelog is bad.
>
> What does "fix" mean?  What does the old output look like and how does
> this patch change it?
>
> This matters, because this is a userspace interface and who knows, there
> might be applications out there which somehow depend on the old and
> broken behaviour.
>
> Of course, that might be totally silly and unrealistic but because we
> weren't told what the patch actually does, how can I tell?
>
> Please send a new and complete description of this change, thanks.

Sorry for the delay.

Here is an updated Changelog

The patch ensures that, if the DHCP IP address and the subnet mask for
the interface is present in the iBFT NIC structure, the corresponding
entries are created in sysfs tree for the device. This would hence
create the additional entries in the tree based on the iBFT table and
would not delete any existing entries.

Thanks.

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

* Re: [PATCH]ibft: Fix the display of a few fields in the NIC attribute  structure in sysfs
  2009-04-15 21:37     ` Andrew Morton
  2009-04-20 15:59       ` Ashutosh Naik
@ 2009-04-20 16:00       ` Ashutosh Naik
  1 sibling, 0 replies; 8+ messages in thread
From: Ashutosh Naik @ 2009-04-20 16:00 UTC (permalink / raw)
  To: Andrew Morton
  Cc: ketuzsezr, James.Bottomley, linux-kernel, linux-scsi, pjones,
	konradr, vishnu

On Thu, Apr 16, 2009 at 3:07 AM, Andrew Morton
<akpm@linux-foundation.org> wrote:
> On Sun, 12 Apr 2009 09:06:59 -0400
> Konrad Rzeszutek <ketuzsezr@darnok.org> wrote:
>
>> > The second question is who picks this up?  The drivers/firmware
>> > directory doesn't seem to have a dedicated tree, so I can take this
>> > through the SCSI tree if required or Andrew can take it through -mm.
>>
>> Which way works best for everybody? I was thinking SCSI, since the end result
>> of this module is to configure the storage used to bootstrap the box.
>
> I can merge merge it later this week.
>
> However...
>
>
> : From: Ashutosh Naik <ashutosh.naik@gmail.com>
> :
> : Fix the display of a few fields in the iBFT NIC attribute structure in
> : sysfs.
<snip>

> The changelog is bad.
>
> What does "fix" mean?  What does the old output look like and how does
> this patch change it?
>
> This matters, because this is a userspace interface and who knows, there
> might be applications out there which somehow depend on the old and
> broken behaviour.
>
> Of course, that might be totally silly and unrealistic but because we
> weren't told what the patch actually does, how can I tell?
>
> Please send a new and complete description of this change, thanks.

Sorry for the delay.

Here is an updated Changelog

The patch ensures that on, if the DHCP

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

end of thread, other threads:[~2009-04-20 16:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-11 13:29 [PATCH]ibft: Fix the display of a few fields in the NIC attribute structure in sysfs Ashutosh Naik
2009-04-11 17:34 ` Konrad Rzeszutek
2009-04-11 17:56 ` James Bottomley
2009-04-11 18:13   ` Ashutosh Naik
2009-04-12 13:06   ` Konrad Rzeszutek
2009-04-15 21:37     ` Andrew Morton
2009-04-20 15:59       ` Ashutosh Naik
2009-04-20 16:00       ` Ashutosh Naik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome