libvirt/src/util
Michal Privoznik ac9c3c0b2c virnetdevbandwidth.c: Put a limit to "quantum"
The "quantum" attribute of HTB is documented as:

  Number of bytes to serve from this class before the scheduler
  moves to the next class.

Since v1.3.2-rc1~225 we compute what we think is the appropriate
value and pass it on the TC command line. But kernel and
subsequently TC use uint32_t to store this value. If we compute
value outside of this type then TC fails and prints usage which
we then interpret as an error message. Needlessly long error
message. While there's not much we can do about the latter, we
can put a cap on the value and stop tickling this behavior of TC.

Fixes: 065054daa7
Resolves: https://issues.redhat.com/browse/RHEL-34112
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
2024-04-25 09:40:15 +02:00
..
glibcompat.c glibcompat: Provide proper override for 'g_hash_table_steal_extended' 2022-06-01 12:27:10 +02:00
glibcompat.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
iohelper.c util: Update format strings in translated messages (part 1) 2023-04-01 11:40:35 +02:00
meson.build Move src/keycodemapdb -> subprojects/keycodemapdb 2023-04-17 15:02:38 +02:00
viracpi.c util: acpi: include unistd.h 2023-04-06 15:39:37 +02:00
viracpi.h util: Introduce virAcpi module 2023-04-06 12:48:22 +02:00
viracpipriv.h util: Introduce virAcpi module 2023-04-06 12:48:22 +02:00
viralloc.c util: Update format strings in translated messages (part 1) 2023-04-01 11:40:35 +02:00
viralloc.h util: fix various ATTRIBUTE_NONNULL calls 2021-11-23 09:59:00 +01:00
virarch.c Implement the method of getting host info for loongarch 2024-03-21 14:42:26 +01:00
virarch.h Add loongarch cpu support 2024-03-21 14:42:20 +01:00
virarptable.c lib: use struct zero initializer instead of memset 2023-08-03 16:41:19 +02:00
virarptable.h
viraudit.c lib: Drop intermediary return variables 2021-10-25 12:48:46 +02:00
viraudit.h
virauth.c lib: use struct zero initializer instead of memset 2023-08-03 16:41:19 +02:00
virauth.h util: virauth: Export virAuthGetCredential 2023-01-23 16:32:26 +01:00
virauthconfig.c util: Update format strings in translated messages (part 1) 2023-04-01 11:40:35 +02:00
virauthconfig.h
virbitmap.c util: Update format strings in translated messages (part 1) 2023-04-01 11:40:35 +02:00
virbitmap.h virbitmap: Allow NULL bitmap in functions returning index of a set/clear bit 2023-02-06 13:34:06 +01:00
virbpf.c lib: use struct zero initializer instead of memset 2023-08-03 16:41:19 +02:00
virbpf.h meson: remove obsolete check for BPF_PROG_QUERY 2022-12-12 10:36:18 +00:00
virbuffer.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virbuffer.h
virccw.c util: Update format strings in translated messages (part 1) 2023-04-01 11:40:35 +02:00
virccw.h util: add virCCWDeviceAddressFromString to virccw 2022-05-23 16:31:59 +02:00
vircgroup.c util: Update format strings in translated messages (part 1) 2023-04-01 11:40:35 +02:00
vircgroup.h vircgroupv2: fix cpu.weight limits check 2023-01-17 10:57:50 +01:00
vircgroupbackend.c util: Update format strings in translated messages (part 1) 2023-04-01 11:40:35 +02:00
vircgroupbackend.h util: Update format strings in translated messages (part 1) 2023-04-01 11:40:35 +02:00
vircgrouppriv.h
vircgroupv1.c virCgroupV1GetBlkioIo(Device)Serviced: Refactor extraction of cgroup data 2023-04-14 15:20:14 +02:00
vircgroupv1.h
vircgroupv2.c util: Update format strings in translated messages (part 1) 2023-04-01 11:40:35 +02:00
vircgroupv2.h
vircgroupv2devices.c util: Move error messages onto a single line 2023-09-04 09:35:36 +02:00
vircgroupv2devices.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
vircommand.c util: vircommand: fix redundant if 2023-10-10 12:36:15 +02:00
vircommand.h util: make virCommandSetSendBuffer testable 2023-09-19 14:28:50 -05:00
vircommandpriv.h util: make virCommandSetSendBuffer testable 2023-09-19 14:28:50 -05:00
virconf.c src: Avoid needless checks before calling g_strdup() 2023-09-18 14:46:24 +02:00
virconf.h virconf: Make virConfSetValue() clear consumed pointer 2022-01-17 09:53:45 +01:00
vircrypto.c util: Update format strings in translated messages (part 1) 2023-04-01 11:40:35 +02:00
vircrypto.h util: Remove use of virCryptoHaveCipher(VIR_CRYPTO_CIPHER_AES256CBC) 2021-09-22 14:53:55 +02:00
virdaemon.c util: Update format strings in translated messages (part 1) 2023-04-01 11:40:35 +02:00
virdaemon.h Exit on errors from virDaemonSetupLogging 2022-01-05 14:08:39 +01:00
virdevmapper.c lib: use struct zero initializer instead of memset 2023-08-03 16:41:19 +02:00
virdevmapper.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virdnsmasq.c virStringParseVersion: Parse into 'unsigned long long' 2023-04-03 09:19:06 +02:00
virdnsmasq.h virdnsmasq: Drop dnsmasqCapsNewFromBuffer() 2022-01-18 16:18:57 +01:00
virebtables.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virebtables.h
virendian.h
virenum.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virenum.h util: enum: Add helpers for converting virTristate* to a plain bool 2021-12-01 13:39:47 +01:00
virerror.c Adding Public Get and Set APIs for Network Metadata 2023-08-25 12:36:37 +02:00
virerror.h virerror: Make virReportEnumRangeError() check for type mismatch 2023-09-20 17:18:48 +02:00
virerrorpriv.h
virevent.c docstring: remove 'v' from since metadata 2022-05-04 18:11:06 +02:00
virevent.h
vireventglib.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
vireventglib.h
vireventglibwatch.c
vireventglibwatch.h
vireventthread.c util: Update format strings in translated messages (part 1) 2023-04-01 11:40:35 +02:00
vireventthread.h
virfcp.c lib: Replace virBuildPath() with g_build_filename() 2023-10-17 08:32:13 +02:00
virfcp.h
virfdstream.c lib: use struct zero initializer instead of memset 2023-08-03 16:41:19 +02:00
virfdstream.h
virfile.c virfile: Switch to virReportSystemError after failed VIR_CLOSE() 2024-02-22 10:23:20 +01:00
virfile.h network: convert virFileLinkPointsTo to return bool 2023-12-07 11:31:29 +01:00
virfilecache.c util: Allow virFileCache data to be any GObject 2023-09-19 14:28:49 -05:00
virfilecache.h util: Allow virFileCache data to be any GObject 2023-09-19 14:28:49 -05:00
virfirewall.c util: Update format strings in translated messages (part 2) 2023-04-01 11:40:35 +02:00
virfirewall.h util: make virFirewallRuleToString() global 2022-08-24 12:22:47 -04:00
virfirewalld.c virfirewalld: Drop useless memset() in virFirewallDApplyRule() 2023-08-03 16:35:58 +02:00
virfirewalld.h util: include virfirewall.h in virfirewalld.h 2023-05-10 14:41:53 +02:00
virfirewalldpriv.h
virfirmware.c util: Update format strings in translated messages (part 2) 2023-04-01 11:40:35 +02:00
virfirmware.h
virgdbus.c util: Update format strings in translated messages (part 2) 2023-04-01 11:40:35 +02:00
virgdbus.h
virgettext.c
virgettext.h
virgic.c
virgic.h
virglibutil.c
virglibutil.h
virhash.c lib: Replace qsort() with g_qsort_with_data() 2023-11-24 09:53:14 +01:00
virhash.h util: virhash: Replace 'virHashDataFree' by 'GDestroyNotify' 2021-12-01 13:53:12 +01:00
virhashcode.c
virhashcode.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virhook.c lib: Replace virBuildPath() with g_build_filename() 2023-10-17 08:32:13 +02:00
virhook.h
virhostcpu.c Implement the method of getting host info for loongarch 2024-03-21 14:42:26 +01:00
virhostcpu.h conf: Report CPU clusters in capabilities XML 2024-01-15 14:56:35 +01:00
virhostcpupriv.h
virhostmem.c virhostmem: Get total memory on macOS properly 2023-11-06 12:01:57 +01:00
virhostmem.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virhostuptime.c util: Update format strings in translated messages (part 2) 2023-04-01 11:40:35 +02:00
virhostuptime.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
viridentity.c util: Update format strings in translated messages (part 2) 2023-04-01 11:40:35 +02:00
viridentity.h virIdentityGetParameters: Return 'virTypedParamList' 2022-05-18 13:46:30 +02:00
viridentitypriv.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virinitctl.c lib: use struct zero initializer instead of memset 2023-08-03 16:41:19 +02:00
virinitctl.h
viriptables.c util: Update format strings in translated messages (part 2) 2023-04-01 11:40:35 +02:00
viriptables.h network: eliminate code that uses default iptables chains 2021-12-13 13:37:31 -05:00
viriscsi.c lib: use struct zero initializer instead of memset 2023-08-03 16:41:19 +02:00
viriscsi.h
virjson.c util: json: Remove 'virJSONValueObjectReplaceValue' 2024-02-01 10:39:40 +01:00
virjson.h util: json: Remove 'virJSONValueObjectReplaceValue' 2024-02-01 10:39:40 +01:00
virkeycode.c
virkeycode.h
virkmod.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virkmod.h
virlease.c util: Update format strings in translated messages (part 2) 2023-04-01 11:40:35 +02:00
virlease.h
virlockspace.c util: Update format strings in translated messages (part 2) 2023-04-01 11:40:35 +02:00
virlockspace.h
virlog.c lib: use struct zero initializer instead of memset 2023-08-03 16:41:19 +02:00
virlog.h util: Check for errors in virLogSetFromEnv 2022-01-05 14:08:40 +01:00
virmacaddr.c conf: Generate MAC address instead of keeping all zeroes 2023-09-04 16:01:24 +02:00
virmacaddr.h conf: Generate MAC address instead of keeping all zeroes 2023-09-04 16:01:24 +02:00
virmacmap.c util: Update format strings in translated messages (part 2) 2023-04-01 11:40:35 +02:00
virmacmap.h conf: add cleanup func for virMacMap 2021-09-09 18:06:13 +02:00
virmdev.c util: Move error messages onto a single line 2023-09-04 09:35:36 +02:00
virmdev.h virmdev: prepare type and attributes for dual state 2024-02-26 10:50:43 +01:00
virmodule.c util: Update format strings in translated messages (part 2) 2023-04-01 11:40:35 +02:00
virmodule.h
virnetdev.c util: Move error messages onto a single line 2023-09-04 09:35:36 +02:00
virnetdev.h qemuxml2argvmock: Mock virNetDevSetMTU 2024-01-04 22:26:10 +01:00
virnetdevbandwidth.c virnetdevbandwidth.c: Put a limit to "quantum" 2024-04-25 09:40:15 +02:00
virnetdevbandwidth.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virnetdevbridge.c lib: use struct zero initializer instead of memset 2023-08-03 16:41:19 +02:00
virnetdevbridge.h
virnetdevip.c lib: use struct zero initializer instead of memset 2023-08-03 16:41:19 +02:00
virnetdevip.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virnetdevmacvlan.c Decrease scope of some variables 2023-08-03 16:35:11 +02:00
virnetdevmacvlan.h virnetdevmacvlan: Drop G_GNUC_WARN_UNUSED_RESULT annotation for virNetDevMacVLanDeleteWithVPortProfile() 2023-02-01 15:44:20 +01:00
virnetdevmidonet.c util: Update format strings in translated messages (part 3) 2023-04-01 11:40:35 +02:00
virnetdevmidonet.h
virnetdevopenvswitch.c virnetdevopenvswitch: Create OVS ports as transient 2024-04-24 13:13:07 +02:00
virnetdevopenvswitch.h virnetdevopenvswitch: Drop @brname arg from virNetDevOpenvswitchRemovePort() 2024-04-12 20:45:00 +02:00
virnetdevpriv.h Allow VF vlanid to be passed as a pointer 2022-02-03 16:52:05 +01:00
virnetdevtap.c virnetdevopenvswitch: Drop @brname arg from virNetDevOpenvswitchRemovePort() 2024-04-12 20:45:00 +02:00
virnetdevtap.h virnetdevtap.c: Disallow pre-existing TAP devices 2022-12-09 08:46:39 +01:00
virnetdevveth.c util: Update format strings in translated messages (part 3) 2023-04-01 11:40:35 +02:00
virnetdevveth.h
virnetdevvlan.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virnetdevvlan.h
virnetdevvportprofile.c virNetDevVPortProfileOp8021Qbh: Use proper type in virReportEnumRangeError() 2023-09-20 17:18:48 +02:00
virnetdevvportprofile.h conf: Rewrite virNetDevVPortProfileCopy 2022-08-18 08:34:30 +02:00
virnetlink.c util: Move error messages onto a single line 2023-09-04 09:35:36 +02:00
virnetlink.h
virnodesuspend.c util: add logging about node suspend availability 2023-07-20 11:01:08 +01:00
virnodesuspend.h
virnuma.c virnuma: Avoid integer overflow in virNumaGetPages() 2023-11-24 16:35:19 +01:00
virnuma.h qemuxml2argvmock: Drop virNuma* mocks 2023-03-15 12:46:36 +01:00
virnvme.c util: use "stubDriverType" instead of just "stubDriver" 2023-08-24 23:36:18 -04:00
virnvme.h
virobject.c util: Update format strings in translated messages (part 3) 2023-04-01 11:40:35 +02:00
virobject.h util: remove virObjectUnref() adapters 2022-07-15 16:44:39 -05:00
virpci.c pci: Remove error reporting from PCI VPD parsing 2024-03-28 10:11:55 +01:00
virpci.h pci: Remove error reporting from PCI VPD parsing 2024-03-28 10:11:55 +01:00
virpcivpd.c virpcivpd: Revert error reporting from PCI VPD parser 2024-03-28 10:11:55 +01:00
virpcivpd.h util: virpcivpd: Remove return value from virPCIVPDResourceUpdateKeyword 2024-01-31 17:24:07 +01:00
virpcivpdpriv.h util: virpcivpd: Remove return value from virPCIVPDResourceCustomUpsertValue 2024-01-31 17:24:07 +01:00
virperf.c lib: use struct zero initializer instead of memset 2023-08-03 16:41:19 +02:00
virperf.h
virpidfile.c util: Update format strings in translated messages (part 3) 2023-04-01 11:40:35 +02:00
virpidfile.h util: add quiet parameter to virPidFileAcquirePathFull 2023-03-08 12:16:56 +01:00
virpolkit.c util: Update format strings in translated messages (part 3) 2023-04-01 11:40:35 +02:00
virpolkit.h util: Add virPolkitAgentAvailable 2021-11-23 12:51:09 +01:00
virportallocator.c util: virtportallocator: Add VIR_DEBUG statements for port allocations and release 2024-01-31 15:25:53 +01:00
virportallocator.h
virprobe.h
virprocess.c meson: Check for sched_get_priority_min() 2024-03-19 18:38:19 +01:00
virprocess.h virprocess: virProcessGetNamespaces() to void 2024-01-04 17:06:14 +01:00
virqemu.c util: Move error messages onto a single line 2023-09-04 09:35:36 +02:00
virqemu.h util: qemu: Remove 'skipKey' argument from virQEMUBuildCommandLineJSONArrayFormatFunc prototype 2023-01-04 14:01:16 +01:00
virrandom.c virrandom: Accept "nodedev" driver in virRandomGenerateWWN() 2023-07-25 14:54:37 +02:00
virrandom.h virrandommock: Drop virRandomGenerateWWN 2023-07-19 13:09:11 +02:00
virresctrl.c lib: Replace qsort() with g_qsort_with_data() 2023-11-24 09:53:14 +01:00
virresctrl.h util: Remove unused includes 2022-06-16 06:43:57 +02:00
virresctrlpriv.h
virrotatingfile.c util: Update format strings in translated messages (part 3) 2023-04-01 11:40:35 +02:00
virrotatingfile.h
virscsi.c util: Update format strings in translated messages (part 3) 2023-04-01 11:40:35 +02:00
virscsi.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virscsihost.c util: Update format strings in translated messages (part 3) 2023-04-01 11:40:35 +02:00
virscsihost.h
virscsivhost.c util: Update format strings in translated messages (part 3) 2023-04-01 11:40:35 +02:00
virscsivhost.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virseclabel.c util: Remove unused includes 2022-06-16 06:43:57 +02:00
virseclabel.h virSecurityLabelDef: Declare 'type' as 'virDomainSeclabelType' 2021-11-24 09:20:38 +01:00
virsecret.c tests: Rename 'qemuxml2argvtest' to 'qemuxmlconftest' 2024-01-17 17:31:12 +01:00
virsecret.h
virsecureerase.c util: implement secure erase with explicit_bzero 2022-12-13 04:46:59 -05:00
virsecureerase.h
virsocket.c virsocket: Simplify virSocketSendFD() 2024-02-07 12:34:54 +01:00
virsocket.h virSocketSendMsgWithFDs: Introduce @payload_len argument 2024-02-07 11:01:30 +01:00
virsocketaddr.c util: Introduce virSocketAddrBytes 2024-02-07 14:19:42 +01:00
virsocketaddr.h util: Introduce virSocketAddrBytes 2024-02-07 14:19:42 +01:00
virstoragefile.c util: Update format strings in translated messages (part 3) 2023-04-01 11:40:35 +02:00
virstoragefile.h
virstring.c lib: Replace qsort() with g_qsort_with_data() 2023-11-24 09:53:14 +01:00
virstring.h lib: Replace qsort() with g_qsort_with_data() 2023-11-24 09:53:14 +01:00
virsysinfo.c virsysinfo: Try reading DMI table 2024-04-02 16:58:47 -06:00
virsysinfo.h conf: domain: Refactor cleanup in virSysinfoChassisParseXML 2022-11-02 09:22:56 +01:00
virsysinfopriv.h
virsystemd.c util: Introduce virSystemdResolvedRegisterNameServer 2024-02-07 14:19:42 +01:00
virsystemd.h util: Introduce virSystemdResolvedRegisterNameServer 2024-02-07 14:19:42 +01:00
virsystemdpriv.h util: Introduce virSystemdHasResolved 2024-02-07 14:19:42 +01:00
virthread.c virthread: Introduce virLockGuard 2022-02-01 17:19:23 +01:00
virthread.h virthread: Introduce VIR_WITH_MUTEX_LOCK_GUARD 2022-02-01 17:19:32 +01:00
virthreadjob.c util: Update format strings in translated messages (part 3) 2023-04-01 11:40:35 +02:00
virthreadjob.h
virthreadpool.c virthreadpool: create threads from the newly expanded workers 2024-03-18 15:12:46 +01:00
virthreadpool.h virthreadpool: Allow setting identity for workers 2021-10-27 17:11:29 +02:00
virtime.c
virtime.h
virtpm.c util: Update format strings in translated messages (part 3) 2023-04-01 11:40:35 +02:00
virtpm.h util: Add parsing support for swtpm's cmdarg-migration capability 2022-11-09 12:26:22 +01:00
virtypedparam-public.c util: Update format strings in translated messages (part 3) 2023-04-01 11:40:35 +02:00
virtypedparam.c lib: Replace qsort() with g_qsort_with_data() 2023-11-24 09:53:14 +01:00
virtypedparam.h virTypedParamsValidate: Allow typed params to be both _UINT and _ULLONG 2023-05-02 14:32:47 +02:00
viruri.c lib: use struct zero initializer instead of memset 2023-08-03 16:41:19 +02:00
viruri.h viruri: Introduce virURIParamsSetIgnore() 2023-02-08 16:50:45 +01:00
virusb.c util: Update format strings in translated messages (part 3) 2023-04-01 11:40:35 +02:00
virusb.h
virutil.c util: add virGetSubUIDs 2023-12-14 17:10:22 +01:00
virutil.h util: add virGetSubUIDs 2023-12-14 17:10:22 +01:00
viruuid.c Decrease scope of some variables 2023-08-03 16:35:11 +02:00
viruuid.h lib: Use G_NO_INLINE instead of G_GNUC_NO_INLINE 2022-07-18 17:23:15 +02:00
virvhba.c util: Update format strings in translated messages (part 3) 2023-04-01 11:40:35 +02:00
virvhba.h
virvsock.c meson: remove obsolete check for VHOST_VSOCK_SET_GUEST_CID 2022-12-12 10:36:15 +00:00
virvsock.h
virxdrdefs.h
virxml.c util: xml: Return GPtrArray from virXMLNodeGetSubelement 2024-01-08 09:27:31 +01:00
virxml.h util: xml: Return GPtrArray from virXMLNodeGetSubelement 2024-01-08 09:27:31 +01:00