/* configures the firewall white list/black list access mode  */
IX_ETH_DB_PUBLIC IxEthDBStatus ixEthDBFirewallModeSet(IxEthDBPortId portID, IxEthDBFirewallMode mode)
/* configures the firewall white list/black list access mode  */
IX_ETH_DB_PUBLIC IxEthDBStatus ixEthDBFirewallModeSet(IxEthDBPortId portID, IxEthDBFirewallMode mode)
{
    IX_ETH_DB_CHECK_PORT(portID);
    IX_ETH_DB_CHECK_SINGLE_NPE(portID);
    IX_ETH_DB_CHECK_FEATURE(portID, IX_ETH_DB_FIREWALL);
    if (mode != IX_ETH_DB_FIREWALL_WHITE_LIST
        && mode != IX_ETH_DB_FIREWALL_BLACK_LIST)
    {
        return IX_ETH_DB_INVALID_ARG;
    }    
    ixEthDBPortInfo[portID].firewallMode = mode;
    return ixEthDBFirewallTableDownload(portID);
}