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, 14 Mar 2016 14:30:57 +0000 (10:30 -0400)
commitc988cabe2534b6efbf0cfab6d69e18855dc3409e
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

v3: [Put Hannes back as author]

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