Skip to content

Commit

Permalink
Merge pull request #4302 from HollyGurza/T681
Browse files Browse the repository at this point in the history
T681: Fix QoS DSCP filter
  • Loading branch information
dmbaturin authored Jan 20, 2025
2 parents 599a442 + 0d28573 commit 3beac86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/vyos/qos/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ def _get_dsfield(self, value):
if value in self._dsfields:
return self._dsfields[value]
else:
return value
# left shift operation aligns the DSCP/TOS value with its bit position in the IP header.
return int(value) << 2

def _calc_random_detect_queue_params(self, avg_pkt, max_thr, limit=None, min_thr=None,
mark_probability=None, precedence=0):
Expand Down

0 comments on commit 3beac86

Please sign in to comment.