On 5/7/26 19:03, Wesley Hershberger via Devel wrote: > This allows virNetDevBandwidthSet to clear only the interface's qdisc > for directions where bandwidth is defined (see the next patch) > > Signed-off-by: Wesley Hershberger <[email protected]> > --- > src/util/virnetdevbandwidth.c | 52 > +++++++++++++++++++++++++++++-------------- > src/util/virnetdevbandwidth.h | 2 ++ > 2 files changed, 37 insertions(+), 17 deletions(-)
> diff --git a/src/util/virnetdevbandwidth.h b/src/util/virnetdevbandwidth.h > index 9f271c5283..eaddb4f3d7 100644 > --- a/src/util/virnetdevbandwidth.h > +++ b/src/util/virnetdevbandwidth.h > @@ -50,6 +50,8 @@ int virNetDevBandwidthSet(const char *ifname, > unsigned int flags) > G_GNUC_WARN_UNUSED_RESULT; > > +int virNetDevBandwidthClearRoot(const char *ifname); > +int virNetDevBandwidthClearIngress(const char *ifname); > int virNetDevBandwidthClear(const char *ifname); > int virNetDevBandwidthCopy(virNetDevBandwidth **dest, > const virNetDevBandwidth *src) > No need to expose these in header file - nothing outside virnetbandwidth.c is calling (or going to call) these. In fact, if something needs to call these then these need to be listed in libvirt_private.syms. Michal
