Noticed that fcoeadm did not get port_id (FC-ID) due to the fact that
we did not called the implmented the fc_get_host_port_id() and
fc_get_host_port_type(), so just add them to fc_function_template
Signed-off-by: Yi Zou <[EMAIL PROTECTED]>
---
drivers/scsi/fcoe/fcoe_sw.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/drivers/scsi/fcoe/fcoe_sw.c b/drivers/scsi/fcoe/fcoe_sw.c
index 0affee7..9a44be9 100644
--- a/drivers/scsi/fcoe/fcoe_sw.c
+++ b/drivers/scsi/fcoe/fcoe_sw.c
@@ -75,15 +75,20 @@ struct fc_function_template fcoe_transport_function = {
.show_host_supported_fc4s = 1,
.show_host_active_fc4s = 1,
.show_host_maxframe_size = 1,
+ .show_host_supported_speeds = 1,
+ .show_host_symbolic_name = 1,
.show_host_port_id = 1,
- .show_host_supported_speeds = 1,
- .get_host_speed = fc_get_host_speed,
+ .get_host_port_id = fc_get_host_port_id,
+
.show_host_speed = 1,
+ .get_host_speed = fc_get_host_speed,
+
.show_host_port_type = 1,
- .get_host_port_state = fc_get_host_port_state,
+ .get_host_port_type = fc_get_host_port_type,
+
.show_host_port_state = 1,
- .show_host_symbolic_name = 1,
+ .get_host_port_state = fc_get_host_port_state,
.dd_fcrport_size = sizeof(struct fc_rport_libfc_priv),
.show_rport_maxframe_size = 1,
_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel