Change the default FCoE protocol version to the T11 (Aug. 2007) version. Use environment to override: export FCOE_OLD_ALL=1 to use the old protocol on all interfaces, or FCOE_OLD_eth0=1 to use it on eth0. Signed-off-by: Joe Eykholt <fcoe@xxxxxxxxxxx> --- usr/common/libfc/src/encaps/fcoe.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/usr/common/libfc/src/encaps/fcoe.c b/usr/common/libfc/src/encaps/fcoe.c index 017e41e..4a0d9f0 100644 --- a/usr/common/libfc/src/encaps/fcoe.c +++ b/usr/common/libfc/src/encaps/fcoe.c @@ -60,8 +60,8 @@ #define FCOE_ET_VAR "FCOE_ETHERTYPE" /* env. var. for ethertype */ #define FCOE_OUI_VAR "FCOE_OUI" /* env. var. for OUI */ -#define FCOE_NEW_VAR "FCOE_NEW_%s" /* env. var. for new version */ -#define FCOE_NEW_ALL_VAR "FCOE_NEW_ALL" /* env. var. for new version */ +#define FCOE_OLD_VAR "FCOE_OLD_%s" /* env. var. for old version */ +#define FCOE_OLD_ALL_VAR "FCOE_OLD_ALL" /* env. var. for old version */ #define FC_FCOE_BUFLEN 2200 /* buffer size for reads */ #define FC_FCOE_SOCKBUF_LEN (512 * 1024) /* requested receive socket buf size */ @@ -158,11 +158,11 @@ fc_fcoe_create(const char *ifname, u_int vlan, char buf[40]; /* - * Test for presense of env. variables FCOE_NEW_<ifname> or FCOE_NEW. - * If these are not there, the older version is used. + * Test for presense of env. variables FCOE_OLD_<ifname> or FCOE_OLD_ALL. + * If any of these are there, the older protocol version is used. */ - snprintf(buf, sizeof (buf), FCOE_NEW_VAR, ifname); - if ((getenv(buf) == NULL && getenv(FCOE_NEW_ALL_VAR) == NULL) || + snprintf(buf, sizeof (buf), FCOE_OLD_VAR, ifname); + if (getenv(buf) != NULL || getenv(FCOE_OLD_ALL_VAR) != NULL || (options & FC_OPT_FCOE_OLD) != 0) { return (fc_fcoe_create_old(ifname, vlan, src_mac, dest_mac, options)); } - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html