From: Joe Eykholt <fcoe@eykholt.com>
To: linux-scsi@vger.kernel.org
Subject: [OpenFCoE] [PATCH] (user-libfc) Change the default FCoE protocol version to the T11 (Aug. 2007) version.
Date: Fri, 30 Nov 2007 10:59:44 -0800 [thread overview]
Message-ID: <47505DA0.5070702@eykholt.com> (raw)
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.
---
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));
}
--
1.5.3.6
reply other threads:[~2007-11-30 18:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47505DA0.5070702@eykholt.com \
--to=fcoe@eykholt.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.