Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Apr 2015 15:44:09 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r281154 - projects/ifnet/sys/net
Message-ID:  <201504061544.t36Fi9ea004078@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Mon Apr  6 15:44:09 2015
New Revision: 281154
URL: https://svnweb.freebsd.org/changeset/base/281154

Log:
  - Zero is special value, don't assign IF_DRIVER_SOFTC to it.
  - Fix field name in comment.

Modified:
  projects/ifnet/sys/net/if.h

Modified: projects/ifnet/sys/net/if.h
==============================================================================
--- projects/ifnet/sys/net/if.h	Mon Apr  6 15:38:34 2015	(r281153)
+++ projects/ifnet/sys/net/if.h	Mon Apr  6 15:44:09 2015	(r281154)
@@ -572,14 +572,15 @@ typedef enum {
 } ift_counter;
 
 typedef enum {
-	IF_DRIVER_SOFTC = 0,
+	IF_NO_SOFTC = 0,
+	IF_DRIVER_SOFTC,
 	IF_LLADDR,
 	IF_BPF,
 	IF_NAME,
 	IF_VLAN,
 	/*
 	 * Values do matter, since we want to avoid aliasing of frequently
-	 * used features in if_softcs cache.
+	 * used features in if_sccache cache.
 	 */
 	IF_AF_INET = 8,
 	IF_AF_INET6 = 9,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504061544.t36Fi9ea004078>