2009-04-11 13:29:48

by Ashutosh Naik

[permalink] [raw]
Subject: [PATCH]ibft: Fix the display of a few fields in the NIC attribute structure in sysfs

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

Signed-off-by: Ashutosh Naik <[email protected]>
Signed-off-by: Vishnu V<[email protected]>


Attachments:
iscsi_ibft_c_fix_nic_attribute_display_in_sysfs.txt (641.00 B)

2009-04-11 17:45:14

by Konrad Rzeszutek Wilk

[permalink] [raw]
Subject: Re: [PATCH]ibft: Fix the display of a few fields in the NIC attribute structure in sysfs

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 <[email protected]>
> Signed-off-by: Vishnu V<[email protected]>

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

Acked-off-by:Konrad Rzeszutek <[email protected]>

2009-04-11 17:56:37

by James Bottomley

[permalink] [raw]
Subject: Re: [PATCH]ibft: Fix the display of a few fields in the NIC attribute structure in sysfs

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 <[email protected]>
> Signed-off-by: Vishnu V<[email protected]>

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

2009-04-11 18:14:01

by Ashutosh Naik

[permalink] [raw]
Subject: Re: [PATCH]ibft: Fix the display of a few fields in the NIC attribute structure in sysfs

On Sat, Apr 11, 2009 at 11:26 PM, James Bottomley
<[email protected]> 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 <[email protected]>
Cc: Vishnu V<[email protected]>

> 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.


Attachments:
iscsi_ibft_c_fix_nic_attribute_display_in_sysfs.txt (641.00 B)

2009-04-12 13:08:47

by Konrad Rzeszutek Wilk

[permalink] [raw]
Subject: Re: [PATCH]ibft: Fix the display of a few fields in the NIC attribute structure in sysfs

> 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.

2009-04-15 21:43:43

by Andrew Morton

[permalink] [raw]
Subject: Re: [PATCH]ibft: Fix the display of a few fields in the NIC attribute structure in sysfs

On Sun, 12 Apr 2009 09:06:59 -0400
Konrad Rzeszutek <[email protected]> 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 <[email protected]>
:
: Fix the display of a few fields in the iBFT NIC attribute structure in
: sysfs.
:
: Signed-off-by: Ashutosh Naik <[email protected]>
: Cc: Vishnu V <[email protected]>
: Signed-off-by: Andrew Morton <[email protected]>
: ---
:
: 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.

2009-04-20 15:59:27

by Ashutosh Naik

[permalink] [raw]
Subject: Re: [PATCH]ibft: Fix the display of a few fields in the NIC attribute structure in sysfs

On Thu, Apr 16, 2009 at 3:07 AM, Andrew Morton
<[email protected]> wrote:
> On Sun, 12 Apr 2009 09:06:59 -0400
> Konrad Rzeszutek <[email protected]> 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 <[email protected]>
> :
> : 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.

2009-04-20 16:00:21

by Ashutosh Naik

[permalink] [raw]
Subject: Re: [PATCH]ibft: Fix the display of a few fields in the NIC attribute structure in sysfs

On Thu, Apr 16, 2009 at 3:07 AM, Andrew Morton
<[email protected]> wrote:
> On Sun, 12 Apr 2009 09:06:59 -0400
> Konrad Rzeszutek <[email protected]> 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 <[email protected]>
> :
> : 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