diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2020-05-22 17:49:39 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2020-05-28 17:25:22 +0200 |
commit | 9064502834a650d8cb1a40f11b9833162679b109 (patch) | |
tree | 3a892dcd10ea7ca365f874b9843f7365961abdd1 /src/platform/tests/test-common.c | |
parent | 9a4578c8f9c8e098b6e9816c39841b60e1e62a26 (diff) | |
download | NetworkManager-9064502834a650d8cb1a40f11b9833162679b109.tar.gz |
platform: rework qdisc synchronization
Rework qdisc synchronization. The previous implementation added all
known qdiscs and removed unneeded ones from platform; this had some
problems:
- kernel doesn't allow to add (with exclusive flag) a qdisc if one
with the same parent already exists;
- if we use the replace flag instead of add, then it becomes possible
to add a new qdisc with the same parent of an existing one. However
if the existing qdisc is of the same kind, kernel will try to to
change() it, which fails for some qdiscs (e.g. sfq).
- kernel doesn't allow to delete a qdisc with handle of zero because
that is the default qdisc and can only be replaced;
Fix that.
Diffstat (limited to 'src/platform/tests/test-common.c')
0 files changed, 0 insertions, 0 deletions