On 12/5/24 17:40, Petr Machata wrote:
Add ip_link_set_addr(), ip_link_set_up(), ip_addr_add() and ip_route_add() to the suite of helpers that automatically schedule a corresponding cleanup.
When setting a new MAC, one needs to remember the old address first. Move mac_get() from forwarding/ to that end.
Signed-off-by: Petr Machata petrm@nvidia.com Reviewed-by: Ido Schimmel idosch@nvidia.com
Notes: CC: Shuah Khan shuah@kernel.org CC: Benjamin Poirier bpoirier@nvidia.com CC: Hangbin Liu liuhangbin@gmail.com CC: Vladimir Oltean vladimir.oltean@nxp.com CC: linux-kselftest@vger.kernel.org
Reviewed-by: Nikolay Aleksandrov razor@blackwall.org