netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 net 0/2] ipvlan: addrs_lock made per port
@ 2025-12-25 18:55 Dmitry Skorodumov
  2025-12-25 18:55 ` [PATCH net 1/2] ipvlan: Make the addrs_lock be " Dmitry Skorodumov
  2025-12-25 18:55 ` [PATCH net 2/2] selftests: net: simple selftest for ipvtap Dmitry Skorodumov
  0 siblings, 2 replies; 7+ messages in thread
From: Dmitry Skorodumov @ 2025-12-25 18:55 UTC (permalink / raw)
  To: netdev; +Cc: Dmitry Skorodumov

First patch fixes a rather minor issues that sometimes
ipvlan-addrs are modified without lock (because
for IPv6 addr can be sometimes added without RTNL)

diff from v2:
- Added a small self-test
- added early return in ipvlan_find_addr()
- the iterations over ipvlans in ipvlan_addr_busy()
must be protected by RCU
- Added simple self-test. I haven't invented anything
more sophisticated that this.

Dmitry Skorodumov (2):
  ipvlan: Make the addrs_lock be per port
  selftests: net: simple selftest for ipvtap

 drivers/net/ipvlan/ipvlan.h                |   2 +-
 drivers/net/ipvlan/ipvlan_core.c           |  16 +-
 drivers/net/ipvlan/ipvlan_main.c           |  49 +++---
 tools/testing/selftests/net/Makefile       |   1 +
 tools/testing/selftests/net/config         |   2 +
 tools/testing/selftests/net/ipvtap_test.sh | 167 +++++++++++++++++++++
 6 files changed, 207 insertions(+), 30 deletions(-)
 create mode 100755 tools/testing/selftests/net/ipvtap_test.sh

-- 
2.43.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-12-30 10:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-25 18:55 [PATCH v3 net 0/2] ipvlan: addrs_lock made per port Dmitry Skorodumov
2025-12-25 18:55 ` [PATCH net 1/2] ipvlan: Make the addrs_lock be " Dmitry Skorodumov
2025-12-28  9:46   ` Paolo Abeni
2025-12-25 18:55 ` [PATCH net 2/2] selftests: net: simple selftest for ipvtap Dmitry Skorodumov
2025-12-26 17:52   ` Stephen Hemminger
2025-12-28 12:14   ` Paolo Abeni
2025-12-30 10:06     ` Dmitry Skorodumov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).