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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? ixethdbportupdate.c

?? u-boot1.3.0的原碼,從配了網(wǎng)絡(luò)驅(qū)動(dòng)和FLASH的驅(qū)動(dòng),并該用ESC竟如
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/** * @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)    {

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
972aa.com艺术欧美| 在线观看亚洲a| 亚洲地区一二三色| 国产女主播在线一区二区| 欧美日韩一区不卡| 99久久精品99国产精品| 国内成+人亚洲+欧美+综合在线| 亚洲乱码日产精品bd| 久久精品亚洲精品国产欧美 | 麻豆国产精品一区二区三区| 国产精品久久久久久久裸模| 欧美电影免费观看高清完整版 | 欧美美女一区二区三区| 国产成人欧美日韩在线电影| 男男成人高潮片免费网站| 亚洲午夜精品网| 亚洲伦理在线免费看| 国产精品色一区二区三区| 精品福利一区二区三区| 日韩一级精品视频在线观看| 欧美影片第一页| 91福利资源站| 色婷婷久久99综合精品jk白丝| 国产91丝袜在线播放九色| 韩国精品主播一区二区在线观看 | 亚洲免费av高清| 国产精品乱子久久久久| 国产日产亚洲精品系列| 久久久99免费| 久久久91精品国产一区二区三区| 欧美成va人片在线观看| 日韩一区二区精品葵司在线| 91麻豆精品国产自产在线观看一区 | 日韩av网站在线观看| 亚洲午夜精品久久久久久久久| 亚洲日本免费电影| 亚洲日本va午夜在线影院| 国产精品国产a级| 中文字幕一区二区三中文字幕| 国产欧美精品一区二区色综合| 久久久高清一区二区三区| 国产拍欧美日韩视频二区| 国产亚洲一区二区三区在线观看 | 日韩av一级电影| 男男视频亚洲欧美| 狠狠色伊人亚洲综合成人| 激情综合五月天| 国产精品91一区二区| 成人久久18免费网站麻豆 | 一区二区高清免费观看影视大全 | 日韩电影一区二区三区四区| 婷婷综合久久一区二区三区| 日本中文字幕一区| 九九九久久久精品| 不卡av在线网| 在线看一区二区| 777午夜精品免费视频| 欧美一三区三区四区免费在线看| 精品毛片乱码1区2区3区| 久久婷婷久久一区二区三区| 国产欧美一区二区精品久导航 | 国产69精品久久久久毛片| 成人免费视频免费观看| 色婷婷香蕉在线一区二区| 欧美高清视频不卡网| 精品国产乱码久久久久久夜甘婷婷 | 国产aⅴ综合色| 在线视频综合导航| 日韩限制级电影在线观看| 国产精品无码永久免费888| 亚洲一区免费在线观看| 日韩av一级片| 99久久综合国产精品| 欧美精品一二三区| 国产亚洲欧美一区在线观看| 亚洲综合在线第一页| 国产一区免费电影| 色综合久久88色综合天天免费| 91精品国产综合久久久蜜臀图片 | 久久久亚洲欧洲日产国码αv| 国产精品久久久久久久久快鸭| 亚洲高清免费观看| 国产精品一色哟哟哟| 欧美性猛交xxxx乱大交退制版| 久久嫩草精品久久久精品一| 一区二区三区精品久久久| 狠狠色丁香久久婷婷综| 在线观看日产精品| 久久综合狠狠综合久久激情| 亚洲一区在线视频| 国产91清纯白嫩初高中在线观看| 欧美猛男gaygay网站| 国产精品天天看| 久久福利视频一区二区| 在线免费av一区| 国产精品沙发午睡系列990531| 首页国产欧美久久| 色婷婷av一区二区三区软件| 久久亚洲一级片| 日本特黄久久久高潮| 在线精品国精品国产尤物884a| 国产日韩亚洲欧美综合| 男男视频亚洲欧美| 欧美人妖巨大在线| 亚洲日本免费电影| 成人国产亚洲欧美成人综合网| 日韩欧美在线不卡| 亚洲一级二级在线| 色综合久久综合网欧美综合网| 久久久不卡影院| 久久99久久99| 91精品国产综合久久国产大片| 中文字幕在线不卡| 国产成+人+日韩+欧美+亚洲| 欧美不卡一区二区三区四区| 性欧美大战久久久久久久久| 色国产综合视频| 亚洲欧美偷拍卡通变态| av亚洲产国偷v产偷v自拍| 久久九九久久九九| 国产精品一区二区无线| 精品久久久久久久人人人人传媒 | 中文一区在线播放| 国产乱人伦偷精品视频不卡| 欧美成人高清电影在线| 麻豆91精品91久久久的内涵| 日韩一区二区在线看片| 日韩一区精品视频| 欧美一区二区三区的| 天天综合色天天综合色h| 欧美日韩电影在线| 午夜精品国产更新| 在线不卡一区二区| 男男视频亚洲欧美| 欧美v日韩v国产v| 国产精品自产自拍| 中文字幕第一区| 不卡在线观看av| 综合激情网...| 在线观看日韩国产| 日韩中文字幕亚洲一区二区va在线 | 国产激情视频一区二区三区欧美| 久久蜜桃av一区精品变态类天堂 | 日韩午夜在线观看| 韩国一区二区视频| 国产欧美精品一区| 色香色香欲天天天影视综合网| 一区二区三区在线看| 在线观看视频一区二区| 丝袜脚交一区二区| 欧美电影免费观看完整版| 国产一区二区福利视频| 中文字幕在线一区免费| 在线观看三级视频欧美| 日韩精品福利网| 国产亚洲精品7777| 91久久精品一区二区三区| 日韩精品一二三区| 久久久久高清精品| 91蝌蚪porny| 青青国产91久久久久久| 国产日韩av一区| 在线精品视频免费观看| 老司机精品视频线观看86| 国产日韩欧美a| 欧美日韩中字一区| 国产麻豆精品视频| 一区二区三区 在线观看视频| 欧美一区二区日韩| 成人性生交大片| 亚洲一区二区视频在线观看| 欧美tickling网站挠脚心| 懂色av中文字幕一区二区三区| 一区二区三区高清不卡| www激情久久| 色欧美乱欧美15图片| 久久成人免费日本黄色| 亚洲色图欧洲色图婷婷| 91麻豆精品国产91久久久久| 粉嫩av一区二区三区| 亚洲在线中文字幕| 久久久www成人免费无遮挡大片| 在线观看视频91| 高清视频一区二区| 日韩综合在线视频| 亚洲人成网站影音先锋播放| 日韩欧美高清在线| 在线免费不卡视频| 国产99精品国产| 久久国产成人午夜av影院| 亚洲乱码国产乱码精品精小说| 2023国产精品自拍| 欧美日本一道本| 色呦呦一区二区三区| 国产精品一区2区| 毛片av一区二区| 亚洲高清中文字幕| 最新成人av在线| 国产婷婷色一区二区三区四区| 91精品国产乱码久久蜜臀|