]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iscsi-target: Refactor iscsit_get_np sockaddr matching into iscsit_check_np_match
authorNicholas Bellinger <nab@linux-iscsi.org>
Tue, 19 Feb 2013 04:59:27 +0000 (20:59 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 19 Feb 2013 05:03:33 +0000 (21:03 -0800)
commitd4c6c3fb7ce9826e072e2278d96aa2c638b5bbfd
treefcf82d7aad2b9772f7c70a0572f83441ddb04f72
parentfbbf8555a986ed31e54f006b6cc637ea4ff1425b
iscsi-target: Refactor iscsit_get_np sockaddr matching into iscsit_check_np_match

This patch refactors the sockaddr matching logic in iscsit_get_np() into
a seperate iscsit_check_np_match() that can be used by external code.

Cc: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c
drivers/target/iscsi/iscsi_target.h