diff options
author | Ashutosh Naik <ashutosh.naik@gmail.com> | 2009-04-30 18:08:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-05-02 18:36:10 -0400 |
commit | 65fd21058a791f35aff11eeccd2e270f0faf11ec (patch) | |
tree | bf9330a7ae70e1c71cf771a8964122eeec8239a4 /drivers/firmware/iscsi_ibft.c | |
parent | 9e4a5bda89034502fb144331e71a0efdfd5fae97 (diff) |
ibft: fix the display of a few fields in the NIC attribute structure in sysfs
Fix the display of a few fields in the iBFT NIC attribute structure in
sysfs.
Ensure 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.
Signed-off-by: Ashutosh Naik <ashutosh.naik@gmail.com>
Cc: Vishnu V <vishnu@chelsio.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/firmware/iscsi_ibft.c')
-rw-r--r-- | drivers/firmware/iscsi_ibft.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/firmware/iscsi_ibft.c b/drivers/firmware/iscsi_ibft.c index 7b7ddc2d51c9..420a96e7f2db 100644 --- a/drivers/firmware/iscsi_ibft.c +++ b/drivers/firmware/iscsi_ibft.c | |||
@@ -754,11 +754,11 @@ static int __init ibft_check_nic_for(struct ibft_nic *nic, int entry) | |||
754 | rc = 1; | 754 | rc = 1; |
755 | break; | 755 | break; |
756 | case ibft_eth_ip_addr: | 756 | case ibft_eth_ip_addr: |
757 | if (!memcmp(nic->dhcp, nulls, sizeof(nic->dhcp))) | 757 | if (memcmp(nic->ip_addr, nulls, sizeof(nic->ip_addr))) |
758 | rc = 1; | 758 | rc = 1; |
759 | break; | 759 | break; |
760 | case ibft_eth_subnet_mask: | 760 | case ibft_eth_subnet_mask: |
761 | if (!memcmp(nic->dhcp, nulls, sizeof(nic->dhcp))) | 761 | if (nic->subnet_mask_prefix) |
762 | rc = 1; | 762 | rc = 1; |
763 | break; | 763 | break; |
764 | case ibft_eth_origin: | 764 | case ibft_eth_origin: |