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

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