"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libhbalinux/lport.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.

lport.c  (open-fcoe-3.11):lport.c  (open-fcoe-3.19)
skipping to change at line 75 skipping to change at line 75
{ 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_table[] = { struct sa_nameval port_speeds_table[] = {
{ "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 }
}; };
/* /*
* parse strings from /sys port speed/support_speeds files * parse strings from /sys port speed/support_speeds files
* and convert them to bitmasks for the HBA_PORTSPEED supported * and convert them to bitmasks for the HBA_PORTSPEED supported
* Format expected: "1 Gbit[, 10 Gbit]", etc. * Format expected: "1 Gbit[, 10 Gbit]", etc.
*/ */
static int sys_read_speed(const char *dir, const char *file, char *buf, static int sys_read_speed(const char *dir, const char *file, char *buf,
 End of changes. 2 change blocks. 
0 lines changed or deleted 6 lines changed or added

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