<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/tools/testing/selftests/drivers, branch v6.7</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v6.7</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v6.7'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2024-01-02T14:17:05Z</updated>
<entry>
<title>selftests: bonding: do not set port down when adding to bond</title>
<updated>2024-01-02T14:17:05Z</updated>
<author>
<name>Hangbin Liu</name>
<email>liuhangbin@gmail.com</email>
</author>
<published>2023-12-23T12:59:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=61fa2493ca76fd7bb74e13f0205274f4ab0aa696'/>
<id>urn:sha1:61fa2493ca76fd7bb74e13f0205274f4ab0aa696</id>
<content type='text'>
Similar to commit be809424659c ("selftests: bonding: do not set port down
before adding to bond"). The bond-arp-interval-causes-panic test failed
after commit a4abfa627c38 ("net: rtnetlink: Enslave device before bringing
it up") as the kernel will set the port down _after_ adding to bond if setting
port down specifically.

Fix it by removing the link down operation when adding to bond.

Fixes: 2ffd57327ff1 ("selftests: bonding: cause oops in bond_rr_gen_slave_id")
Signed-off-by: Hangbin Liu &lt;liuhangbin@gmail.com&gt;
Tested-by: Benjamin Poirier &lt;benjamin.poirier@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: netdevsim: use suitable existing dummy file for flash test</title>
<updated>2023-10-13T09:43:13Z</updated>
<author>
<name>Jiri Pirko</name>
<email>jiri@nvidia.com</email>
</author>
<published>2023-10-10T14:44:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6151ff9c75210c0f9d3d9ddcd3de6325de12c2a0'/>
<id>urn:sha1:6151ff9c75210c0f9d3d9ddcd3de6325de12c2a0</id>
<content type='text'>
The file name used in flash test was "dummy" because at the time test
was written, drivers were responsible for file request and as netdevsim
didn't do that, name was unused. However, the file load request is
now done in devlink code and therefore the file has to exist.
Use first random file from /lib/firmware for this purpose.

Signed-off-by: Jiri Pirko &lt;jiri@nvidia.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: bonding: create directly devices in the target namespaces</title>
<updated>2023-08-28T09:24:08Z</updated>
<author>
<name>Zhengchao Shao</name>
<email>shaozhengchao@huawei.com</email>
</author>
<published>2023-08-26T02:23:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=bf68583624c56bab26b4394fb4721461ded62f94'/>
<id>urn:sha1:bf68583624c56bab26b4394fb4721461ded62f94</id>
<content type='text'>
If failed to set link1_1 to netns client, we should delete link1_1 in the
cleanup path. But if set link1_1 to netns client successfully, delete
link1_1 will report warning. So it will be safer creating directly the
devices in the target namespaces.

Reported-by: Hangbin Liu &lt;liuhangbin@gmail.com&gt;
Closes: https://lore.kernel.org/all/ZNyJx1HtXaUzOkNA@Laptop-X1/
Signed-off-by: Zhengchao Shao &lt;shaozhengchao@huawei.com&gt;
Acked-by: Hangbin Liu &lt;liuhangbin@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net</title>
<updated>2023-08-24T17:51:39Z</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2023-08-24T17:46:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=57ce6427e00a6a72f74b29630b39548b36980b09'/>
<id>urn:sha1:57ce6427e00a6a72f74b29630b39548b36980b09</id>
<content type='text'>
Cross-merge networking fixes after downstream PR.

Conflicts:

include/net/inet_sock.h
  f866fbc842de ("ipv4: fix data-races around inet-&gt;inet_id")
  c274af224269 ("inet: introduce inet-&gt;inet_flags")
https://lore.kernel.org/all/679ddff6-db6e-4ff6-b177-574e90d0103d@tessares.net/

Adjacent changes:

drivers/net/bonding/bond_alb.c
  e74216b8def3 ("bonding: fix macvlan over alb bond support")
  f11e5bd159b0 ("bonding: support balance-alb with openvswitch")

drivers/net/ethernet/broadcom/bgmac.c
  d6499f0b7c7c ("net: bgmac: Return PTR_ERR() for fixed_phy_register()")
  23a14488ea58 ("net: bgmac: Fix return value check for fixed_phy_register()")

drivers/net/ethernet/broadcom/genet/bcmmii.c
  32bbe64a1386 ("net: bcmgenet: Fix return value check for fixed_phy_register()")
  acf50d1adbf4 ("net: bcmgenet: Return PTR_ERR() for fixed_phy_register()")

net/sctp/socket.c
  f866fbc842de ("ipv4: fix data-races around inet-&gt;inet_id")
  b09bde5c3554 ("inet: move inet-&gt;mc_loop to inet-&gt;inet_frags")

Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests: bonding: add macvlan over bond testing</title>
<updated>2023-08-24T08:07:13Z</updated>
<author>
<name>Hangbin Liu</name>
<email>liuhangbin@gmail.com</email>
</author>
<published>2023-08-23T07:19:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=246af950b9404da3cb1fed0dc85c7a637be0aff6'/>
<id>urn:sha1:246af950b9404da3cb1fed0dc85c7a637be0aff6</id>
<content type='text'>
Add a macvlan over bonding test with mode active-backup, balance-tlb
and balance-alb.

]# ./bond_macvlan.sh
TEST: active-backup: IPv4: client-&gt;server                           [ OK ]
TEST: active-backup: IPv6: client-&gt;server                           [ OK ]
TEST: active-backup: IPv4: client-&gt;macvlan_1                        [ OK ]
TEST: active-backup: IPv6: client-&gt;macvlan_1                        [ OK ]
TEST: active-backup: IPv4: client-&gt;macvlan_2                        [ OK ]
TEST: active-backup: IPv6: client-&gt;macvlan_2                        [ OK ]
TEST: active-backup: IPv4: macvlan_1-&gt;macvlan_2                     [ OK ]
TEST: active-backup: IPv6: macvlan_1-&gt;macvlan_2                     [ OK ]
TEST: active-backup: IPv4: server-&gt;client                           [ OK ]
TEST: active-backup: IPv6: server-&gt;client                           [ OK ]
TEST: active-backup: IPv4: macvlan_1-&gt;client                        [ OK ]
TEST: active-backup: IPv6: macvlan_1-&gt;client                        [ OK ]
TEST: active-backup: IPv4: macvlan_2-&gt;client                        [ OK ]
TEST: active-backup: IPv6: macvlan_2-&gt;client                        [ OK ]
TEST: active-backup: IPv4: macvlan_2-&gt;macvlan_2                     [ OK ]
TEST: active-backup: IPv6: macvlan_2-&gt;macvlan_2                     [ OK ]
[...]
TEST: balance-alb: IPv4: client-&gt;server                             [ OK ]
TEST: balance-alb: IPv6: client-&gt;server                             [ OK ]
TEST: balance-alb: IPv4: client-&gt;macvlan_1                          [ OK ]
TEST: balance-alb: IPv6: client-&gt;macvlan_1                          [ OK ]
TEST: balance-alb: IPv4: client-&gt;macvlan_2                          [ OK ]
TEST: balance-alb: IPv6: client-&gt;macvlan_2                          [ OK ]
TEST: balance-alb: IPv4: macvlan_1-&gt;macvlan_2                       [ OK ]
TEST: balance-alb: IPv6: macvlan_1-&gt;macvlan_2                       [ OK ]
TEST: balance-alb: IPv4: server-&gt;client                             [ OK ]
TEST: balance-alb: IPv6: server-&gt;client                             [ OK ]
TEST: balance-alb: IPv4: macvlan_1-&gt;client                          [ OK ]
TEST: balance-alb: IPv6: macvlan_1-&gt;client                          [ OK ]
TEST: balance-alb: IPv4: macvlan_2-&gt;client                          [ OK ]
TEST: balance-alb: IPv6: macvlan_2-&gt;client                          [ OK ]
TEST: balance-alb: IPv4: macvlan_2-&gt;macvlan_2                       [ OK ]
TEST: balance-alb: IPv6: macvlan_2-&gt;macvlan_2                       [ OK ]

Signed-off-by: Hangbin Liu &lt;liuhangbin@gmail.com&gt;
Acked-by: Jay Vosburgh &lt;jay.vosburgh@canonical.com&gt;
Signed-off-by: Paolo Abeni &lt;pabeni@redhat.com&gt;
</content>
</entry>
<entry>
<title>selftest: bond: add new topo bond_topo_2d1c.sh</title>
<updated>2023-08-24T08:07:13Z</updated>
<author>
<name>Hangbin Liu</name>
<email>liuhangbin@gmail.com</email>
</author>
<published>2023-08-23T07:19:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=27aa43f83c83e9243c6959426f6e36cb32aeb2d5'/>
<id>urn:sha1:27aa43f83c83e9243c6959426f6e36cb32aeb2d5</id>
<content type='text'>
Add a new testing topo bond_topo_2d1c.sh which is used more commonly.
Make bond_topo_3d1c.sh just source bond_topo_2d1c.sh and add the
extra link.

Signed-off-by: Hangbin Liu &lt;liuhangbin@gmail.com&gt;
Acked-by: Jay Vosburgh &lt;jay.vosburgh@canonical.com&gt;
Signed-off-by: Paolo Abeni &lt;pabeni@redhat.com&gt;
</content>
</entry>
<entry>
<title>selftests: bonding: do not set port down before adding to bond</title>
<updated>2023-08-22T02:05:42Z</updated>
<author>
<name>Hangbin Liu</name>
<email>liuhangbin@gmail.com</email>
</author>
<published>2023-08-17T08:24:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=be809424659c2844a2d7ab653aacca4898538023'/>
<id>urn:sha1:be809424659c2844a2d7ab653aacca4898538023</id>
<content type='text'>
Before adding a port to bond, it need to be set down first. In the
lacpdu test the author set the port down specifically. But commit
a4abfa627c38 ("net: rtnetlink: Enslave device before bringing it up")
changed the operation order, the kernel will set the port down _after_
adding to bond. So all the ports will be down at last and the test failed.

In fact, the veth interfaces are already inactive when added. This
means there's no need to set them down again before adding to the bond.
Let's just remove the link down operation.

Fixes: a4abfa627c38 ("net: rtnetlink: Enslave device before bringing it up")
Reported-by: Zhengchao Shao &lt;shaozhengchao@huawei.com&gt;
Closes: https://lore.kernel.org/netdev/a0ef07c7-91b0-94bd-240d-944a330fcabd@huawei.com/
Signed-off-by: Hangbin Liu &lt;liuhangbin@gmail.com&gt;
Link: https://lore.kernel.org/r/20230817082459.1685972-1-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests: mlxsw: Fix test failure on Spectrum-4</title>
<updated>2023-08-19T02:41:06Z</updated>
<author>
<name>Ido Schimmel</name>
<email>idosch@nvidia.com</email>
</author>
<published>2023-08-17T13:58:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=f520489e99a35b0a5257667274fbe9afd2d8c50b'/>
<id>urn:sha1:f520489e99a35b0a5257667274fbe9afd2d8c50b</id>
<content type='text'>
Remove assumptions about shared buffer cell size and instead query the
cell size from devlink. Adjust the test to send small packets that fit
inside a single cell.

Tested on Spectrum-{1,2,3,4}.

Fixes: 4735402173e6 ("mlxsw: spectrum: Extend to support Spectrum-4 ASIC")
Signed-off-by: Ido Schimmel &lt;idosch@nvidia.com&gt;
Reviewed-by: Petr Machata &lt;petrm@nvidia.com&gt;
Signed-off-by: Petr Machata &lt;petrm@nvidia.com&gt;
Reviewed-by: Simon Horman &lt;horms@kernel.org&gt;
Link: https://lore.kernel.org/r/f7dfbf3c4d1cb23838d9eb99bab09afaa320c4ca.1692268427.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests: bonding: remove redundant delete action of device link1_1</title>
<updated>2023-08-16T06:07:16Z</updated>
<author>
<name>Zhengchao Shao</name>
<email>shaozhengchao@huawei.com</email>
</author>
<published>2023-08-12T08:40:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e56e220d73caf06e9e6f5553f414376b4af51c8a'/>
<id>urn:sha1:e56e220d73caf06e9e6f5553f414376b4af51c8a</id>
<content type='text'>
When run command "ip netns delete client", device link1_1 has been
deleted. So, it is no need to delete link1_1 again. Remove it.

Signed-off-by: Zhengchao Shao &lt;shaozhengchao@huawei.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: mlxsw: router_bridge_lag: Add a new selftest</title>
<updated>2023-08-09T22:27:51Z</updated>
<author>
<name>Petr Machata</name>
<email>petrm@nvidia.com</email>
</author>
<published>2023-08-08T13:18:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=aae5bb8d18d8ca00d658720710a490eebaf9087d'/>
<id>urn:sha1:aae5bb8d18d8ca00d658720710a490eebaf9087d</id>
<content type='text'>
Add a selftest to verify enslavement to a LAG with upper after fresh
devlink reload.

Signed-off-by: Petr Machata &lt;petrm@nvidia.com&gt;
Reviewed-by: Danielle Ratson &lt;danieller@nvidia.com&gt;
Reviewed-by: Simon Horman &lt;horms@kernel.org&gt;
Link: https://lore.kernel.org/r/373a7754daa4dac32759a45095f47b08a2a869c8.1691498735.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
</feed>
