<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/tools/testing/selftests/drivers/net/bonding, branch v6.6</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>selftests: bonding: create directly devices in the target namespaces</title>
<updated>2023-08-28T09:24:08+00:00</updated>
<author>
<name>Zhengchao Shao</name>
<email>shaozhengchao@huawei.com</email>
</author>
<published>2023-08-26T02:23:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=bf68583624c56bab26b4394fb4721461ded62f94'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net</title>
<updated>2023-08-24T17:51:39+00:00</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2023-08-24T17:46:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=57ce6427e00a6a72f74b29630b39548b36980b09'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
<entry>
<title>selftests: bonding: add macvlan over bond testing</title>
<updated>2023-08-24T08:07:13+00:00</updated>
<author>
<name>Hangbin Liu</name>
<email>liuhangbin@gmail.com</email>
</author>
<published>2023-08-23T07:19:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=246af950b9404da3cb1fed0dc85c7a637be0aff6'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
<entry>
<title>selftest: bond: add new topo bond_topo_2d1c.sh</title>
<updated>2023-08-24T08:07:13+00:00</updated>
<author>
<name>Hangbin Liu</name>
<email>liuhangbin@gmail.com</email>
</author>
<published>2023-08-23T07:19:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=27aa43f83c83e9243c6959426f6e36cb32aeb2d5'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
<entry>
<title>selftests: bonding: do not set port down before adding to bond</title>
<updated>2023-08-22T02:05:42+00:00</updated>
<author>
<name>Hangbin Liu</name>
<email>liuhangbin@gmail.com</email>
</author>
<published>2023-08-17T08:24:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=be809424659c2844a2d7ab653aacca4898538023'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
<entry>
<title>selftests: bonding: remove redundant delete action of device link1_1</title>
<updated>2023-08-16T06:07:16+00:00</updated>
<author>
<name>Zhengchao Shao</name>
<email>shaozhengchao@huawei.com</email>
</author>
<published>2023-08-12T08:40:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=e56e220d73caf06e9e6f5553f414376b4af51c8a'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net</title>
<updated>2023-05-11T16:06:55+00:00</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2023-05-11T16:06:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=bc88ba0cad64a4aa85f9deca79c6f3addcd21795'/>
<id>bc88ba0cad64a4aa85f9deca79c6f3addcd21795</id>
<content type='text'>
Cross-merge networking fixes. No conflicts.

Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Cross-merge networking fixes. No conflicts.

Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>selftests: bonding: delete unnecessary line</title>
<updated>2023-05-10T09:06:42+00:00</updated>
<author>
<name>Liang Li</name>
<email>liali@redhat.com</email>
</author>
<published>2023-05-09T09:09:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=2f0f556713f08515f3017fd35309b1f00fbc8932'/>
<id>2f0f556713f08515f3017fd35309b1f00fbc8932</id>
<content type='text'>
"ip link set dev "$devbond1" nomaster"
This line code in bond-eth-type-change.sh is unnecessary.
Because $devbond1 was not added to any master device.

Signed-off-by: Liang Li &lt;liali@redhat.com&gt;
Acked-by: Hangbin Liu &lt;liuhangbin@gmail.com&gt;
Reviewed-by: Nikolay Aleksandrov &lt;razor@blackwall.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
"ip link set dev "$devbond1" nomaster"
This line code in bond-eth-type-change.sh is unnecessary.
Because $devbond1 was not added to any master device.

Signed-off-by: Liang Li &lt;liali@redhat.com&gt;
Acked-by: Hangbin Liu &lt;liuhangbin@gmail.com&gt;
Reviewed-by: Nikolay Aleksandrov &lt;razor@blackwall.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>kselftest: bonding: add num_grat_arp test</title>
<updated>2023-05-10T08:27:20+00:00</updated>
<author>
<name>Hangbin Liu</name>
<email>liuhangbin@gmail.com</email>
</author>
<published>2023-05-09T03:12:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=6cbe791c0f4ed7310db212791e69c7ffedd4f4b6'/>
<id>6cbe791c0f4ed7310db212791e69c7ffedd4f4b6</id>
<content type='text'>
TEST: num_grat_arp (active-backup miimon num_grat_arp 10)           [ OK ]
TEST: num_grat_arp (active-backup miimon num_grat_arp 20)           [ OK ]
TEST: num_grat_arp (active-backup miimon num_grat_arp 30)           [ OK ]
TEST: num_grat_arp (active-backup miimon num_grat_arp 50)           [ OK ]

Signed-off-by: Hangbin Liu &lt;liuhangbin@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
TEST: num_grat_arp (active-backup miimon num_grat_arp 10)           [ OK ]
TEST: num_grat_arp (active-backup miimon num_grat_arp 20)           [ OK ]
TEST: num_grat_arp (active-backup miimon num_grat_arp 30)           [ OK ]
TEST: num_grat_arp (active-backup miimon num_grat_arp 50)           [ OK ]

Signed-off-by: Hangbin Liu &lt;liuhangbin@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>selftests: bonding: add arp validate test</title>
<updated>2023-04-07T07:47:20+00:00</updated>
<author>
<name>Hangbin Liu</name>
<email>liuhangbin@gmail.com</email>
</author>
<published>2023-04-06T08:23:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=2e825f8accb4491466677162cd9893fe77aea2f9'/>
<id>2e825f8accb4491466677162cd9893fe77aea2f9</id>
<content type='text'>
This patch add bonding arp validate tests with mode active backup,
monitor arp_ip_target and ns_ip6_target. It also checks mii_status
to make sure all slaves are UP.

Acked-by: Jonathan Toppins &lt;jtoppins@redhat.com&gt;
Acked-by: Jay Vosburgh &lt;jay.vosburgh@canonical.com&gt;
Signed-off-by: Hangbin Liu &lt;liuhangbin@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch add bonding arp validate tests with mode active backup,
monitor arp_ip_target and ns_ip6_target. It also checks mii_status
to make sure all slaves are UP.

Acked-by: Jonathan Toppins &lt;jtoppins@redhat.com&gt;
Acked-by: Jay Vosburgh &lt;jay.vosburgh@canonical.com&gt;
Signed-off-by: Hangbin Liu &lt;liuhangbin@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
</feed>
