i40e/base: enhance NVM checksum calculation
authorHelin Zhang <helin.zhang@intel.com>
Thu, 30 Apr 2015 15:03:20 +0000 (23:03 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 15 May 2015 14:33:16 +0000 (16:33 +0200)
commit432e19c3d04915cdac9aabfd3f59954301a92049
tree6e1df20660e4b1b88d3e1ebf7524d319d36b0d75
parent9b1041574cd4886c7c00334af21472ead71fb85d
i40e/base: enhance NVM checksum calculation

The data buffer for i40e_calc_nvm_checksum() is too big, so move
it off and allocate separately. In addition, use
i40e_read_nvm_buffer() to get the whole shadow RAM, together with
minor enhancements.

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