Author: jkim
Date: Tue Jan 20 20:04:09 2009
New Revision: 187482
URL: http://svn.freebsd.org/changeset/base/187482

Log:
  Retire RL_FLAG_INVMAR bit to match its comment and reality.

Modified:
  head/sys/dev/re/if_re.c
  head/sys/pci/if_rlreg.h

Modified: head/sys/dev/re/if_re.c
==============================================================================
--- head/sys/dev/re/if_re.c     Tue Jan 20 19:58:01 2009        (r187481)
+++ head/sys/dev/re/if_re.c     Tue Jan 20 20:04:09 2009        (r187482)
@@ -657,7 +657,7 @@ re_set_rxmode(struct rl_softc *sc)
                 * write the hash pattern in reverse order for those
                 * devices.
                 */
-               if ((sc->rl_flags & RL_FLAG_INVMAR) != 0) {
+               if ((sc->rl_flags & RL_FLAG_PCIE) != 0) {
                        h = bswap32(hashes[0]);
                        hashes[0] = bswap32(hashes[1]);
                        hashes[1] = h;
@@ -1234,22 +1234,21 @@ re_attach(device_t dev)
                break;
        case RL_HWREV_8100E:
        case RL_HWREV_8101E:
-               sc->rl_flags |= RL_FLAG_NOJUMBO | RL_FLAG_INVMAR |
-                   RL_FLAG_PHYWAKE | RL_FLAG_FASTETHER;
+               sc->rl_flags |= RL_FLAG_NOJUMBO | RL_FLAG_PHYWAKE |
+                   RL_FLAG_FASTETHER;
                break;
        case RL_HWREV_8102E:
        case RL_HWREV_8102EL:
-               sc->rl_flags |= RL_FLAG_NOJUMBO | RL_FLAG_INVMAR |
-                   RL_FLAG_PHYWAKE | RL_FLAG_PAR | RL_FLAG_DESCV2 |
-                   RL_FLAG_MACSTAT | RL_FLAG_FASTETHER | RL_FLAG_CMDSTOP;
+               sc->rl_flags |= RL_FLAG_NOJUMBO | RL_FLAG_PHYWAKE |
+                   RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT |
+                   RL_FLAG_FASTETHER | RL_FLAG_CMDSTOP;
                break;
        case RL_HWREV_8168_SPIN1:
        case RL_HWREV_8168_SPIN2:
                sc->rl_flags |= RL_FLAG_WOLRXENB;
                /* FALLTHROUGH */
        case RL_HWREV_8168_SPIN3:
-               sc->rl_flags |= RL_FLAG_INVMAR | RL_FLAG_PHYWAKE |
-                   RL_FLAG_MACSTAT;
+               sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_MACSTAT;
                break;
        case RL_HWREV_8168C_SPIN2:
                sc->rl_flags |= RL_FLAG_MACSLEEP;
@@ -1260,9 +1259,8 @@ re_attach(device_t dev)
                /* FALLTHROUGH */
        case RL_HWREV_8168CP:
        case RL_HWREV_8168D:
-               sc->rl_flags |= RL_FLAG_INVMAR | RL_FLAG_PHYWAKE |
-                   RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT |
-                   RL_FLAG_CMDSTOP;
+               sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PAR |
+                   RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_CMDSTOP;
                /*
                 * These controllers support jumbo frame but it seems
                 * that enabling it requires touching additional magic

Modified: head/sys/pci/if_rlreg.h
==============================================================================
--- head/sys/pci/if_rlreg.h     Tue Jan 20 19:58:01 2009        (r187481)
+++ head/sys/pci/if_rlreg.h     Tue Jan 20 20:04:09 2009        (r187482)
@@ -879,7 +879,6 @@ struct rl_softc {
        int                     rl_txstart;
        uint32_t                rl_flags;
 #define        RL_FLAG_MSI             0x0001
-#define        RL_FLAG_INVMAR          0x0004
 #define        RL_FLAG_PHYWAKE         0x0008
 #define        RL_FLAG_NOJUMBO         0x0010
 #define        RL_FLAG_PAR             0x0020
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to