From: Jianbo Liu Date: Fri, 5 Aug 2016 09:06:23 +0000 (+0530) Subject: net/i40e: support ARM platform X-Git-Tag: spdx-start~5816 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7b0cf70135d12b89d4a3c3846309209a818c9266;p=dpdk.git net/i40e: support ARM platform And add read memory barrier to avoid status inconsistency between two Rx descriptors readings. Signed-off-by: Jianbo Liu Acked-by: Qi Zhang --- diff --git a/config/defconfig_arm64-armv8a-linuxapp-gcc b/config/defconfig_arm64-armv8a-linuxapp-gcc index 73f4733429..a0f447387f 100644 --- a/config/defconfig_arm64-armv8a-linuxapp-gcc +++ b/config/defconfig_arm64-armv8a-linuxapp-gcc @@ -45,6 +45,6 @@ CONFIG_RTE_TOOLCHAIN_GCC=y CONFIG_RTE_EAL_IGB_UIO=n CONFIG_RTE_LIBRTE_FM10K_PMD=n -CONFIG_RTE_LIBRTE_I40E_PMD=n +CONFIG_RTE_LIBRTE_I40E_INC_VECTOR=n CONFIG_RTE_SCHED_VECTOR=n diff --git a/doc/guides/nics/features/i40e.ini b/doc/guides/nics/features/i40e.ini index fb3fb60588..0d143bca60 100644 --- a/doc/guides/nics/features/i40e.ini +++ b/doc/guides/nics/features/i40e.ini @@ -45,3 +45,4 @@ Linux UIO = Y Linux VFIO = Y x86-32 = Y x86-64 = Y +ARMv8 = Y diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index 0556a4d40b..bbaf513fc8 100644 --- a/drivers/net/i40e/i40e_rxtx.c +++ b/drivers/net/i40e/i40e_rxtx.c @@ -994,6 +994,8 @@ i40e_rx_scan_hw_ring(struct i40e_rx_queue *rxq) I40E_RXD_QW1_STATUS_SHIFT; } + rte_smp_rmb(); + /* Compute how many status bits were set */ for (j = 0, nb_dd = 0; j < I40E_LOOK_AHEAD; j++) nb_dd += s[j] & (1 << I40E_RX_DESC_STATUS_DD_SHIFT);