Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1600639 > unrolled thread
| Started by | Jarod Wilson <jarod@redhat.com> |
|---|---|
| First post | 2017-03-14 17:00 +0100 |
| Last post | 2017-03-17 04:30 +0100 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH net-next] bonding: add 802.3ad support for 25G speeds Jarod Wilson <jarod@redhat.com> - 2017-03-14 17:00 +0100
Re: [PATCH net-next] bonding: add 802.3ad support for 25G speeds Andy Gospodarek <andy@greyhouse.net> - 2017-03-14 19:20 +0100
Re: [PATCH net-next] bonding: add 802.3ad support for 25G speeds David Miller <davem@davemloft.net> - 2017-03-17 04:30 +0100
| From | Jarod Wilson <jarod@redhat.com> |
|---|---|
| Date | 2017-03-14 17:00 +0100 |
| Subject | [PATCH net-next] bonding: add 802.3ad support for 25G speeds |
| Message-ID | <tkX1D-2dV-9@gated-at.bofh.it> |
Cut-n-paste enablement of 802.3ad bonding on 25G NICs, which currently
report 0 as their bandwidth.
CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Veaceslav Falico <vfalico@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
CC: netdev@vger.kernel.org
Signed-off-by: Jarod Wilson <jarod@redhat.com>
---
note: I swear I saw a patch for this already, but I don't see it on the
list and it isn't committed, so here's this...
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 431926bba9f4..508713b4e533 100644
--- a/drivers/net/bonding/bond_3ad.c
+++ b/drivers/net/bonding/bond_3ad.c
@@ -92,6 +92,7 @@ enum ad_link_speed_type {
AD_LINK_SPEED_2500MBPS,
AD_LINK_SPEED_10000MBPS,
AD_LINK_SPEED_20000MBPS,
+ AD_LINK_SPEED_25000MBPS,
AD_LINK_SPEED_40000MBPS,
AD_LINK_SPEED_56000MBPS,
AD_LINK_SPEED_100000MBPS,
@@ -260,6 +261,7 @@ static inline int __check_agg_selection_timer(struct port *port)
* %AD_LINK_SPEED_2500MBPS,
* %AD_LINK_SPEED_10000MBPS
* %AD_LINK_SPEED_20000MBPS
+ * %AD_LINK_SPEED_25000MBPS
* %AD_LINK_SPEED_40000MBPS
* %AD_LINK_SPEED_56000MBPS
* %AD_LINK_SPEED_100000MBPS
@@ -302,6 +304,10 @@ static u16 __get_link_speed(struct port *port)
speed = AD_LINK_SPEED_20000MBPS;
break;
+ case SPEED_25000:
+ speed = AD_LINK_SPEED_25000MBPS;
+ break;
+
case SPEED_40000:
speed = AD_LINK_SPEED_40000MBPS;
break;
@@ -707,6 +713,9 @@ static u32 __get_agg_bandwidth(struct aggregator *aggregator)
case AD_LINK_SPEED_20000MBPS:
bandwidth = nports * 20000;
break;
+ case AD_LINK_SPEED_25000MBPS:
+ bandwidth = nports * 25000;
+ break;
case AD_LINK_SPEED_40000MBPS:
bandwidth = nports * 40000;
break;
--
2.11.0
[toc] | [next] | [standalone]
| From | Andy Gospodarek <andy@greyhouse.net> |
|---|---|
| Date | 2017-03-14 19:20 +0100 |
| Message-ID | <tkZd7-43W-5@gated-at.bofh.it> |
| In reply to | #1600639 |
On Tue, Mar 14, 2017 at 11:48:32AM -0400, Jarod Wilson wrote:
> Cut-n-paste enablement of 802.3ad bonding on 25G NICs, which currently
> report 0 as their bandwidth.
>
> CC: Jay Vosburgh <j.vosburgh@gmail.com>
> CC: Veaceslav Falico <vfalico@gmail.com>
> CC: Andy Gospodarek <andy@greyhouse.net>
> CC: netdev@vger.kernel.org
> Signed-off-by: Jarod Wilson <jarod@redhat.com>
Look good, Jarod. Probably time for a 50Gbps option, too....
Acked-by: Andy Gospodarek <andy@greyhouse.net>
> ---
> note: I swear I saw a patch for this already, but I don't see it on the
> list and it isn't committed, so here's this...
>
> 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 431926bba9f4..508713b4e533 100644
> --- a/drivers/net/bonding/bond_3ad.c
> +++ b/drivers/net/bonding/bond_3ad.c
> @@ -92,6 +92,7 @@ enum ad_link_speed_type {
> AD_LINK_SPEED_2500MBPS,
> AD_LINK_SPEED_10000MBPS,
> AD_LINK_SPEED_20000MBPS,
> + AD_LINK_SPEED_25000MBPS,
> AD_LINK_SPEED_40000MBPS,
> AD_LINK_SPEED_56000MBPS,
> AD_LINK_SPEED_100000MBPS,
> @@ -260,6 +261,7 @@ static inline int __check_agg_selection_timer(struct port *port)
> * %AD_LINK_SPEED_2500MBPS,
> * %AD_LINK_SPEED_10000MBPS
> * %AD_LINK_SPEED_20000MBPS
> + * %AD_LINK_SPEED_25000MBPS
> * %AD_LINK_SPEED_40000MBPS
> * %AD_LINK_SPEED_56000MBPS
> * %AD_LINK_SPEED_100000MBPS
> @@ -302,6 +304,10 @@ static u16 __get_link_speed(struct port *port)
> speed = AD_LINK_SPEED_20000MBPS;
> break;
>
> + case SPEED_25000:
> + speed = AD_LINK_SPEED_25000MBPS;
> + break;
> +
> case SPEED_40000:
> speed = AD_LINK_SPEED_40000MBPS;
> break;
> @@ -707,6 +713,9 @@ static u32 __get_agg_bandwidth(struct aggregator *aggregator)
> case AD_LINK_SPEED_20000MBPS:
> bandwidth = nports * 20000;
> break;
> + case AD_LINK_SPEED_25000MBPS:
> + bandwidth = nports * 25000;
> + break;
> case AD_LINK_SPEED_40000MBPS:
> bandwidth = nports * 40000;
> break;
> --
> 2.11.0
>
[toc] | [prev] | [next] | [standalone]
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2017-03-17 04:30 +0100 |
| Message-ID | <tlQKu-8g6-5@gated-at.bofh.it> |
| In reply to | #1600639 |
From: Jarod Wilson <jarod@redhat.com> Date: Tue, 14 Mar 2017 11:48:32 -0400 > Cut-n-paste enablement of 802.3ad bonding on 25G NICs, which currently > report 0 as their bandwidth. > > CC: Jay Vosburgh <j.vosburgh@gmail.com> > CC: Veaceslav Falico <vfalico@gmail.com> > CC: Andy Gospodarek <andy@greyhouse.net> > CC: netdev@vger.kernel.org > Signed-off-by: Jarod Wilson <jarod@redhat.com> Applied.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web