[dpdk-dev] [PATCH] net/i40e: set speed to undefined for default case in link update
xiaolong.ye at intel.com
Mon Sep 30 12:53:54 CEST 2019
On 09/11, Thierry Herbelot wrote:
>From: Laurent Hardy <laurent.hardy at 6wind.com>
>During PF/VF link update, a default speed value of 100M will be set
>if get_link_info has failed or speed is unknown.
>Consequently if PF is put in no-carrier state, VFs will switch to
>"in carrier" state due to a link up + a link speed set to 100M
>(default value if no speed detected).
>To be consistent with linux drivers on which PF and VFs are in
>same carrier state, sets default speed to undefined (instead of 100M)
>and updates a link status of VF only if link is up and speed is
>different from undefined.
>Fixes: 4861cde46116 ('i40e: new poll mode driver')
>Cc: stable at dpdk.org
>Cc: beilei.xing at intel.com
>Cc: qi.z.zhang at intel.com
>Signed-off-by: Laurent Hardy <laurent.hardy at 6wind.com>
> drivers/net/i40e/i40e_ethdev.c | 4 ++--
> drivers/net/i40e/i40e_ethdev_vf.c | 8 +++++---
> 2 files changed, 7 insertions(+), 5 deletions(-)
Reviewed-by: Xiaolong Ye <xiaolong.ye at intel.com>
Applied to dpdk-next-net-intel.
More information about the dev