i40e/base: enhance polling of NVM semaphore
authorHelin Zhang <helin.zhang@intel.com>
Thu, 30 Apr 2015 15:03:19 +0000 (23:03 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 15 May 2015 14:33:16 +0000 (16:33 +0200)
commit9b1041574cd4886c7c00334af21472ead71fb85d
treed5820793c0c98d2e62dd1d98158245b7d8a9dc03
parent2d71e6334820deb82509458bcc52a33ef8b98083
i40e/base: enhance polling of NVM semaphore

Only poll on the NVM semaphore if there's time left on a previous
reservation.

Test report: http://www.dpdk.org/ml/archives/dev/2015-May/017384.html

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Jijiang Liu <jijiang.liu@intel.com>
Tested-by: Min Cao <min.cao@intel.com>
lib/librte_pmd_i40e/i40e/i40e_nvm.c