[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aKLdPPL0w3XqiEDZ@fedora>
Date: Mon, 18 Aug 2025 07:58:52 +0000
From: Hangbin Liu <liuhangbin@...il.com>
To: Jonas Gorski <jonas.gorski@...il.com>
Cc: netdev@...r.kernel.org, Jay Vosburgh <jv@...sburgh.net>,
Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Nikolay Aleksandrov <razor@...ckwall.org>,
Simon Horman <horms@...nel.org>, Shuah Khan <shuah@...nel.org>,
Jonathan Corbet <corbet@....net>, Petr Machata <petrm@...dia.com>,
Amit Cohen <amcohen@...dia.com>,
Vladimir Oltean <vladimir.oltean@....com>,
Stephen Hemminger <stephen@...workplumber.org>,
David Ahern <dsahern@...il.com>, linux-doc@...r.kernel.org,
linux-kselftest@...r.kernel.org
Subject: Re: [PATCHv2 net-next 1/3] bonding: add support for per-port LACP
actor priority
On Thu, Aug 14, 2025 at 01:46:10PM +0200, Jonas Gorski wrote:
> > @@ -77,6 +78,10 @@ static int bond_fill_slave_info(struct sk_buff *skb,
> > ad_port->partner_oper.port_state))
> > goto nla_put_failure;
> > }
> > +
> > + if (nla_put_u16(skb, IFLA_BOND_SLAVE_AD_ACTOR_PORT_PRIO,
> > + SLAVE_AD_INFO(slave)->port_priority))
> > + goto nla_put_failure;
>
>
> This is an 802.3ad (exclusive) setting, shouldn't this be in the
>
> if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) { }
>
> block above this?
Oh, just notice the change is already in the block. The code looks like
if (BOND_MODE(slave->bond) == BOND_MODE_8023AD) {
if (agg) {
}
if (nla_put_u16(skb, IFLA_BOND_SLAVE_AD_ACTOR_PORT_PRIO, ...)
goto nla_put_failure;
}
Thanks
Hangbin
Powered by blists - more mailing lists