<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/python/vyos/qos, branch 1.4.0-epa3</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/marekm72/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/marekm72/vyos-1x.git/atom?h=1.4.0-epa3</id>
<link rel='self' href='https://git.amelek.net/marekm72/vyos-1x.git/atom?h=1.4.0-epa3'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/'/>
<updated>2024-05-02T15:05:57+00:00</updated>
<entry>
<title>qos: T6225: Fix qos random-detect policy</title>
<updated>2024-05-02T15:05:57+00:00</updated>
<author>
<name>khramshinr</name>
<email>khramshinr@gmail.com</email>
</author>
<published>2024-05-02T11:45:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=abc465f8ad894fda29d32b053798676e0294e20f'/>
<id>urn:sha1:abc465f8ad894fda29d32b053798676e0294e20f</id>
<content type='text'>
Fix default values for random-detect
Remove dsmakr qdisc from gred cofig because dsmark was deleted from kernel

(cherry picked from commit 0b54c1bc411a21833ec573031cf5ad98fe709a2f)
</content>
</entry>
<entry>
<title>qos: T4248: Allow to remove the only rule from the qos class</title>
<updated>2024-04-25T15:32:51+00:00</updated>
<author>
<name>khramshinr</name>
<email>khramshinr@gmail.com</email>
</author>
<published>2024-04-16T07:49:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=8c5c3bc48f76a5bb0c819c6f549d7fbcacf964de'/>
<id>urn:sha1:8c5c3bc48f76a5bb0c819c6f549d7fbcacf964de</id>
<content type='text'>
(cherry picked from commit da40bd2b2a826986de128354ea1bfc041ada0016)
</content>
</entry>
<entry>
<title>qos: T6035: QoS policy shaper queue-type random-detect requires limit avpkt</title>
<updated>2024-04-13T11:11:07+00:00</updated>
<author>
<name>khramshinr</name>
<email>khramshinr@gmail.com</email>
</author>
<published>2024-04-12T05:32:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=92f236989bc8fee0cc0170999204dc5ffc5cc1f8'/>
<id>urn:sha1:92f236989bc8fee0cc0170999204dc5ffc5cc1f8</id>
<content type='text'>
Added params for configuration red on the shaper policy

(cherry picked from commit 31cd75aec6d035b36537046ae0d034c03009a3fc)
</content>
</entry>
<entry>
<title>T6199: drop unused Python imports</title>
<updated>2024-04-03T19:02:47+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-04-02T22:15:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=3ea68d648581a20797b9e1b4438299a057a1820d'/>
<id>urn:sha1:3ea68d648581a20797b9e1b4438299a057a1820d</id>
<content type='text'>
found using "git ls-files *.py | xargs pylint | grep W0611"

(cherry picked from commit 274b2da242acd1f1f64ff1dee471e34295137c5f)
</content>
</entry>
<entry>
<title>qos: T1871: add MTU option when configure limiter traffic-policy</title>
<updated>2024-03-20T06:12:54+00:00</updated>
<author>
<name>khramshinr</name>
<email>khramshinr@gmail.com</email>
</author>
<published>2024-03-14T06:38:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=f37cc9e15fe0ef4e3e88f5839b0fb23bb72dc7e5'/>
<id>urn:sha1:f37cc9e15fe0ef4e3e88f5839b0fb23bb72dc7e5</id>
<content type='text'>
add mtu to default and specified class
update smoke test

(cherry picked from commit 84bbcdf5b7980f701aba6e158a2be4a05e7076d9)
</content>
</entry>
<entry>
<title>T5646: Skip add filter for qos policy limiter class without match</title>
<updated>2024-03-04T17:27:51+00:00</updated>
<author>
<name>Nataliia Solomko</name>
<email>natalirs1985@gmail.com</email>
</author>
<published>2024-03-01T10:47:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=b0a4e646b4179ac51f937f40cf865b933afb6370'/>
<id>urn:sha1:b0a4e646b4179ac51f937f40cf865b933afb6370</id>
<content type='text'>
(cherry picked from commit 2104424c1a43dc027567e051262e1eed6506491f)
</content>
</entry>
<entry>
<title>qos: T6081: QoS policy shaper target and interval wrong calcuations</title>
<updated>2024-03-01T21:28:30+00:00</updated>
<author>
<name>Nataliia Solomko</name>
<email>natalirs1985@gmail.com</email>
</author>
<published>2024-03-01T15:51:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=21f9892d0840974b6d54e5746feb3c572dd907bf'/>
<id>urn:sha1:21f9892d0840974b6d54e5746feb3c572dd907bf</id>
<content type='text'>
(cherry picked from commit c7f5b510cfd117e57f2d22e259c843600ef4cc76)
</content>
</entry>
<entry>
<title>T6028: Fix QoS policy shaper wrong class_id_max and default_minor_id</title>
<updated>2024-02-09T11:44:35+00:00</updated>
<author>
<name>Viacheslav Hletenko</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2024-02-09T10:51:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=a6781cd008998200d491fbf86f6976d81323a7bd'/>
<id>urn:sha1:a6781cd008998200d491fbf86f6976d81323a7bd</id>
<content type='text'>
The `class_id_max` is wrong due to `tmp.sort` of Strings
If we have class 5 and class 10 we get sorted max value 5, expected 10

```
&gt;&gt;&gt; tmp = ['5', '10']
&gt;&gt;&gt; tmp.sort()
&gt;&gt;&gt; tmp
['10', '5']
&gt;&gt;&gt;

&gt;&gt;&gt; hex(5+1)
'0x6'
&gt;&gt;&gt;
&gt;&gt;&gt; hex(10+1)
'0xb'
&gt;&gt;&gt;
```

This way we get wrong default maximum class value:
```
tc qdisc replace dev eth1 root handle 1: htb r2q 444 default 6
```
Expect:
```
tc qdisc replace dev eth1 root handle 1: htb r2q 444 default b
```

Fix this converting Strings to Integers and get max value.

(cherry picked from commit 2e8fa45c7f0663549edd118622b3381e7c428b2e)
</content>
</entry>
<entry>
<title>T6021: Fix QoS shaper r2q calculation</title>
<updated>2024-02-07T17:02:13+00:00</updated>
<author>
<name>Viacheslav Hletenko</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2024-02-07T16:34:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=6c3c5389bdd3f6b9d40e53596f9f22a2a36bfee9'/>
<id>urn:sha1:6c3c5389bdd3f6b9d40e53596f9f22a2a36bfee9</id>
<content type='text'>
The current calculation `r2q` is wrong as it uses `Floor division`
but expecting `division`
This way `math.ceil` calculate wrong value as we expect
round a number upward to its nearest integer

For example for speed 710 mbits expected value `444` but we get `443`

```
from math import ceil

MAXQUANTUM = 200000
speed = 710000000
speed_bps = int(speed) // 8

&gt;&gt;&gt; speed_bps // MAXQUANTUM
443
&gt;&gt;&gt; speed_bps / MAXQUANTUM
443.75
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ceil(speed_bps // MAXQUANTUM)
443
&gt;&gt;&gt; ceil(speed_bps / MAXQUANTUM)
444
&gt;&gt;&gt;
```

(cherry picked from commit ce1035e1e8642bf740e2a21693a72fe2127b8f72)
</content>
</entry>
<entry>
<title>qos: T5848: Add triple-isolate option to CAKE policy config</title>
<updated>2024-02-02T12:12:02+00:00</updated>
<author>
<name>Matthew Kobayashi</name>
<email>matthew@kobayashi.au</email>
</author>
<published>2023-12-22T01:50:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=628877a46a049142cffd5d98de74f652d4a9dde7'/>
<id>urn:sha1:628877a46a049142cffd5d98de74f652d4a9dde7</id>
<content type='text'>
(cherry picked from commit 61342083d7db8c30d015474fae5cb71f480487d8)
</content>
</entry>
</feed>
