<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/drivers/net/mlxsw, branch linux-5.7.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.7.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.7.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-05-22T23:08:14Z</updated>
<entry>
<title>selftests: mlxsw: qos_mc_aware: Specify arping timeout as an integer</title>
<updated>2020-05-22T23:08:14Z</updated>
<author>
<name>Amit Cohen</name>
</author>
<published>2020-05-21T12:11:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=46ca11177ed593f39d534f8d2c74ec5344e90c11'/>
<id>urn:sha1:46ca11177ed593f39d534f8d2c74ec5344e90c11</id>
<content type='text'>
Starting from iputils s20190709 (used in Fedora 31), arping does not
support timeout being specified as a decimal:

$ arping -c 1 -I swp1 -b 192.0.2.66 -q -w 0.1
arping: invalid argument: '0.1'

Previously, such timeouts were rounded to an integer.

Fix this by specifying the timeout as an integer.

Fixes: a5ee171d087e ("selftests: mlxsw: qos_mc_aware: Add a test for UC awareness")
Signed-off-by: Amit Cohen &lt;amitc@mellanox.com&gt;
Reviewed-by: Petr Machata &lt;petrm@mellanox.com&gt;
Signed-off-by: Ido Schimmel &lt;idosch@mellanox.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: mlxsw: Add test cases for devlink-trap policers</title>
<updated>2020-03-31T00:54:59Z</updated>
<author>
<name>Ido Schimmel</name>
</author>
<published>2020-03-30T19:38:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9f3e63c5d69814a9df85f7f0fc77eac0765d4fba'/>
<id>urn:sha1:9f3e63c5d69814a9df85f7f0fc77eac0765d4fba</id>
<content type='text'>
Add test cases that verify that each registered packet trap policer:

* Honors that imposed limitations of rate and burst size
* Able to police trapped packets to the specified rate
* Able to police trapped packets to the specified burst size
* Able to be unbound from its trap group

Signed-off-by: Ido Schimmel &lt;idosch@mellanox.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: mlxsw: qos_dscp_router: Test no DSCP rewrite after pedit</title>
<updated>2020-03-26T18:55:40Z</updated>
<author>
<name>Petr Machata</name>
</author>
<published>2020-03-26T14:01:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9a9dffcb4ff9b2476dfeda36c4ddd35d7515f6e3'/>
<id>urn:sha1:9a9dffcb4ff9b2476dfeda36c4ddd35d7515f6e3</id>
<content type='text'>
When DSCP is updated through an offloaded pedit action, DSCP rewrite on
egress should be disabled. Add a test that check that it is so.

Signed-off-by: Petr Machata &lt;petrm@mellanox.com&gt;
Signed-off-by: Ido Schimmel &lt;idosch@mellanox.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: mlxsw: Add tc action hw_stats tests</title>
<updated>2020-03-18T23:46:19Z</updated>
<author>
<name>Jiri Pirko</name>
</author>
<published>2020-03-18T13:48:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ee4848ac1a8a6c1c167a399efe4114f717b3e921'/>
<id>urn:sha1:ee4848ac1a8a6c1c167a399efe4114f717b3e921</id>
<content type='text'>
Add tests for mlxsw hw_stats types.

Signed-off-by: Jiri Pirko &lt;jiri@mellanox.com&gt;
Signed-off-by: Ido Schimmel &lt;idosch@mellanox.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: spectrum-2: Adjust tc_flower_scale limit according to current counter count</title>
<updated>2020-03-18T23:46:19Z</updated>
<author>
<name>Jiri Pirko</name>
</author>
<published>2020-03-18T13:48:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4d21ed2e3d6a7ca24afc531f693ebefa2549218d'/>
<id>urn:sha1:4d21ed2e3d6a7ca24afc531f693ebefa2549218d</id>
<content type='text'>
With the change that made the code to query counter bank size from device
instead of using hard-coded value, the number of available counters
changed for Spectrum-2. Adjust the limit in the selftests.

Signed-off-by: Jiri Pirko &lt;jiri@mellanox.com&gt;
Signed-off-by: Ido Schimmel &lt;idosch@mellanox.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: mlxsw: RED: Test RED ECN nodrop offload</title>
<updated>2020-03-15T04:03:46Z</updated>
<author>
<name>Petr Machata</name>
</author>
<published>2020-03-12T23:11:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=63f3c1d06f2597de5d68715a53f00900233ed0bd'/>
<id>urn:sha1:63f3c1d06f2597de5d68715a53f00900233ed0bd</id>
<content type='text'>
Extend RED testsuite to cover the new nodrop mode of RED-ECN. This test is
really similar to ECN test, diverging only in the last step, where UDP
traffic should go to backlog instead of being dropped. Thus extract a
common helper, ecn_test_common(), make do_ecn_test() into a relatively
simple wrapper, and add another one, do_ecn_nodrop_test().

Signed-off-by: Petr Machata &lt;petrm@mellanox.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: forwarding: ETS: Use Qdisc counters</title>
<updated>2020-03-05T22:03:32Z</updated>
<author>
<name>Petr Machata</name>
</author>
<published>2020-03-05T07:16:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b9b72999eb86e650489a4321c8e95a4e2e3df20c'/>
<id>urn:sha1:b9b72999eb86e650489a4321c8e95a4e2e3df20c</id>
<content type='text'>
Currently the SW-datapath ETS selftests use "ip link" stats to obtain the
number of packets that went through a given band. mlxsw then uses ethtool
per-priority counters.

Instead, change both to use qdiscs. In SW datapath this is the obvious
choice, and now that mlxsw offloads FIFO, this should work on the offloaded
datapath as well. This has the effect of verifying that the FIFO offload
works.

Signed-off-by: Petr Machata &lt;petrm@mellanox.com&gt;
Signed-off-by: Ido Schimmel &lt;idosch@mellanox.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: mlxsw: qos_defprio: Use until_counter_is</title>
<updated>2020-03-04T01:03:52Z</updated>
<author>
<name>Petr Machata</name>
</author>
<published>2020-03-02T17:56:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7b522ba27636ccd86beb8afe71c6ee731cf7b718'/>
<id>urn:sha1:7b522ba27636ccd86beb8afe71c6ee731cf7b718</id>
<content type='text'>
Instead of hand-coding the busywait() predicate, use the until_counter_is()
introduced recently.

Signed-off-by: Petr Machata &lt;petrm@mellanox.com&gt;
Reviewed-by: Amit Cohen &lt;amitc@mellanox.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: forwarding: Convert until_counter_is() to take expression</title>
<updated>2020-03-04T01:03:52Z</updated>
<author>
<name>Petr Machata</name>
</author>
<published>2020-03-02T17:56:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=844f0556546900a658b241e5aea7b8dc7cb3ff72'/>
<id>urn:sha1:844f0556546900a658b241e5aea7b8dc7cb3ff72</id>
<content type='text'>
until_counter_is() currently takes as an argument a number and the
condition holds when the current counter value is &gt;= that number. Make the
function more generic by taking a partial expression instead of just the
number.

Convert the two existing users.

Signed-off-by: Petr Machata &lt;petrm@mellanox.com&gt;
Reviewed-by: Amit Cohen &lt;amitc@mellanox.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: mlxsw: resource_scale: Invoke for Spectrum-3</title>
<updated>2020-02-27T19:10:15Z</updated>
<author>
<name>Amit Cohen</name>
</author>
<published>2020-02-27T07:50:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3eba4137130af19543f1c0fb3169cf92715c38ff'/>
<id>urn:sha1:3eba4137130af19543f1c0fb3169cf92715c38ff</id>
<content type='text'>
The scale test for Spectrum-2 should be invoked for Spectrum-2 and
Spectrum-3. Add the appropriate device ID.

Signed-off-by: Amit Cohen &lt;amitc@mellanox.com&gt;
Signed-off-by: Ido Schimmel &lt;idosch@mellanox.com&gt;
Signed-off-by: Jiri Pirko &lt;jiri@mellanox.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
