[PATCH V2] net/bonding: add link speeds configuration
Chas Williams
3chas3 at gmail.com
Thu Sep 15 15:43:07 CEST 2022
On 9/15/22 09:14, Huisong Li wrote:
> This patch adds link speeds configuration.
>
> ---
> -v2: resend due to CI compiling failure.
>
> Signed-off-by: Huisong Li <lihuisong at huawei.com>
> ---
> drivers/net/bonding/rte_eth_bond_pmd.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c
> index 3191158ca7..0c1dbc3ff6 100644
> --- a/drivers/net/bonding/rte_eth_bond_pmd.c
> +++ b/drivers/net/bonding/rte_eth_bond_pmd.c
> @@ -1717,6 +1717,8 @@ slave_configure(struct rte_eth_dev *bonded_eth_dev,
>
> slave_eth_dev->data->dev_conf.rxmode.mtu =
> bonded_eth_dev->data->dev_conf.rxmode.mtu;
> + slave_eth_dev->data->dev_conf.link_speeds =
> + bonded_eth_dev->data->dev_conf.link_speeds;
>
> slave_eth_dev->data->dev_conf.txmode.offloads |=
> bonded_eth_dev->data->dev_conf.txmode.offloads;
Where did bonded_eth_dev->data->dev_conf.link_speeds come from? This is
rather messy since you might need to worry about intersection of
speed_capa from the set of members in the bond group.
More information about the dev
mailing list