[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2a4f812a-a97f-4ff7-c2da-a7e1acebe92d@redhat.com>
Date: Tue, 21 Jun 2022 08:41:56 -0400
From: Jonathan Toppins <jtoppins@...hat.com>
To: Hangbin Liu <liuhangbin@...il.com>, netdev@...r.kernel.org
Cc: Jay Vosburgh <j.vosburgh@...il.com>,
Veaceslav Falico <vfalico@...il.com>,
Andy Gospodarek <andy@...yhouse.net>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
David Ahern <dsahern@...il.com>
Subject: Re: [PATCHv3 net-next 1/2] bonding: add slave_dev field for
bond_opt_value
On 6/21/22 03:49, Hangbin Liu wrote:
> Currently, bond_opt_value are mostly used for bonding option settings. If
> we want to set a value for slave, we need to re-alloc a string to store
> both slave name and vlaue, like bond_option_queue_id_set() does, which
> is complex and dumb.
>
> As Jon suggested, let's add a union field slave_dev for bond_opt_value,
> which will be benefit for future slave option setting. In function
> __bond_opt_init(), we will always check the extra field and set it
> if it's not NULL.
>
> Suggested-by: Jonathan Toppins <jtoppins@...hat.com>
> Signed-off-by: Hangbin Liu <liuhangbin@...il.com>
Acked-by: Jonathan Toppins <jtoppins@...hat.com>
Powered by blists - more mailing lists