[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250811232857.1831486-1-wilder@us.ibm.com>
Date: Mon, 11 Aug 2025 16:28:17 -0700
From: David Wilder <wilder@...ibm.com>
To: netdev@...r.kernel.org
Cc: jv@...sburgh.net, wilder@...ibm.com, pradeeps@...ux.vnet.ibm.com,
pradeep@...ibm.com, i.maximets@....org, amorenoz@...hat.com,
haliu@...hat.com, stephen@...workplumber.org, dsahern@...il.com
Subject: [PATCH iproute2-next v4 0/1] iproute2-next: Extending bonding's arp_ip_target to include a list of vlan tags.
This change extends the "arp_ip_target" option format to allow for a list of
vlan tags to be included for each arp target. This new list of tags is optional
and may be omitted to preserve the current format and process of discovering
vlans. The new logic preserves both forward and backward compatibility with
the kernel and iproute2 versions.
Changes since V1:
Updates to support ip link show <bonding-device>.
Changes since V2: (bond_print_opt() only)
Based on suggestions from Stephen Hemminger.
1) Removed inline from bond_vlan_tags_parse().
2) Switched to print_color_string() from print_string()
3) Follow kernel style.
4) Fixed JSON output.
Change since V3:
1) Add __attribute__((packed)) to struct definition
to ensure size calculation is correct for memcpy() and
addattr_l().
Input: arp_ip_target 10.0.0.1[10/20],10.0.0.2[10/20])
Sample JSON output:
...
"arp_ip_target": [
"10.0.0.1[10/20]",
"10.0.0.2[10/20]"
],
...
This change is dependent on this bonding driver patch set:
<https://www.spinics.net/lists/netdev/msg1113845.html>
Thank you for your time and reviews.
Signed-off-by: David Wilder <wilder@...ibm.com>
David Wilder (1):
iproute: Extend bonding's "arp_ip_target" parameter to add vlan tags.
ip/iplink_bond.c | 127 +++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 116 insertions(+), 11 deletions(-)
--
2.50.1
Powered by blists - more mailing lists