Re: [PATCHv3 net-next 2/3] bonding: support aggregator selection based on port priority

From
Paolo Abeni <pabeni@redhat.com>
Date
2025-08-21 09:16:28
Also in
linux-doc, linux-kselftest
Reply to
Hangbin Liu, 2025-08-18
On 8/18/25 11:23 AM, Hangbin Liu wrote:
quoted hunk ↗ jump to hunk
@@ -1707,6 +1719,9 @@ static struct aggregator *ad_agg_selection_test(struct aggregator *best,
 	 * BOND_AD_COUNT: Select by count of ports.  If count is equal,
 	 *     select by bandwidth.
 	 *
+	 * BOND_AD_PRIO: Select by total priority of ports. If priority
+	 *     is equal, select by count.
+	 *
 	 * BOND_AD_STABLE, BOND_AD_BANDWIDTH: Select by bandwidth.
 	 */
 	if (!best)
Minor nit: I think the comment would be more readable placing
BOND_AD_PRIO before BOND_AD_COUNT, so that each value documentation
references only the following one.

Thanks,

Paolo
Thread (9 messages) 9 messages, 3 authors, last reply 2025-08-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help