iscsi_ibft: Add prefix-len attr and display netmask
authorHannes Reinecke <hare@suse.de>
Thu, 25 Feb 2016 17:56:04 +0000 (09:56 -0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 16 May 2016 15:14:23 +0000 (11:14 -0400)
commit9a99425f0736a416442525ac7b15903173888b86
treec02eb2ce974720b40d076faa9f24766c148d3f9f
parent18558cae0272f8fd9647e69d3fec1565a7949865
iscsi_ibft: Add prefix-len attr and display netmask

The iBFT table only specifies a prefix length, not a netmask.
And the netmask is pretty much pointless for IPv6.
So introduce a new attribute 'prefix-len'.

Some older user-space code might rely on the netmask attribute
being present, so we should always display it.

Changes from v1:
 - Combined two patches into one

Changes from v2:
 - Cleaned up/corrected wording for patch description

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Lee Duncan <lduncan@suse.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Konrad Rzeszutek Wilk <konrad@kernel.org>
drivers/firmware/iscsi_ibft.c
drivers/scsi/iscsi_boot_sysfs.c
include/linux/iscsi_boot_sysfs.h