network: ignore errors when CONFIG_NET_SCHED is disabled

Follow-ups for 828a81a937.

Fixes #23014.
This commit is contained in:
Yu Watanabe
2022-04-08 11:13:42 +01:00
committed by Luca Boccassi
parent 7f95def671
commit 15ac2a62f2
+6 -2
View File
@@ -863,11 +863,15 @@ int manager_enumerate(Manager *m) {
return log_error_errno(r, "Could not enumerate links: %m");
r = manager_enumerate_qdisc(m);
if (r < 0)
if (r == -EOPNOTSUPP)
log_debug_errno(r, "Could not enumerate QDiscs, ignoring: %m");
else if (r < 0)
return log_error_errno(r, "Could not enumerate QDisc: %m");
r = manager_enumerate_tclass(m);
if (r < 0)
if (r == -EOPNOTSUPP)
log_debug_errno(r, "Could not enumerate TClasses, ignoring: %m");
else if (r < 0)
return log_error_errno(r, "Could not enumerate TClass: %m");
r = manager_enumerate_addresses(m);