[dpdk-dev] [PATCH v2 06/42] net/e1000/base: modify MAC initialization for i211

Yang, Qiming qiming.yang at intel.com
Mon Jun 29 05:30:33 CEST 2020


This one should merge to the first patch.

> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Guinan Sun
> Sent: Wednesday, June 24, 2020 15:53
> To: dev at dpdk.org
> Cc: Guo, Jia <jia.guo at intel.com>; Lu, Wenzhuo <wenzhuo.lu at intel.com>;
> Sun, GuinanX <guinanx.sun at intel.com>; Fujinaka, Todd
> <todd.fujinaka at intel.com>
> Subject: [dpdk-dev] [PATCH v2 06/42] net/e1000/base: modify MAC
> initialization for i211
> 
> Introduce SF/FW syncronization, acquire and release for i211 devices.
> 
> Signed-off-by: Todd Fujinaka <todd.fujinaka at intel.com>
> Signed-off-by: Guinan Sun <guinanx.sun at intel.com>
> ---
>  drivers/net/e1000/base/e1000_82575.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/e1000/base/e1000_82575.c
> b/drivers/net/e1000/base/e1000_82575.c
> index 4c3611c6d..952bb4235 100644
> --- a/drivers/net/e1000/base/e1000_82575.c
> +++ b/drivers/net/e1000/base/e1000_82575.c
> @@ -486,7 +486,7 @@ STATIC s32 e1000_init_mac_params_82575(struct
> e1000_hw *hw)
>  	/* acquire SW_FW sync */
>  	mac->ops.acquire_swfw_sync = e1000_acquire_swfw_sync_82575;
>  	mac->ops.release_swfw_sync = e1000_release_swfw_sync_82575;
> -	if (mac->type >= e1000_i210) {
> +	if (mac->type == e1000_i210 || mac->type == e1000_i211) {
>  		mac->ops.acquire_swfw_sync =
> e1000_acquire_swfw_sync_i210;
>  		mac->ops.release_swfw_sync =
> e1000_release_swfw_sync_i210;
>  	}
> --
> 2.17.1



More information about the dev mailing list