iscsi_ibft: Don't limits Targets and NICs to two
authorLubomir Rintel <lkundrak@v3.sk>
Sat, 21 Dec 2019 07:09:56 +0000 (08:09 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sun, 12 Jan 2020 18:16:04 +0000 (13:16 -0500)
commitc08406033fe83a4cb307f2a2e949c59bb86b4f49
tree5b86ff0a167ca4851fae874d21b11514010d9904
parent040a3c33623ba4bd11588ab0820281b854a3ffaf
iscsi_ibft: Don't limits Targets and NICs to two

According to iSCSI Boot Firmware Table Version 1.03 [1], the length of
the control table is ">= 18", where the optional expansion structure
pointer follow the mandatory ones. This allows for more than two NICs
and Targets.

[1] ftp://ftp.software.ibm.com/systems/support/bladecenter/iscsi_boot_firmware_table_v1.03.pdf

Let's enforce the minimum length of the control structure instead
instead of limiting it to the smallest allowed size.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Konrad Rzeszutek Wilk <konrad@darnok.org>
drivers/firmware/iscsi_ibft.c