[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260123170412.906280-1-skorodumov.dmitry@huawei.com>
Date: Fri, 23 Jan 2026 20:03:53 +0300
From: Dmitry Skorodumov <dskr99@...il.com>
To: netdev@...r.kernel.org
Cc: Dmitry Skorodumov <skorodumov.dmitry@...wei.com>
Subject: [PATCH v2 net-next 0/3] ipvlan: Deduplicate ipv4/ipv6 addr_validator_event code
This is a bit stylish patches: The code to handle ipv4 and ipv6
address change are exactly the same. We don't need separate
functions for them. Just look whether we are called
with ipvlan_addr4_notifier_block or with ipvlan_addr6_notifier_block
The changed functionality is already covered
with existing selftests/net/ipvtap_test.sh
v2:
- Fixed warning about unused vars by specifying __maybe_unused
for ipv6-related notifier_blocks
Dmitry Skorodumov (3):
ipvlan: const-specifier for functions that use iaddr
ipvlan: Common code from v6/v4 validator_event
ipvlan: common code to handle ipv6/ipv4 address events
drivers/net/ipvlan/ipvlan.h | 2 +-
drivers/net/ipvlan/ipvlan_core.c | 2 +-
drivers/net/ipvlan/ipvlan_main.c | 188 +++++++++++++------------------
3 files changed, 83 insertions(+), 109 deletions(-)
--
2.43.0
Powered by blists - more mailing lists