# 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 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/08/8534179
- Thread: https://ratatoskr.run/netdev/2025/08/8534151/t.md

```text
On 8/18/25 11:23 AM, Hangbin Liu wrote:
> @@ -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

```
