Lines Matching refs:maxBytes
480 int BandwidthController::setInterfaceSharedQuota(const char *iface, int64_t maxBytes) { in setInterfaceSharedQuota() argument
489 if (!maxBytes) { in setInterfaceSharedQuota()
502 if (maxBytes == -1) { in setInterfaceSharedQuota()
515 quotaCmd = makeIptablesQuotaCmd(IptFullOpInsert, costName, maxBytes); in setInterfaceSharedQuota()
521 sharedQuotaBytes = maxBytes; in setInterfaceSharedQuota()
527 if (maxBytes != sharedQuotaBytes) { in setInterfaceSharedQuota()
528 res |= updateQuota(costName, maxBytes); in setInterfaceSharedQuota()
533 sharedQuotaBytes = maxBytes; in setInterfaceSharedQuota()
589 int BandwidthController::setInterfaceQuota(const char *iface, int64_t maxBytes) { in setInterfaceQuota() argument
600 if (!maxBytes) { in setInterfaceQuota()
605 if (maxBytes == -1) { in setInterfaceQuota()
630 quotaCmd = makeIptablesQuotaCmd(IptFullOpAppend, costName, maxBytes); in setInterfaceQuota()
637 quotaIfaces.push_front(QuotaInfo(ifaceName, maxBytes, 0)); in setInterfaceQuota()
640 res |= updateQuota(costName, maxBytes); in setInterfaceQuota()
645 it->quota = maxBytes; in setInterfaceQuota()