From: Jay Vosburgh <jay.vosburgh@canonical.com>
To: Petr Machata <petrm@nvidia.com>
Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, Veaceslav Falico <vfalico@gmail.com>,
Andy Gospodarek <andy@greyhouse.net>,
Ido Schimmel <idosch@nvidia.com>, Amit Cohen <amcohen@nvidia.com>,
Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
David Ahern <dsahern@kernel.org>,
mlxsw@nvidia.com
Subject: Re: [PATCH net-next 3/3] bonding: 3ad: Add support for 800G speed
Date: Fri, 21 Oct 2022 16:37:57 -0700 [thread overview]
Message-ID: <16041.1666395477@famine> (raw)
In-Reply-To: <9684b0698215ae746447b2d8b4fd983ad283ce0a.1666277135.git.petrm@nvidia.com>
Petr Machata <petrm@nvidia.com> wrote:
>From: Amit Cohen <amcohen@nvidia.com>
>
>Add support for 800Gbps speed to allow using 3ad mode with 800G devices.
>
>Signed-off-by: Amit Cohen <amcohen@nvidia.com>
>Reviewed-by: Ido Schimmel <idosch@nvidia.com>
>Signed-off-by: Petr Machata <petrm@nvidia.com>
Acked-by: Jay Vosburgh <jay.vosburgh@canonical.com>
>---
> drivers/net/bonding/bond_3ad.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
>diff --git a/drivers/net/bonding/bond_3ad.c b/drivers/net/bonding/bond_3ad.c
>index e58a1e0cadd2..455b555275f1 100644
>--- a/drivers/net/bonding/bond_3ad.c
>+++ b/drivers/net/bonding/bond_3ad.c
>@@ -75,6 +75,7 @@ enum ad_link_speed_type {
> AD_LINK_SPEED_100000MBPS,
> AD_LINK_SPEED_200000MBPS,
> AD_LINK_SPEED_400000MBPS,
>+ AD_LINK_SPEED_800000MBPS,
> };
>
> /* compare MAC addresses */
>@@ -251,6 +252,7 @@ static inline int __check_agg_selection_timer(struct port *port)
> * %AD_LINK_SPEED_100000MBPS
> * %AD_LINK_SPEED_200000MBPS
> * %AD_LINK_SPEED_400000MBPS
>+ * %AD_LINK_SPEED_800000MBPS
> */
> static u16 __get_link_speed(struct port *port)
> {
>@@ -326,6 +328,10 @@ static u16 __get_link_speed(struct port *port)
> speed = AD_LINK_SPEED_400000MBPS;
> break;
>
>+ case SPEED_800000:
>+ speed = AD_LINK_SPEED_800000MBPS;
>+ break;
>+
> default:
> /* unknown speed value from ethtool. shouldn't happen */
> if (slave->speed != SPEED_UNKNOWN)
>@@ -753,6 +759,9 @@ static u32 __get_agg_bandwidth(struct aggregator *aggregator)
> case AD_LINK_SPEED_400000MBPS:
> bandwidth = nports * 400000;
> break;
>+ case AD_LINK_SPEED_800000MBPS:
>+ bandwidth = nports * 800000;
>+ break;
> default:
> bandwidth = 0; /* to silence the compiler */
> }
>--
>2.35.3
>
next prev parent reply other threads:[~2022-10-21 23:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-20 15:20 [PATCH net-next 0/3] Add support for 800Gbps speed Petr Machata
2022-10-20 15:20 ` [PATCH net-next 1/3] ethtool: Add support for 800Gbps link modes Petr Machata
2022-10-20 15:20 ` [PATCH net-next 2/3] mlxsw: " Petr Machata
2022-10-20 15:20 ` [PATCH net-next 3/3] bonding: 3ad: Add support for 800G speed Petr Machata
2022-10-21 23:37 ` Jay Vosburgh [this message]
2022-10-24 10:30 ` [PATCH net-next 0/3] Add support for 800Gbps speed patchwork-bot+netdevbpf
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=16041.1666395477@famine \
--to=jay.vosburgh@canonical.com \
--cc=amcohen@nvidia.com \
--cc=andrew@lunn.ch \
--cc=andy@greyhouse.net \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=idosch@nvidia.com \
--cc=kuba@kernel.org \
--cc=linux@armlinux.org.uk \
--cc=mlxsw@nvidia.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=petrm@nvidia.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;
as well as URLs for NNTP newsgroup(s).