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

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

?? ixethdbfeatures.c

?? 友善mini2440嵌入式
?? C
?? 第 1 頁 / 共 2 頁
字號:
    }    /* force port enabled */    portInfo->enabled = TRUE;    if (enable)    {        /* turn on enable bit */        portInfo->featureStatus |= feature;#ifdef CONFIG_WITH_VLAN /* test-only: VLAN support not included to save space!!! */        /* if this is VLAN/QoS set the default priority table */        if (feature == IX_ETH_DB_VLAN_QOS)        {            /* turn on VLAN/QoS (most permissive mode):                - set default 802.1Q priority mapping table, in accordance to the                  availability of traffic classes                - set the acceptable frame filter to accept all                - set the Ingress tagging mode to pass-through                - set full VLAN membership list                - set full TTI table                - set the default 802.1Q tag to 0 (VLAN ID 0, Pri 0, CFI 0)                - enable TPID port extraction            */            portInfo->ixEthDBTrafficClassCount = portInfo->ixEthDBTrafficClassAvailable;            /* set default 802.1Q priority mapping table - note that C indexing starts from 0, so we substract 1 here */            memcpy (defaultPriorityTable,                (const void *) ixEthIEEE802_1QUserPriorityToTrafficClassMapping[portInfo->ixEthDBTrafficClassCount - 1],                sizeof (defaultPriorityTable));            /* update priority mapping and AQM queue assignments */            status = ixEthDBPriorityMappingTableSet(portID, defaultPriorityTable);            if (status == IX_ETH_DB_SUCCESS)            {                status = ixEthDBAcceptableFrameTypeSet(portID, IX_ETH_DB_ACCEPT_ALL_FRAMES);            }            if (status == IX_ETH_DB_SUCCESS)            {                status = ixEthDBIngressVlanTaggingEnabledSet(portID, IX_ETH_DB_PASS_THROUGH);            }            /* set membership and TTI tables */            memset (vlanSet, 0xFF, sizeof (vlanSet));            if (status == IX_ETH_DB_SUCCESS)            {                /* use the internal function to bypass PVID check */                status = ixEthDBPortVlanTableSet(portID, portInfo->vlanMembership, vlanSet);            }            if (status == IX_ETH_DB_SUCCESS)            {                /* use the internal function to bypass PVID check */                status = ixEthDBPortVlanTableSet(portID, portInfo->transmitTaggingInfo, vlanSet);            }            /* reset the PVID */            if (status == IX_ETH_DB_SUCCESS)            {                status = ixEthDBPortVlanTagSet(portID, 0);            }            /* enable TPID port extraction */            if (status == IX_ETH_DB_SUCCESS)            {                status = ixEthDBVlanPortExtractionEnable(portID, TRUE);            }        }        else if (feature == IX_ETH_DB_FIREWALL)#endif        {            /* firewall starts in black-list mode unless otherwise configured before *             * note that invalid source MAC address filtering is disabled by default */            if (portInfo->firewallMode != IX_ETH_DB_FIREWALL_BLACK_LIST                && portInfo->firewallMode != IX_ETH_DB_FIREWALL_WHITE_LIST)            {                status = ixEthDBFirewallModeSet(portID, IX_ETH_DB_FIREWALL_BLACK_LIST);                if (status == IX_ETH_DB_SUCCESS)                {                    status = ixEthDBFirewallInvalidAddressFilterEnable(portID, FALSE);                }            }        }        if (status != IX_ETH_DB_SUCCESS)        {            /* checks failed, disable */            portInfo->featureStatus &= ~feature;        }    }    else    {        /* turn off features */        if (feature == IX_ETH_DB_FIREWALL)        {            /* turning off the firewall is equivalent to:                - set to black-list mode                - clear all the entries and download the new table                - turn off the invalid source address checking            */            status = ixEthDBDatabaseClear(portID, IX_ETH_DB_FIREWALL_RECORD);            if (status == IX_ETH_DB_SUCCESS)            {                status = ixEthDBFirewallModeSet(portID, IX_ETH_DB_FIREWALL_BLACK_LIST);            }            if (status == IX_ETH_DB_SUCCESS)            {                status = ixEthDBFirewallInvalidAddressFilterEnable(portID, FALSE);            }            if (status == IX_ETH_DB_SUCCESS)            {                status = ixEthDBFirewallTableDownload(portID);            }        }        else if (feature == IX_ETH_DB_WIFI_HEADER_CONVERSION)        {            /* turn off header conversion */            status = ixEthDBDatabaseClear(portID, IX_ETH_DB_WIFI_RECORD);            if (status == IX_ETH_DB_SUCCESS)            {                status = ixEthDBWiFiConversionTableDownload(portID);            }        }#ifdef CONFIG_WITH_VLAN /* test-only: VLAN support not included to save space!!! */        else if (feature == IX_ETH_DB_VLAN_QOS)        {            /* turn off VLAN/QoS:                - set a priority mapping table with one traffic class                - set the acceptable frame filter to accept all                - set the Ingress tagging mode to pass-through                - clear the VLAN membership list                - clear the TTI table                - set the default 802.1Q tag to 0 (VLAN ID 0, Pri 0, CFI 0)                - disable TPID port extraction            */            /* initialize all => traffic class 0 priority mapping table */            memset (defaultPriorityTable, 0, sizeof (defaultPriorityTable));            portInfo->ixEthDBTrafficClassCount = 1;            status = ixEthDBPriorityMappingTableSet(portID, defaultPriorityTable);            if (status == IX_ETH_DB_SUCCESS)            {                status = ixEthDBAcceptableFrameTypeSet(portID, IX_ETH_DB_ACCEPT_ALL_FRAMES);            }            if (status == IX_ETH_DB_SUCCESS)            {                status = ixEthDBIngressVlanTaggingEnabledSet(portID, IX_ETH_DB_PASS_THROUGH);            }            /* clear membership and TTI tables */            memset (vlanSet, 0, sizeof (vlanSet));            if (status == IX_ETH_DB_SUCCESS)            {                /* use the internal function to bypass PVID check */                status = ixEthDBPortVlanTableSet(portID, portInfo->vlanMembership, vlanSet);            }            if (status == IX_ETH_DB_SUCCESS)            {                /* use the internal function to bypass PVID check */                status = ixEthDBPortVlanTableSet(portID, portInfo->transmitTaggingInfo, vlanSet);            }            /* reset the PVID */            if (status == IX_ETH_DB_SUCCESS)            {                status = ixEthDBPortVlanTagSet(portID, 0);            }            /* disable TPID port extraction */            if (status == IX_ETH_DB_SUCCESS)            {                status = ixEthDBVlanPortExtractionEnable(portID, FALSE);            }        }#endif        if (status == IX_ETH_DB_SUCCESS)        {            /* checks passed, disable */            portInfo->featureStatus &= ~feature;        }    }    /* restore port enabled state */    portInfo->enabled = portEnabled;    return status;}/** * @brief returns the status of a feature * * @param portID port ID * @param present location to store a boolean value indicating * if the feature is present (TRUE) or not (FALSE) * @param enabled location to store a booleam value indicating * if the feature is present (TRUE) or not (FALSE) * * Note that this function is documented in the main component * header file, IxEthDB.h. * * @return IX_ETH_DB_SUCCESS if the operation completed * successfully or an appropriate error message otherwise */IX_ETH_DB_PUBLICIxEthDBStatus ixEthDBFeatureStatusGet(IxEthDBPortId portID, IxEthDBFeature feature, BOOL *present, BOOL *enabled){    PortInfo *portInfo;    IX_ETH_DB_CHECK_PORT(portID);    IX_ETH_DB_CHECK_REFERENCE(present);    IX_ETH_DB_CHECK_REFERENCE(enabled);    portInfo = &ixEthDBPortInfo[portID];    *present = (portInfo->featureCapability & feature) != 0;    *enabled = (portInfo->featureStatus & feature) != 0;    return IX_ETH_DB_SUCCESS;}/** * @brief returns the value of an EthDB property * * @param portID ID of the port * @param feature feature owning the property * @param property ID of the property * @param type location to store the property type into * @param value location to store the property value into * * Note that this function is documented in the main component * header file, IxEthDB.h. * * @return IX_ETH_DB_SUCCESS if the operation completed * successfully or an appropriate error message otherwise */IX_ETH_DB_PUBLICIxEthDBStatus ixEthDBFeaturePropertyGet(IxEthDBPortId portID, IxEthDBFeature feature, IxEthDBProperty property, IxEthDBPropertyType *type, void *value){    IX_ETH_DB_CHECK_PORT_EXISTS(portID);    IX_ETH_DB_CHECK_REFERENCE(type);    IX_ETH_DB_CHECK_REFERENCE(value);    if (feature == IX_ETH_DB_VLAN_QOS)    {        if (property == IX_ETH_DB_QOS_TRAFFIC_CLASS_COUNT_PROPERTY)        {            * (UINT32 *) value = ixEthDBPortInfo[portID].ixEthDBTrafficClassCount;            *type              = IX_ETH_DB_INTEGER_PROPERTY;            return IX_ETH_DB_SUCCESS;        }        else if (property >= IX_ETH_DB_QOS_TRAFFIC_CLASS_0_RX_QUEUE_PROPERTY            && property <= IX_ETH_DB_QOS_TRAFFIC_CLASS_7_RX_QUEUE_PROPERTY)        {            UINT32 classDelta = property - IX_ETH_DB_QOS_TRAFFIC_CLASS_0_RX_QUEUE_PROPERTY;            if (classDelta >= ixEthDBPortInfo[portID].ixEthDBTrafficClassCount)            {                return IX_ETH_DB_FAIL;            }            * (UINT32 *) value = ixEthDBPortInfo[portID].ixEthDBTrafficClassAQMAssignments[classDelta];            *type              = IX_ETH_DB_INTEGER_PROPERTY;            return IX_ETH_DB_SUCCESS;        }    }    return IX_ETH_DB_INVALID_ARG;}/** * @brief sets the value of an EthDB property * * @param portID ID of the port * @param feature feature owning the property * @param property ID of the property * @param value location containing the property value * * This function implements a private property intended * only for EthAcc usage. Upon setting the IX_ETH_DB_QOS_QUEUE_CONFIGURATION_COMPLETE * property (the value is ignored), the availability of traffic classes is * frozen to whatever traffic class structure is currently in use. * This means that if VLAN_QOS has been enabled before EthAcc * initialization then all the defined traffic classes will be available; * otherwise only one traffic class (0) will be available. * * Note that this function is documented in the main component * header file, IxEthDB.h as not accepting any parameters. The * current implementation is only intended for the private use of EthAcc. * * Also note that once this function is called the effect is irreversible, * unless EthDB is complete unloaded and re-initialized. * * @return IX_ETH_DB_INVALID_ARG (no read-write properties are * supported in this release) */IX_ETH_DB_PUBLICIxEthDBStatus ixEthDBFeaturePropertySet(IxEthDBPortId portID, IxEthDBFeature feature, IxEthDBProperty property, void *value){    IX_ETH_DB_CHECK_PORT_EXISTS(portID);    if ((feature == IX_ETH_DB_VLAN_QOS) && (property == IX_ETH_DB_QOS_QUEUE_CONFIGURATION_COMPLETE))    {        ixEthDBPortInfo[portID].ixEthDBTrafficClassAvailable = ixEthDBPortInfo[portID].ixEthDBTrafficClassCount;        return IX_ETH_DB_SUCCESS;    }    return IX_ETH_DB_INVALID_ARG;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
1区2区3区国产精品| 国产成人精品www牛牛影视| 久久66热re国产| 99精品国产热久久91蜜凸| 日韩精品一区在线| 亚洲综合成人网| 丁香啪啪综合成人亚洲小说| 欧美精品自拍偷拍| 亚洲欧美日韩精品久久久久| 国产一区免费电影| 欧美久久久久中文字幕| 中文字幕一区二区三区不卡在线| 久久不见久久见中文字幕免费| 色综合色综合色综合色综合色综合| 日韩欧美一区二区免费| 亚洲电影一级黄| 色成年激情久久综合| 中文字幕精品一区二区精品绿巨人 | 国产成人超碰人人澡人人澡| 欧美色图12p| 亚洲免费av观看| 粉嫩久久99精品久久久久久夜| 欧美电影免费观看高清完整版在 | 日本韩国欧美一区| 国产精品理论在线观看| 久热成人在线视频| 欧美日韩国产a| 午夜av区久久| 欧美精品vⅰdeose4hd| 亚洲综合一二三区| 色爱区综合激月婷婷| 亚洲日本一区二区| 99re在线视频这里只有精品| 国产精品女人毛片| 99精品国产一区二区三区不卡| 中文字幕精品一区二区精品绿巨人| 精品一区二区三区的国产在线播放 | 国产精品视频九色porn| 国产在线一区二区综合免费视频| 日韩一级二级三级精品视频| 久久精品国产久精国产| 久久久久久一级片| 国产成人av电影| 国产精品国产a| 99re成人精品视频| 亚洲图片欧美综合| 在线电影欧美成精品| 日韩国产在线一| 精品成a人在线观看| 国产一区二区三区免费| 欧美国产激情一区二区三区蜜月 | 欧美日产在线观看| 蜜桃久久久久久久| 久久综合丝袜日本网| 顶级嫩模精品视频在线看| 国产精品色眯眯| 欧亚洲嫩模精品一区三区| 视频一区欧美日韩| 精品国产乱码久久久久久免费 | 国产又黄又大久久| 亚洲欧洲美洲综合色网| 在线亚洲免费视频| 极品少妇一区二区三区精品视频 | 日韩电影在线一区二区| 久久亚洲精精品中文字幕早川悠里| 粉嫩高潮美女一区二区三区| 亚洲视频小说图片| 欧美一区二区三区的| 成人教育av在线| 五月天精品一区二区三区| 久久久国产精华| 欧美日韩一区在线观看| 国产一区二三区好的| 亚洲一区电影777| 国产亚洲短视频| 欧美欧美欧美欧美| 成人免费观看视频| 日本色综合中文字幕| 国产精品久久一级| 精品日韩欧美在线| 欧美做爰猛烈大尺度电影无法无天| 日本视频免费一区| 亚洲最色的网站| 国产欧美日韩卡一| 欧美一区二区三区视频免费 | 3751色影院一区二区三区| 国产91综合一区在线观看| 午夜国产精品一区| 亚洲美女屁股眼交3| 欧美精品一区二区在线观看| 欧美系列日韩一区| 波多野结衣中文字幕一区 | 日韩电影在线观看电影| 亚洲免费av观看| 国产日韩精品一区二区三区在线| 欧美日韩国产精品自在自线| 色综合久久久久久久久久久| 国产91精品久久久久久久网曝门| 蜜桃视频一区二区| 天堂资源在线中文精品| 一区二区三区自拍| 亚洲视频资源在线| 成人免费一区二区三区在线观看| 欧美精品一区二区在线观看| 日韩小视频在线观看专区| 欧美日韩一区三区四区| 欧美综合亚洲图片综合区| 99久久免费视频.com| 成人成人成人在线视频| 国产宾馆实践打屁股91| 国产乱码精品一区二区三区忘忧草| 日本伊人色综合网| 日韩精品一级二级| 日韩av在线播放中文字幕| 日本欧美肥老太交大片| 麻豆国产精品视频| 蜜臀精品一区二区三区在线观看 | 精品久久久久久亚洲综合网| 精品视频在线免费观看| 欧美性受xxxx黑人xyx性爽| 91碰在线视频| 色婷婷av一区二区三区软件 | 精品欧美一区二区久久| 日韩精品一区二区三区在线| 日韩免费视频一区二区| 亚洲精品一区二区三区精华液| 欧美一区二区三区喷汁尤物| 欧美不卡一区二区三区四区| 日韩精品在线网站| 国产欧美日韩综合| 欧美国产一区二区| 一区在线观看视频| 午夜欧美视频在线观看 | 亚洲午夜私人影院| 五月天久久比比资源色| 激情综合一区二区三区| 国产成人午夜片在线观看高清观看| 国产成人在线免费| 91久久精品日日躁夜夜躁欧美| 欧美日韩你懂得| 欧美草草影院在线视频| 中文字幕一区二区三区av| 婷婷六月综合亚洲| 国产精品资源网站| 色94色欧美sute亚洲线路一ni| 欧美人伦禁忌dvd放荡欲情| 精品国产污污免费网站入口| 国产精品免费人成网站| 亚洲一区二区三区视频在线 | 婷婷综合另类小说色区| 国产suv精品一区二区三区| 色婷婷av一区二区三区之一色屋| 91精品久久久久久久久99蜜臂| 国产亚洲一区二区在线观看| 亚洲黄色在线视频| 久久99在线观看| 一本色道久久综合精品竹菊| 日韩无一区二区| 亚洲精品成人a在线观看| 看片的网站亚洲| 欧美调教femdomvk| 国产欧美一区二区精品婷婷| 婷婷国产v国产偷v亚洲高清| 成人免费的视频| 日韩视频免费直播| 亚洲卡通欧美制服中文| 另类小说图片综合网| 91福利视频网站| 中日韩免费视频中文字幕| 日日嗨av一区二区三区四区| www.av亚洲| 欧美精品一区二区精品网| 亚洲已满18点击进入久久| 国产成人在线视频播放| 日韩精品专区在线影院重磅| 亚洲精品v日韩精品| 成人网男人的天堂| 久久亚洲精精品中文字幕早川悠里 | 91精品婷婷国产综合久久竹菊| 国产精品一区一区三区| 欧美在线啊v一区| 中文字幕一区二区三区四区 | 亚洲精品在线观| 午夜免费久久看| 91片在线免费观看| 日本一区二区成人| 国产精品综合网| 精品毛片乱码1区2区3区| 日韩精品成人一区二区在线| 欧美系列在线观看| 亚洲午夜精品在线| 日本高清不卡视频| 亚洲精品视频免费看| 色婷婷一区二区三区四区| 自拍偷拍亚洲欧美日韩| 99r精品视频| 中文字幕一区免费在线观看| 99久久精品国产一区| 国产精品国产自产拍高清av| 成人黄色一级视频|