]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
iscsi-target: Make iscsi_tpg_np driver show/store use generic code
authorNicholas Bellinger <nab@linux-iscsi.org>
Sun, 15 May 2016 04:44:01 +0000 (21:44 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 17 May 2016 05:14:29 +0000 (22:14 -0700)
commitd4b3fa4b0881b600ddeee9dd47b27dea9709f322
tree1e44c18d5df566fed74e936c6bd86034449affce
parent54a5e73f4d6e31d5628e08b4d575c71d71670e09
iscsi-target: Make iscsi_tpg_np driver show/store use generic code

Go ahead and fold the duplicate iscsi_tpg_np driver attribute
show/store functions into generic callers, invoked by current
driver specific functions.

This allows for future v4.8+ changes to have iscsi_target_mod
use tpg_np driver attributes at runtime, instead of having
the defaults hardcoded in iscsi_target_configfs.c.

Also, drop the unused/legacy 'sctp' attribute for non standard
RFC-3720 operation with IPPROTO_SCTP.

Cc: Varun Prakash <varun@chelsio.com>
Cc: Hariprasad Shenai <hariprasad@chelsio.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_configfs.c