net/e1000: fix MAC type checking
authorXiao Zhang <xiao.zhang@intel.com>
Tue, 10 Sep 2019 17:40:55 +0000 (01:40 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 20 Sep 2019 08:19:41 +0000 (10:19 +0200)
commit675f65dc660805eff1953e3dfb6242ec076a9444
tree45cd1406e6af13d0d4f52533d08a21e099ee6ebf
parentc9333f457eeb708375dd0c8592079da8cfc174cd
net/e1000: fix MAC type checking

The mac types of i219 are e1000_pch_spt and e1000_pch_cnp, correct the
checking code of mac type when flushing i219 descriptor rings.

Fixes: 1fc9701238ed ("net/e1000: fix i219 hang on reset/close")
Cc: stable@dpdk.org
Reported-by: Kevin Traynor <ktraynor@redhat.com>
Signed-off-by: Xiao Zhang <xiao.zhang@intel.com>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/e1000/em_ethdev.c