Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: net: lib: Rename ip_link_set_addr() to adf_*

Rename this function to mark it as autodefer.
For details, see the discussion in the cover letter.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/5318e90f7f491f9f397ac221a8b47fdbedd0d3b2.1758821127.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Petr Machata and committed by
Jakub Kicinski
beb98a34 c3cbd21f

+6 -6
+3 -3
tools/testing/selftests/net/forwarding/bridge_fdb_local_vlan_0.sh
··· 137 137 adf_ip_link_add br up type bridge vlan_default_pvid 0 "$@" 138 138 mac=$(mac_get br) 139 139 adf_bridge_configure 140 - ip_link_set_addr br "$mac" 140 + adf_ip_link_set_addr br "$mac" 141 141 } 142 142 143 143 check_fdb_local_vlan_0_support() ··· 296 296 cur_mac=$(mac_get "$dev") 297 297 298 298 log_info "Change $dev MAC $cur_mac -> $mac" 299 - ip_link_set_addr "$dev" "$mac" 299 + adf_ip_link_set_addr "$dev" "$mac" 300 300 defer log_info "Change $dev MAC back" 301 301 } 302 302 ··· 376 376 adf_addr_set_bridge_create() 377 377 { 378 378 adf_ip_link_add br up type bridge vlan_filtering 0 379 - ip_link_set_addr br "$(mac_get br)" 379 + adf_ip_link_set_addr br "$(mac_get br)" 380 380 adf_bridge_configure 381 381 } 382 382
+1 -1
tools/testing/selftests/net/forwarding/vxlan_bridge_1q_mc_ul.sh
··· 207 207 swp1_mac=$(mac_get "$swp1") 208 208 adf_ip_link_add br1 type bridge vlan_filtering 1 \ 209 209 vlan_default_pvid 0 mcast_snooping 0 210 - ip_link_set_addr br1 "$swp1_mac" 210 + adf_ip_link_set_addr br1 "$swp1_mac" 211 211 ip_link_set_up br1 212 212 213 213 # A dummy to force the IPv6 OIF=0 test to install a suitable MC route on
+1 -1
tools/testing/selftests/net/forwarding/vxlan_reserved.sh
··· 63 63 adf_ip_link_add br1 type bridge vlan_filtering 0 mcast_snooping 0 64 64 # Make sure the bridge uses the MAC address of the local port and not 65 65 # that of the VxLAN's device. 66 - ip_link_set_addr br1 $(mac_get $swp1) 66 + adf_ip_link_set_addr br1 $(mac_get $swp1) 67 67 ip_link_set_up br1 68 68 69 69 ip_link_set_up $rp1
+1 -1
tools/testing/selftests/net/lib.sh
··· 560 560 defer ip link set dev "$member" nomaster 561 561 } 562 562 563 - ip_link_set_addr() 563 + adf_ip_link_set_addr() 564 564 { 565 565 local name=$1; shift 566 566 local addr=$1; shift