]> git.droids-corp.org - dpdk.git/commit
net/iavf: replace SMP barrier with thread fence in Rx
authorKathleen Capella <kathleen.capella@arm.com>
Mon, 7 Mar 2022 19:26:44 +0000 (19:26 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Mon, 18 Apr 2022 05:47:18 +0000 (07:47 +0200)
commit8b421290fb427b7bd402d520b54eff1065e65221
tree1d00ac5ef4c1c4b386f9dfe3ad43eda18fbf4a2f
parent774263bb4e7cda84417e117a4d6c4931cd72cf3a
net/iavf: replace SMP barrier with thread fence in Rx

Replace the SMP barrier with atomic thread fence for iavf hw ring scan
in the bulk Rx path.

This patch introduces a change to the iavf driver that was already added
to the i40e driver [1] as part of the adoption of the use of compiler
atomics.

[1]Commit 8649e2356689 ("net/i40e: replace SMP barrier with thread fence
in Rx")

Signed-off-by: Kathleen Capella <kathleen.capella@arm.com>
Reviewed-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_rxtx.c