If there are two ethernet ports configured for fcoe, the
command "fcoeadm -i eth5" will display the header of
the eth3 too. This patch is to fix this problem.
---
fcoeadm_display.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/fcoeadm_display.c b/fcoeadm_display.c
index 0e5cb88..06d5080 100644
--- a/fcoeadm_display.c
+++ b/fcoeadm_display.c
@@ -1205,8 +1205,7 @@ display_adapter_info(struct opt_info *opt_info)
"Too many adapters. Maximum %d\n",
MAX_HBA_COUNT);
return;
- } else if (rc == 1)
- show_hba_info(hba_index, &hba_attrs, 0);
+ }
for (j = 0; j < lport_cnt_per_hba; j++) {
retval = HBA_GetAdapterPortAttributes(
@@ -1220,9 +1219,9 @@ display_adapter_info(struct opt_info *opt_info)
lp_index++;
if (opt_info->ifname &&
- !strstr(port_attrs.PortSymbolicName,
- opt_info->ifname))
+ !strstr(port_attrs.PortSymbolicName,
opt_info->ifname))
continue;
+ show_hba_info(hba_index, &hba_attrs, 0);
show_port_info(hba_index, lp_index, &hba_attrs,
&port_attrs);
}
_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel