net/i40e/base: fix NVM lock
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 9 Jan 2018 20:30:09 +0000 (15:30 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commit4b3b515901b927985e04d4d96a2a804f18e04a16
treecd00327551b9cba1a2a2f656fbd9ce4d1e03b888
parent232dd12754fd6062603367a2324d4bb40684c21c
net/i40e/base: fix NVM lock

NVM lock is only required at below situation:
1. its X722 device or
2. API version >= 1.5
or may have issue at firmware downgrade.

Fixes: c5846a125b26 ("net/i40e/base: fix NVM access interfering")
Cc: stable@dpdk.org
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/base/i40e_adminq.c
drivers/net/i40e/base/i40e_common.c
drivers/net/i40e/base/i40e_nvm.c
drivers/net/i40e/base/i40e_type.h