"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "fcoe-utils/fcoeadm_display.c" between
open-fcoe-3.11.tar.gz and open-fcoe-3.19.tar.gz

About: Open-FCoE is a Fibre Channel over Ethernet implementation. The non-kernel components for Linux kernel version 3.19.

fcoeadm_display.c  (open-fcoe-3.11):fcoeadm_display.c  (open-fcoe-3.19)
skipping to change at line 113 skipping to change at line 113
{ NULL, 0 } { NULL, 0 }
}; };
/* /*
* table of /sys port speed strings to HBA-API values. * table of /sys port speed strings to HBA-API values.
*/ */
struct sa_nameval port_speeds[] = { struct sa_nameval port_speeds[] = {
{ "Unknown", HBA_PORTSPEED_UNKNOWN }, { "Unknown", HBA_PORTSPEED_UNKNOWN },
{ "1 Gbit", HBA_PORTSPEED_1GBIT }, { "1 Gbit", HBA_PORTSPEED_1GBIT },
{ "2 Gbit", HBA_PORTSPEED_2GBIT }, { "2 Gbit", HBA_PORTSPEED_2GBIT },
{ "4 Gbit", HBA_PORTSPEED_4GBIT },
{ "10 Gbit", HBA_PORTSPEED_10GBIT }, { "10 Gbit", HBA_PORTSPEED_10GBIT },
{ "8 Gbit", HBA_PORTSPEED_8GBIT },
{ "16 Gbit", HBA_PORTSPEED_16GBIT },
{ "32 Gbit", HBA_PORTSPEED_32GBIT },
{ "20 Gbit", HBA_PORTSPEED_20GBIT },
{ "40 Gbit", HBA_PORTSPEED_40GBIT },
{ "Not Negotiated", HBA_PORTSPEED_NOT_NEGOTIATED }, { "Not Negotiated", HBA_PORTSPEED_NOT_NEGOTIATED },
{ NULL, 0 } { NULL, 0 }
}; };
/** sa_enum_decode_speed(buf, len, val) /** sa_enum_decode_speed(buf, len, val)
* *
* @param buf buffer for result (may be used or not). * @param buf buffer for result (may be used or not).
* @param len size of buffer (at least 32 bytes recommended). * @param len size of buffer (at least 32 bytes recommended).
* @param val value to be decoded into a name. * @param val value to be decoded into a name.
* @returns pointer to name string. Unknown values are put into buffer in hex. * @returns pointer to name string. Unknown values are put into buffer in hex.
skipping to change at line 1420 skipping to change at line 1426
char mac[MAX_STR_LEN]; char mac[MAX_STR_LEN];
int len = sizeof(temp); int len = sizeof(temp);
const char *buf; const char *buf;
printf("\n"); printf("\n");
printf(" FCF #%u Information\n", fcf->index); printf(" FCF #%u Information\n", fcf->index);
buf = sa_enum_decode(temp, len, fcf_state_table, fcf->state); buf = sa_enum_decode(temp, len, fcf_state_table, fcf->state);
if (!buf) if (!buf)
buf = temp; buf = temp;
printf(" Connection Mode: %s\n", buf); printf(" Connection Mode: %s\n", buf);
printf(" Fabric Name: 0x%016lx\n", fcf->fabric_name); printf(" Fabric Name: 0x%016" PRIx64 "\n", fcf->fabric_name);
printf(" Switch Name 0x%016lx\n", fcf->switch_name); printf(" Switch Name 0x%016" PRIx64 "\n", fcf->switch_name);
mac2str(fcf->mac, mac, MAX_STR_LEN); mac2str(fcf->mac, mac, MAX_STR_LEN);
printf(" MAC Address: %s\n", mac); printf(" MAC Address: %s\n", mac);
printf(" FCF Priority: %u\n", fcf->priority); printf(" FCF Priority: %u\n", fcf->priority);
printf(" FKA Period: %u seconds\n", fcf->fka_period); printf(" FKA Period: %u seconds\n", fcf->fka_period);
printf(" Selected: "); printf(" Selected: ");
(fcf->selected == 1) ? printf("Yes\n") : printf("No\n"); (fcf->selected == 1) ? printf("Yes\n") : printf("No\n");
printf(" VLAN ID: %u\n", fcf->vlan_id); printf(" VLAN ID: %u\n", fcf->vlan_id);
printf("\n"); printf("\n");
} }
 End of changes. 3 change blocks. 
2 lines changed or deleted 8 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS