[dpdk-dev] [PATCH] net/i40e: set speed to undefined for default case in link update

Zhang, Qi Z qi.z.zhang at intel.com
Tue Sep 17 04:40:29 CEST 2019



> -----Original Message-----
> From: Thierry Herbelot [mailto:thierry.herbelot at 6wind.com]
> Sent: Thursday, September 12, 2019 12:03 AM
> To: dev at dpdk.org
> Cc: Laurent Hardy <laurent.hardy at 6wind.com>; Thomas Monjalon
> <thomas at monjalon.net>; stable at dpdk.org; Xing, Beilei
> <beilei.xing at intel.com>; Zhang, Qi Z <qi.z.zhang at intel.com>
> Subject: [PATCH] net/i40e: set speed to undefined for default case in link
> update
> 
> 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>

Acked-by: Qi Zhang <qi.z.zhang at intel.com>



More information about the dev mailing list