[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250411174906.21022-2-wilder@us.ibm.com>
Date: Fri, 11 Apr 2025 10:48:15 -0700
From: David J Wilder <wilder@...ibm.com>
To: netdev@...r.kernel.org
Cc: jv@...sburgh.net, wilder@...ibm.com, pradeeps@...ux.vnet.ibm.com,
pradeep@...ibm.com
Subject: [PATCH net-next v1 1/1] bonding: Adding limmited support for ARP monitoring with ovs.
Adding limited support for the ARP Monitoring feature when ovs is
configured above the bond. When no vlan tags are used in the configuration
or when the tag is added between the bond interface and the ovs bridge arp
monitoring will function correctly. The use of tags between the ovs bridge
and the routed interface are not supported.
For example:
1) bond0 -> ovs-br -> ovs-port (x.x.x.x) is supported
2) bond0 -> bond0.100 -> ovs-br -> ovs-port (x.x.x.x) is supported.
3) bond0 -> ovs-br -> ovs-port -> ovs-port.100 (x.x.x.x) is not supported.
Configurations #1 and #2 were tested and verified to function corectly.
In the second configuration the correct vlan tags were seen in the arp.
Signed-off-by: David J Wilder <wilder@...ibm.com>
Signed-off-by: Pradeep Satyanarayana <pradeeps@...ux.vnet.ibm.com>
---
drivers/net/bonding/bond_main.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 950d8e4d86f8..6f71a567ba37 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -3105,7 +3105,13 @@ struct bond_vlan_tag *bond_verify_device_path(struct net_device *start_dev,
struct net_device *upper;
struct list_head *iter;
- if (start_dev == end_dev) {
+ /* If start_dev is an OVS port then we have encountered an openVswitch
+ * bridge and can't go any further. The programming of the switch table
+ * will determine what packets will be sent to the bond. We can make no
+ * further assumptions about the network above the bond.
+ */
+
+ if (start_dev == end_dev || netif_is_ovs_port(start_dev)) {
tags = kcalloc(level + 1, sizeof(*tags), GFP_ATOMIC);
if (!tags)
return ERR_PTR(-ENOMEM);
--
2.43.5
Powered by blists - more mailing lists