亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ixethdbportupdate.c

?? u-boot1.3.0的原碼,從配了網絡驅動和FLASH的驅動,并該用ESC竟如
?? C
?? 第 1 頁 / 共 2 頁
字號:
/** * @file IxEthDBDBPortUpdate.c * * @brief Implementation of dependency and port update handling *  * @par * IXP400 SW Release version 2.0 *  * -- Copyright Notice -- *  * @par * Copyright 2001-2005, Intel Corporation. * All rights reserved. *  * @par * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. Neither the name of the Intel Corporation nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. *  * @par * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. *  * @par * -- End of Copyright Notice -- */#include "IxEthDB_p.h"/* forward prototype declarations */IX_ETH_DB_PRIVATE MacTreeNode* ixEthDBTreeInsert(MacTreeNode *searchTree, MacDescriptor *descriptor);IX_ETH_DB_PRIVATE void ixEthDBCreateTrees(IxEthDBPortMap updatePorts);IX_ETH_DB_PRIVATE MacTreeNode* ixEthDBTreeRebalance(MacTreeNode *searchTree);IX_ETH_DB_PRIVATE void ixEthDBRebalanceTreeToVine(MacTreeNode *root, UINT32 *size);IX_ETH_DB_PRIVATE void ixEthDBRebalanceVineToTree(MacTreeNode *root, UINT32 size);IX_ETH_DB_PRIVATE void ixEthDBRebalanceCompression(MacTreeNode *root, UINT32 count);IX_ETH_DB_PRIVATE UINT32 ixEthDBRebalanceLog2Floor(UINT32 x);extern HashTable dbHashtable;/** * @brief register types requiring automatic updates * * @param typeArray array indexed on record types, each * element indicating whether the record type requires an * automatic update (TRUE) or not (FALSE) *  * Automatic updates are done for registered record types * upon adding, updating (that is, updating the record portID)  * and removing records. Whenever an automatic update is triggered * the appropriate ports will be provided with new database * information. * * It is assumed that the typeArray parameter is allocated large * enough to hold all the user defined types. Also, the type * array should be initialized to FALSE as this function only * caters for types which do require automatic updates. * * Note that this function should be called by the component * initialization function. * * @return number of record types registered for automatic * updates * * @internal */IX_ETH_DB_PUBLICUINT32 ixEthDBUpdateTypeRegister(BOOL *typeArray){    typeArray[IX_ETH_DB_FILTERING_RECORD]      = TRUE;    typeArray[IX_ETH_DB_FILTERING_VLAN_RECORD] = TRUE;    return 2;}/** * @brief computes dependencies and triggers port learning tree updates * * @param triggerPorts port map consisting in the ports which triggered the update * * This function browses through all the ports and determines how to waterfall the update * event from the trigger ports to all other ports depending on them. * * Once the list of ports to be updated is determined this function  * calls @ref ixEthDBCreateTrees. * * @internal */IX_ETH_DB_PUBLICvoid ixEthDBUpdatePortLearningTrees(IxEthDBPortMap triggerPorts){    IxEthDBPortMap updatePorts;    UINT32 portIndex;        ixEthDBUpdateLock();        SET_EMPTY_DEPENDENCY_MAP(updatePorts);        for (portIndex = 0 ; portIndex < IX_ETH_DB_NUMBER_OF_PORTS ; portIndex++)    {        PortInfo *port   = &ixEthDBPortInfo[portIndex];        BOOL mapsCollide;                MAPS_COLLIDE(mapsCollide, triggerPorts, port->dependencyPortMap);        if (mapsCollide                                   /* do triggers influence this port? */            && !IS_PORT_INCLUDED(portIndex, updatePorts)  /* and it's not already in the update list */            && port->updateMethod.updateEnabled)          /* and we're allowed to update it */        {            IX_ETH_DB_UPDATE_TRACE("DB: (Update) Adding port %d to update set\n", portIndex);            JOIN_PORT_TO_MAP(updatePorts, portIndex);        }        else        {            IX_ETH_DB_UPDATE_TRACE("DB: (Update) Didn't add port %d to update set, reasons follow:\n", portIndex);            if (!mapsCollide)            {                IX_ETH_DB_UPDATE_TRACE("\tMaps don't collide on port %d\n", portIndex);            }            if (IS_PORT_INCLUDED(portIndex, updatePorts))            {                IX_ETH_DB_UPDATE_TRACE("\tPort %d is already in the update set\n", portIndex);            }            if (!port->updateMethod.updateEnabled)            {                IX_ETH_DB_UPDATE_TRACE("\tPort %d doesn't have updateEnabled set\n", portIndex);            }        }    }        IX_ETH_DB_UPDATE_TRACE("DB: (Update) Updating port set\n");    ixEthDBCreateTrees(updatePorts);            ixEthDBUpdateUnlock();}/** * @brief creates learning trees and calls the port update handlers * * @param updatePorts set of ports in need of learning trees * * This function determines the optimal method of creating learning * trees using a minimal number of database queries, keeping in mind * that different ports can either use the same learning trees or they * can partially share them. The actual tree building routine is * @ref ixEthDBQuery. * * @internal */IX_ETH_DB_PRIVATEvoid ixEthDBCreateTrees(IxEthDBPortMap updatePorts){    UINT32 portIndex;    BOOL result;    BOOL portsLeft = TRUE;    while (portsLeft)    {        /* get port with minimal dependency map and NULL search tree */        UINT32 minPortIndex = MAX_PORT_SIZE;        UINT32 minimalSize  = MAX_PORT_SIZE;        for (portIndex = 0 ; portIndex < IX_ETH_DB_NUMBER_OF_PORTS ; portIndex++)        {            UINT32 size;            PortInfo *port = &ixEthDBPortInfo[portIndex];            /* generate trees only for ports that need them */            if (!port->updateMethod.searchTreePendingWrite && IS_PORT_INCLUDED(portIndex, updatePorts))            {                GET_MAP_SIZE(port->dependencyPortMap, size);                                IX_ETH_DB_UPDATE_TRACE("DB: (Update) Dependency map for port %d: size %d\n",                    portIndex, size);                if (size < minimalSize)                {                    minPortIndex = portIndex;                    minimalSize  = size;                }            }            else            {                IX_ETH_DB_UPDATE_TRACE("DB: (Update) Skipped port %d from tree diff (%s)\n", portIndex,                    port->updateMethod.searchTreePendingWrite ? "pending write access" : "ignored by query");            }                    }        /* if a port was found than minimalSize is not MAX_PORT_SIZE */        if (minimalSize != MAX_PORT_SIZE)        {            /* minPortIndex is the port we seek */            PortInfo *port = &ixEthDBPortInfo[minPortIndex];            IxEthDBPortMap query;            MacTreeNode *baseTree;            /* now try to find a port with minimal map difference */            PortInfo *minimalDiffPort = NULL;            UINT32 minimalDiff        = MAX_PORT_SIZE;                        IX_ETH_DB_UPDATE_TRACE("DB: (Update) Minimal size port is %d\n", minPortIndex);            for (portIndex = 0 ; portIndex < IX_ETH_DB_NUMBER_OF_PORTS ; portIndex++)            {                   PortInfo *diffPort = &ixEthDBPortInfo[portIndex];                BOOL mapIsSubset;                                IS_MAP_SUBSET(mapIsSubset, diffPort->dependencyPortMap, port->dependencyPortMap);                                if (portIndex != minPortIndex                    && diffPort->updateMethod.searchTree != NULL                    && mapIsSubset)                {                    /* compute size and pick only minimal size difference */                    UINT32 diffPortSize;                    UINT32 sizeDifference;                    GET_MAP_SIZE(diffPort->dependencyPortMap, diffPortSize);                                         IX_ETH_DB_UPDATE_TRACE("DB: (Update) Checking port %d for differences...\n", portIndex);                    sizeDifference = minimalSize - diffPortSize;                    if (sizeDifference < minimalDiff)                    {                        minimalDiffPort = diffPort;                        minimalDiff     = sizeDifference;                                                IX_ETH_DB_UPDATE_TRACE("DB: (Update) Minimal difference 0x%x was found on port %d\n",                            minimalDiff, portIndex);                    }                }            }            /* check if filtering is enabled on this port */            if ((port->featureStatus & IX_ETH_DB_FILTERING) != 0)            {                /* if minimalDiff is not MAX_PORT_SIZE minimalDiffPort points to the most similar port */                if (minimalDiff != MAX_PORT_SIZE)                {                    baseTree = ixEthDBCloneMacTreeNode(minimalDiffPort->updateMethod.searchTree);                    DIFF_MAPS(query, port->dependencyPortMap , minimalDiffPort->dependencyPortMap);                                        IX_ETH_DB_UPDATE_TRACE("DB: (Update) Found minimal diff, extending tree %d on query\n",                        minimalDiffPort->portID);                }                else /* .. otherwise no similar port was found, build tree from scratch */                {                    baseTree = NULL;                                        COPY_DEPENDENCY_MAP(query, port->dependencyPortMap);                                        IX_ETH_DB_UPDATE_TRACE("DB: (Update) No similar diff, creating tree from query\n");                }                IS_EMPTY_DEPENDENCY_MAP(result, query);                                if (!result) /* otherwise we don't need anything more on top of the cloned tree */                {                    IX_ETH_DB_UPDATE_TRACE("DB: (Update) Adding query tree to port %d\n", minPortIndex);                                            /* build learning tree */                    port->updateMethod.searchTree = ixEthDBQuery(baseTree, query, IX_ETH_DB_ALL_FILTERING_RECORDS, MAX_ELT_SIZE);                }                else                {                    IX_ETH_DB_UPDATE_TRACE("DB: (Update) Query is empty, assuming identical nearest tree\n");                                          port->updateMethod.searchTree = baseTree;                }            }            else            {                /* filtering is not enabled, will download an empty tree */                if (port->updateMethod.searchTree != NULL)                {                    ixEthDBFreeMacTreeNode(port->updateMethod.searchTree);                }                port->updateMethod.searchTree = NULL;            }            /* mark tree as valid */            port->updateMethod.searchTreePendingWrite = TRUE;        }        else        {            portsLeft = FALSE;            IX_ETH_DB_UPDATE_TRACE("DB: (Update) No trees to create this round\n");                    }    }        for (portIndex = 0 ; portIndex < IX_ETH_DB_NUMBER_OF_PORTS ; portIndex++)    {        PortInfo *updatePort = &ixEthDBPortInfo[portIndex];        if (updatePort->updateMethod.searchTreePendingWrite)        {            IX_ETH_DB_UPDATE_TRACE("DB: (PortUpdate) Starting procedure to upload new search tree (%snull) into NPE %d\n",                 updatePort->updateMethod.searchTree != NULL ? "not " : "",                portIndex);            updatePort->updateMethod.updateHandler(portIndex, IX_ETH_DB_FILTERING_RECORD);        }    }}/** * @brief standard NPE update handler * * @param portID id of the port to be updated * @param type record type to be pushed during this update * * The NPE update handler manages updating the NPE databases * given a certain record type. * * @internal */IX_ETH_DB_PUBLICIxEthDBStatus ixEthDBNPEUpdateHandler(IxEthDBPortId portID, IxEthDBRecordType type){    UINT32 epDelta, blockCount;    IxNpeMhMessage message;    UINT32 treeSize = 0;    PortInfo *port = &ixEthDBPortInfo[portID];    /* size selection and type check */    if (type == IX_ETH_DB_FILTERING_RECORD || type == IX_ETH_DB_WIFI_RECORD)    {        treeSize = FULL_ELT_BYTE_SIZE;    }    else if (type == IX_ETH_DB_FIREWALL_RECORD)    {        treeSize = FULL_FW_BYTE_SIZE;    }    else    {        return IX_ETH_DB_INVALID_ARG;    }        /* serialize tree into memory */    ixEthDBNPETreeWrite(type, treeSize, port->updateMethod.npeUpdateZone, port->updateMethod.searchTree, &epDelta, &blockCount);    /* free internal copy */    if (port->updateMethod.searchTree != NULL)    {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲九九爱视频| 亚洲影视在线播放| 成人午夜在线播放| 亚洲色图欧洲色图婷婷| 欧美一卡二卡在线| av在线播放一区二区三区| 天天综合网 天天综合色| 久久综合久久综合九色| 91麻豆精东视频| 高清不卡一二三区| 五月激情丁香一区二区三区| 国产日韩欧美麻豆| 99re热视频精品| 久久精品国产亚洲a| 亚洲人成精品久久久久久| 精品欧美一区二区三区精品久久| 欧洲生活片亚洲生活在线观看| 蜜桃av噜噜一区二区三区小说| 亚洲欧美日韩在线| 久久影院午夜片一区| 91精品国产色综合久久久蜜香臀| 丁香天五香天堂综合| 免费在线观看一区| 亚洲综合免费观看高清完整版在线| 久久久久久久久蜜桃| 4438x成人网最大色成网站| 91在线国产福利| 国产精品中文字幕一区二区三区| 美女视频网站黄色亚洲| 亚洲最大成人综合| 国产精品灌醉下药二区| 精品sm在线观看| 日韩精品中文字幕在线一区| 91在线国内视频| 高清免费成人av| 国产精品一区专区| 国产成人亚洲精品青草天美| 久久狠狠亚洲综合| 五月激情综合婷婷| 亚洲影院在线观看| 亚洲男人都懂的| 国产精品久久久久久久午夜片| 精品国产3级a| 欧美久久一区二区| 91精品国产综合久久久久| 欧美日韩电影在线播放| 色综合久久久久久久| 久久99国产精品成人| 激情深爱一区二区| 麻豆精品在线看| 精品亚洲porn| 伊人夜夜躁av伊人久久| 亚洲成人激情av| 一区二区三区国产精品| 亚洲综合视频在线| 夜夜亚洲天天久久| 日韩成人伦理电影在线观看| 午夜电影久久久| 亚洲国产成人tv| 亚洲国产毛片aaaaa无费看 | 成人精品在线视频观看| 国产成人精品免费网站| 懂色一区二区三区免费观看| 97久久久精品综合88久久| 99天天综合性| 91久久免费观看| 欧美日韩一区二区在线视频| 日韩三级高清在线| 欧美成人免费网站| 久久久久免费观看| 国产拍欧美日韩视频二区| 18欧美亚洲精品| 亚洲国产日产av| 美女脱光内衣内裤视频久久网站| 蜜桃av噜噜一区| 成人免费黄色在线| 色综合天天综合网国产成人综合天| 91在线观看免费视频| 在线观看亚洲a| 欧美精品一二三四| 久久精品一区蜜桃臀影院| 中文一区二区在线观看| 综合色中文字幕| 亚洲成人一区二区在线观看| 欧美国产精品一区| 亚洲成人动漫一区| 久久精品国内一区二区三区| 国产成人鲁色资源国产91色综| 国产久卡久卡久卡久卡视频精品| 色综合久久久久久久久久久| 欧美二区三区91| 26uuu成人网一区二区三区| 中文字幕亚洲一区二区av在线 | 国产成人在线视频播放| 国产一区二区在线电影| 色综合色综合色综合| 91精品福利在线一区二区三区| 亚洲精品在线观看视频| 国产欧美精品一区| 亚洲成人av福利| 国产成人在线电影| 欧美三区在线视频| 久久伊人蜜桃av一区二区| 亚洲一区二区三区中文字幕| 久久99久久久久| av午夜一区麻豆| 91麻豆成人久久精品二区三区| 精品少妇一区二区三区在线视频 | 中文一区二区在线观看| 亚洲第四色夜色| 国产v综合v亚洲欧| 色老汉一区二区三区| 国产亚洲一区字幕| 丝袜诱惑亚洲看片| 99久久国产综合精品女不卡| 欧美一级生活片| 一区二区三区日韩欧美精品| 国产尤物一区二区| 欧美日韩国产首页在线观看| 亚洲天堂a在线| 亚洲裸体在线观看| 国产盗摄精品一区二区三区在线| 制服丝袜日韩国产| 日韩中文字幕麻豆| 欧美三片在线视频观看| 亚洲自拍偷拍麻豆| 91免费观看视频在线| 国产清纯在线一区二区www| 国产九九视频一区二区三区| 亚洲精品一线二线三线| 麻豆精品国产传媒mv男同 | 成人午夜看片网址| 久久久久久综合| 国产精品一二三四| 国产欧美日韩另类视频免费观看| 国产专区综合网| 国产日韩欧美激情| k8久久久一区二区三区| 国产精品久久看| 色综合久久精品| 亚洲在线视频免费观看| 欧美日韩综合在线| 蜜臀av一区二区三区| 日韩视频一区二区在线观看| 久久精品国产一区二区| 精品国产露脸精彩对白| 国产成人av电影在线| 国产精品久久久爽爽爽麻豆色哟哟| 99精品国产91久久久久久 | 国产精品久久99| 色综合久久九月婷婷色综合| 亚洲永久免费视频| 欧美一卡二卡在线观看| 激情文学综合网| 国产精品久久久久影院色老大| 色综合天天综合狠狠| 亚洲国产一区二区三区| 欧美日韩国产影片| 免费xxxx性欧美18vr| 国产亚洲福利社区一区| 91麻豆国产福利在线观看| 视频一区二区中文字幕| 久久亚洲私人国产精品va媚药| 成人免费va视频| 亚洲一本大道在线| 欧美大片顶级少妇| 97久久精品人人做人人爽50路 | 久久精品av麻豆的观看方式| 久久久久久久电影| 91福利国产成人精品照片| 免费三级欧美电影| 国产欧美日韩在线看| 色网站国产精品| 美女mm1313爽爽久久久蜜臀| 欧美国产精品久久| 欧美精选午夜久久久乱码6080| 国内精品写真在线观看| 一区二区三区在线播| 欧美精品一区男女天堂| 一本色道a无线码一区v| 久久精品99国产精品日本| 亚洲少妇30p| 精品国产凹凸成av人导航| 91久久精品一区二区三区| 九色综合狠狠综合久久| 日韩美女视频19| 欧美一区二区成人| 99精品久久只有精品| 黄色日韩网站视频| 亚洲国产成人av好男人在线观看| 国产欧美日韩中文久久| 欧美猛男男办公室激情| 91在线小视频| 美国av一区二区| 亚洲高清中文字幕| 国产精品女同一区二区三区| 欧美电视剧在线观看完整版| 91黄色激情网站| www.激情成人| 国产精品综合av一区二区国产馆|