diff mbox series

ipvlan: Support bonding events

Message ID 20250105003813.1222118-1-champetier.etienne@gmail.com (mailing list archive)
State New
Delegated to: Netdev Maintainers
Headers show
Series ipvlan: Support bonding events | expand

Checks

Context Check Description
netdev/series_format warning Single patches do not need cover letters; Target tree name not specified in the subject
netdev/tree_selection success Guessed tree name to be net-next
netdev/ynl success Generated files up to date; no warnings/errors; no diff in generated;
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 1 this patch: 1
netdev/build_tools success No tools touched, skip
netdev/cc_maintainers warning 1 maintainers not CCed: christophe.jaillet@wanadoo.fr
netdev/build_clang success Errors and warnings before: 2 this patch: 2
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 1 this patch: 1
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 12 lines checked
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/contest success net-next-2025-01-05--09-00 (tests: 887)

Commit Message

Etienne Champetier Jan. 5, 2025, 12:36 a.m. UTC
This allows ipvlan to function properly on top of
bonds using active-backup mode.
This was implemented for macvlan in 2014 in commit
4c9912556867 ("macvlan: Support bonding events").

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
---
 drivers/net/ipvlan/ipvlan_main.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Eric Dumazet Jan. 5, 2025, 8:15 a.m. UTC | #1
On Sun, Jan 5, 2025 at 1:43 AM Etienne Champetier
<champetier.etienne@gmail.com> wrote:
>
> This allows ipvlan to function properly on top of
> bonds using active-backup mode.
> This was implemented for macvlan in 2014 in commit
> 4c9912556867 ("macvlan: Support bonding events").
>
> Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>

Which tree are you targeting ?

Please look at Documentation/process/maintainer-netdev.rst  for reference.
Etienne Champetier Jan. 5, 2025, 8:10 p.m. UTC | #2
Le 05/01/2025 à 03:15, Eric Dumazet a écrit :
> On Sun, Jan 5, 2025 at 1:43 AM Etienne Champetier
> <champetier.etienne@gmail.com> wrote:
>> This allows ipvlan to function properly on top of
>> bonds using active-backup mode.
>> This was implemented for macvlan in 2014 in commit
>> 4c9912556867 ("macvlan: Support bonding events").
>>
>> Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
> Which tree are you targeting ?
>
> Please look at Documentation/process/maintainer-netdev.rst  for reference.

Sorry about that, that would be net-next
diff mbox series

Patch

diff --git a/drivers/net/ipvlan/ipvlan_main.c b/drivers/net/ipvlan/ipvlan_main.c
index ee2c3cf4df36..da3a97a65507 100644
--- a/drivers/net/ipvlan/ipvlan_main.c
+++ b/drivers/net/ipvlan/ipvlan_main.c
@@ -799,6 +799,12 @@  static int ipvlan_device_event(struct notifier_block *unused,
 	case NETDEV_PRE_TYPE_CHANGE:
 		/* Forbid underlying device to change its type. */
 		return NOTIFY_BAD;
+
+	case NETDEV_NOTIFY_PEERS:
+	case NETDEV_BONDING_FAILOVER:
+	case NETDEV_RESEND_IGMP:
+		list_for_each_entry(ipvlan, &port->ipvlans, pnode)
+			call_netdevice_notifiers(event, ipvlan->dev);
 	}
 	return NOTIFY_DONE;
 }