net/i40e: replace SMP barrier with thread fence in Rx
authorJoyce Kong <joyce.kong@arm.com>
Tue, 6 Jul 2021 06:54:04 +0000 (01:54 -0500)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 16 Jul 2021 08:11:30 +0000 (10:11 +0200)
commit8649e2356689a6fdd2d4ae3ebe183f2ecd6046fd
tree9038225e897e204d195ca40e76d4b306b0a0e120
parent9e29a278bc0c798866963ba0cf1034ab6ae85e76
net/i40e: replace SMP barrier with thread fence in Rx

Simply replace the SMP barrier with atomic thread fence for
i40e hw ring scan, if there is no synchronization point.

Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_rxtx.c