[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250922223640.2170084-1-wilder@us.ibm.com>
Date: Mon, 22 Sep 2025 15:35:10 -0700
From: David Wilder <wilder@...ibm.com>
To: netdev@...r.kernel.org
Cc: jv@...sburgh.net, wilder@...ibm.com, pradeep@...ibm.com,
i.maximets@....org, amorenoz@...hat.com, haliu@...hat.com,
stephen@...workplumber.org, dsahern@...il.com
Subject: [PATCH iproute2-next v6 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 V5
Thanks to Stephen Hemminger for help on these changes:
- Use array for vlans
- Removed use of packed and Capitalization
- fix incorrect use of color
- Removed temporary string buffer.
- make vlan print a function for likely future IPv6 usage.
Output for "ip -d --json <bond-name>" has been updated. Example:
"arp_ip_target":["addr":"10.0.0.1","vlan":[4080,4081,4082,4083,4084]],
- changes to error reporting in bond_vlan_tags_parse() for invalid vlan_ids.
Changes since V4
Changed unneeded print_color_string() to print_string(). Thanks Steve.
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]"
],
...
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.
Changes since V1:
Updates to support ip link show <bonding-device>.
This change is dependent on this bonding driver patch set:
https://marc.info/?l=linux-netdev&m=175684731919992&w=2
Merge only after the above patch set has been merged.
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 | 146 ++++++++++++++++++++++++++++++++++++++---------
1 file changed, 120 insertions(+), 26 deletions(-)
--
2.50.1
Powered by blists - more mailing lists