From: Hangbin Liu <liuhangbin@gmail.com>
To: Jay Vosburgh <jay.vosburgh@canonical.com>
Cc: Jonathan Toppins <jtoppins@redhat.com>,
netdev@vger.kernel.org, Veaceslav Falico <vfalico@gmail.com>,
Andy Gospodarek <andy@greyhouse.net>,
"David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, David Ahern <dsahern@gmail.com>,
Nikolay Aleksandrov <nikolay@nvidia.com>,
Eric Dumazet <eric.dumazet@gmail.com>,
Paolo Abeni <pabeni@redhat.com>
Subject: Re: [PATCH net-next] Bonding: add per port priority support
Date: Wed, 13 Apr 2022 16:11:42 +0800 [thread overview]
Message-ID: <YlaFvqh+Fo4R2Rnt@Laptop-X1> (raw)
In-Reply-To: <7f230c69-dc15-ebaa-ff80-d4bde98488d3@redhat.com>
On Tue, Apr 12, 2022 at 01:04:46PM -0400, Jonathan Toppins wrote:
> > Presuming that you mean creating a sub-struct here and moving
> > some set of members of struct slave into it, I'm not sure I see the
> > benefit, as it would only exist here and not really be an independent
> > object. Am I misunderstanding?
>
> You are understanding correctly. The goal of this work is to eventually port
> the majority of the per-port parameters that exist in teaming to bonding, we
> have not determined the entire set that make sense. Thus there will be more
Hi Jay,
As Jon said, I'm working to implement/import teaming specific features to
bonding, so users could have more choice. One import feature teaming has is
per-port parameters/configurations. A part of the per-port configs are
queue_id, prio, lacp_prio, lacp_key, etc. Most of the configs are link_watch
parameters. Which means each port/slave has it's own delay up, delay down,
interval, arp targets, etc. We are still discussing if bonding need all of
them or just a part.
Do you see if it's valuable to add all the per-port link watch configurations
to bonding?
Thanks
Hangbin
> than just port priority as a userspace configurable option. So I was
> attempting to ask if modeling the initial setting of these parameters like
> how `bonding_defaults` is used, made sense.
>
> file: drivers/net/bonding/bond_main.c:
> void bond_setup(struct net_device *bond_dev)
> {
> struct bonding *bond = netdev_priv(bond_dev);
>
> spin_lock_init(&bond->mode_lock);
> bond->params = bonding_defaults;
> ...
>
>
> We can always refactor this area when there is another option that needs
> setting.
>
> -Jon
>
next prev parent reply other threads:[~2022-04-13 8:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-12 4:13 [PATCH net-next] Bonding: add per port priority support Hangbin Liu
2022-04-12 4:17 ` [PATCH iproute2-next] iplink: bond_slave: add per port prio support Hangbin Liu
2022-04-14 0:44 ` David Ahern
2022-04-12 4:55 ` [PATCH net-next] Bonding: add per port priority support Jay Vosburgh
2022-04-12 6:00 ` Hangbin Liu
2022-04-12 15:40 ` Jay Vosburgh
2022-04-12 14:23 ` Jonathan Toppins
2022-04-12 15:55 ` Jay Vosburgh
2022-04-12 17:04 ` Jonathan Toppins
2022-04-13 8:11 ` Hangbin Liu [this message]
2022-04-18 10:20 ` Hangbin Liu
2022-04-22 10:23 ` Hangbin Liu
2022-05-06 8:12 ` Hangbin Liu
2022-05-11 3:13 ` Hangbin Liu
2022-05-31 9:26 ` Hangbin Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YlaFvqh+Fo4R2Rnt@Laptop-X1 \
--to=liuhangbin@gmail.com \
--cc=andy@greyhouse.net \
--cc=davem@davemloft.net \
--cc=dsahern@gmail.com \
--cc=eric.dumazet@gmail.com \
--cc=jay.vosburgh@canonical.com \
--cc=jtoppins@redhat.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nikolay@nvidia.com \
--cc=pabeni@redhat.com \
--cc=vfalico@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox