mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
bonding: 3ad: Add support for 800G speed
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> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cceef209dd
commit
41305d3781
@ -75,6 +75,7 @@ enum ad_link_speed_type {
|
|||||||
AD_LINK_SPEED_100000MBPS,
|
AD_LINK_SPEED_100000MBPS,
|
||||||
AD_LINK_SPEED_200000MBPS,
|
AD_LINK_SPEED_200000MBPS,
|
||||||
AD_LINK_SPEED_400000MBPS,
|
AD_LINK_SPEED_400000MBPS,
|
||||||
|
AD_LINK_SPEED_800000MBPS,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* compare MAC addresses */
|
/* compare MAC addresses */
|
||||||
@ -251,6 +252,7 @@ static inline int __check_agg_selection_timer(struct port *port)
|
|||||||
* %AD_LINK_SPEED_100000MBPS
|
* %AD_LINK_SPEED_100000MBPS
|
||||||
* %AD_LINK_SPEED_200000MBPS
|
* %AD_LINK_SPEED_200000MBPS
|
||||||
* %AD_LINK_SPEED_400000MBPS
|
* %AD_LINK_SPEED_400000MBPS
|
||||||
|
* %AD_LINK_SPEED_800000MBPS
|
||||||
*/
|
*/
|
||||||
static u16 __get_link_speed(struct port *port)
|
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;
|
speed = AD_LINK_SPEED_400000MBPS;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SPEED_800000:
|
||||||
|
speed = AD_LINK_SPEED_800000MBPS;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
/* unknown speed value from ethtool. shouldn't happen */
|
/* unknown speed value from ethtool. shouldn't happen */
|
||||||
if (slave->speed != SPEED_UNKNOWN)
|
if (slave->speed != SPEED_UNKNOWN)
|
||||||
@ -753,6 +759,9 @@ static u32 __get_agg_bandwidth(struct aggregator *aggregator)
|
|||||||
case AD_LINK_SPEED_400000MBPS:
|
case AD_LINK_SPEED_400000MBPS:
|
||||||
bandwidth = nports * 400000;
|
bandwidth = nports * 400000;
|
||||||
break;
|
break;
|
||||||
|
case AD_LINK_SPEED_800000MBPS:
|
||||||
|
bandwidth = nports * 800000;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
bandwidth = 0; /* to silence the compiler */
|
bandwidth = 0; /* to silence the compiler */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user