Dan Kenigsberg has posted comments on this change. Change subject: tc: add qdisc parsing for some hfsc, ingress, pfifo_fast, etc ......................................................................
Patch Set 5: Code-Review-1 (2 comments) http://gerrit.ovirt.org/#/c/30048/5/vdsm/network/tc/qdisc.py File vdsm/network/tc/qdisc.py: Line 34: Line 35: def parse(tokens): Line 36: """Takes a token generator""" Line 37: kind = next(tokens) Line 38: base_parser = _spec[_BASE_PARSER] My former question was mainly about the names kind, base, and spec. Are they well-known to a reader of the tc code? Even if they are, please explain them in a comment or the docstring (sorry if I'm slow). Line 39: spec_parser = _spec.get(kind, ()) Line 40: data = {'kind': kind, 'handle': next(tokens)} Line 41: for token in tokens: Line 42: if kind not in data and token in base_parser: Line 64: return [int(next(tokens)) for _ in range(_TC_PRIO_MAX)] Line 65: Line 66: Line 67: _spec = { Line 68: _BASE_PARSER: { didn't you agree to move this out of _spec? (as it isn't part of the spec) Line 69: 'dev': _parser.parse_str, Line 70: 'parent': _parser.parse_str, Line 71: 'refcnt': _parser.parse_int, Line 72: 'root': _parser.parse_true, -- To view, visit http://gerrit.ovirt.org/30048 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I039dc7594a261ccb32f78c0b050b28fecac417ee Gerrit-PatchSet: 5 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Antoni Segura Puimedon <[email protected]> Gerrit-Reviewer: Antoni Segura Puimedon <[email protected]> Gerrit-Reviewer: Dan Kenigsberg <[email protected]> Gerrit-Reviewer: Livnat Peer <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
