Lines Matching refs:maxBytes
563 int BandwidthController::setInterfaceSharedQuota(const char *iface, int64_t maxBytes) { in setInterfaceSharedQuota() argument
572 if (!maxBytes) { in setInterfaceSharedQuota()
585 if (maxBytes == -1) { in setInterfaceSharedQuota()
598 quotaCmd = makeIptablesQuotaCmd(IptOpInsert, costName, maxBytes); in setInterfaceSharedQuota()
604 sharedQuotaBytes = maxBytes; in setInterfaceSharedQuota()
610 if (maxBytes != sharedQuotaBytes) { in setInterfaceSharedQuota()
611 res |= updateQuota(costName, maxBytes); in setInterfaceSharedQuota()
616 sharedQuotaBytes = maxBytes; in setInterfaceSharedQuota()
672 int BandwidthController::setInterfaceQuota(const char *iface, int64_t maxBytes) { in setInterfaceQuota() argument
683 if (!maxBytes) { in setInterfaceQuota()
688 if (maxBytes == -1) { in setInterfaceQuota()
713 quotaCmd = makeIptablesQuotaCmd(IptOpAppend, costName, maxBytes); in setInterfaceQuota()
720 quotaIfaces.push_front(QuotaInfo(ifaceName, maxBytes, 0)); in setInterfaceQuota()
723 res |= updateQuota(costName, maxBytes); in setInterfaceQuota()
728 it->quota = maxBytes; in setInterfaceQuota()