bonding: 3ad: add support for 200G speed
In order to be able to use 3ad mode with 200G devices we need to extend the supported speeds. Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6bda2f6fae
commit
ab73447c38
|
@ -73,6 +73,7 @@ enum ad_link_speed_type {
|
||||||
AD_LINK_SPEED_50000MBPS,
|
AD_LINK_SPEED_50000MBPS,
|
||||||
AD_LINK_SPEED_56000MBPS,
|
AD_LINK_SPEED_56000MBPS,
|
||||||
AD_LINK_SPEED_100000MBPS,
|
AD_LINK_SPEED_100000MBPS,
|
||||||
|
AD_LINK_SPEED_200000MBPS,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* compare MAC addresses */
|
/* compare MAC addresses */
|
||||||
|
@ -245,6 +246,7 @@ static inline int __check_agg_selection_timer(struct port *port)
|
||||||
* %AD_LINK_SPEED_50000MBPS
|
* %AD_LINK_SPEED_50000MBPS
|
||||||
* %AD_LINK_SPEED_56000MBPS
|
* %AD_LINK_SPEED_56000MBPS
|
||||||
* %AD_LINK_SPEED_100000MBPS
|
* %AD_LINK_SPEED_100000MBPS
|
||||||
|
* %AD_LINK_SPEED_200000MBPS
|
||||||
*/
|
*/
|
||||||
static u16 __get_link_speed(struct port *port)
|
static u16 __get_link_speed(struct port *port)
|
||||||
{
|
{
|
||||||
|
@ -312,6 +314,10 @@ static u16 __get_link_speed(struct port *port)
|
||||||
speed = AD_LINK_SPEED_100000MBPS;
|
speed = AD_LINK_SPEED_100000MBPS;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SPEED_200000:
|
||||||
|
speed = AD_LINK_SPEED_200000MBPS;
|
||||||
|
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)
|
||||||
|
@ -733,6 +739,9 @@ static u32 __get_agg_bandwidth(struct aggregator *aggregator)
|
||||||
case AD_LINK_SPEED_100000MBPS:
|
case AD_LINK_SPEED_100000MBPS:
|
||||||
bandwidth = nports * 100000;
|
bandwidth = nports * 100000;
|
||||||
break;
|
break;
|
||||||
|
case AD_LINK_SPEED_200000MBPS:
|
||||||
|
bandwidth = nports * 200000;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
bandwidth = 0; /* to silence the compiler */
|
bandwidth = 0; /* to silence the compiler */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue