[dpdk-dev] [PATCH] i40evf: fix link info update

Thomas Monjalon thomas.monjalon at 6wind.com
Fri Apr 1 10:23:35 CEST 2016


Hi Jingjing,

Please rebase on top of Marc's patches.

2016-04-01 09:36, Jingjing Wu:
> +* **i40e: Fixed link info of VF

a blank line is missing

> +  Previously, the VF's link speed kept as 10G and status always was up. It did not
> +  change even the physical link's status changed. Now this issue is fixed to make
> +  VF's link info consistent with physical link.

[...]
> +			new_link.link_speed = ETH_LINK_SPEED_100;
> +			break;
> +		case I40E_LINK_SPEED_1GB:
> +			new_link.link_speed = ETH_LINK_SPEED_1000;

These speeds have new names after Marc's rework.

> +		new_link.link_status = vf->link_up ? 1 : 0;

Please use new constants for link up and down.



More information about the dev mailing list