From: Ashutosh Naik <ashutosh.naik@gmail.com>
To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org,
Andrew Morton <akpm@osdl.org>
Cc: pjones@redhat.com, konradr@linux.vnet.ibm.com,
ketuzsezr@darnok.org, "Vishnu V. Mandyam" <vishnu@chelsio.com>
Subject: [PATCH]ibft: Fix the display of a few fields in the NIC attribute structure in sysfs
Date: Sat, 11 Apr 2009 18:59:36 +0530 [thread overview]
Message-ID: <81083a450904110629j93c5c2j2c1250e9822c3888@mail.gmail.com> (raw)
[-- 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:
next reply other threads:[~2009-04-11 13:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-11 13:29 Ashutosh Naik [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=81083a450904110629j93c5c2j2c1250e9822c3888@mail.gmail.com \
--to=ashutosh.naik@gmail.com \
--cc=akpm@osdl.org \
--cc=ketuzsezr@darnok.org \
--cc=konradr@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=pjones@redhat.com \
--cc=vishnu@chelsio.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®