iavf:fix compilation failure.

(cherry picked from commit f55682bf863b781e17c251dd738c604cd7f8e2bc)
This commit is contained in:
liuzy518 2021-02-07 11:10:26 +08:00 committed by openeuler-sync-bot
parent 640972caa7
commit 17741927ce
2 changed files with 19 additions and 12 deletions

View File

@ -20,17 +20,18 @@ Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
1 file changed, 1 insertion(+), 1 deletion(-) 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/iavf_txrx.c b/src/iavf_txrx.c diff --git a/src/iavf_txrx.c b/src/iavf_txrx.c
index fe817e2b6fef4..50864f99446d3 100644 index 03c685c..da3cfed 100644
--- a/src/iavf_txrx.c --- a/src/iavf_txrx.c
+++ b/src/iavf_txrx.c +++ b/src/iavf_txrx.c
@@ -289,7 +289,7 @@ @@ -289,7 +289,7 @@ static bool iavf_clean_tx_irq(struct iavf_vsi *vsi,
break; break;
/* prevent any other reads prior to eop_desc */ /* prevent any other reads prior to eop_desc */
- read_barrier_depends(); - read_barrier_depends();
+ smp_rmb(); + smp_rmb();
iavf_trace(clean_tx_irq, tx_ring, tx_desc, tx_buf); iavf_trace(clean_tx_irq, tx_ring, tx_desc, tx_buf);
/* if the descriptor isn't done, no work yet to do */ /* if the descriptor isn't done, no work yet to do */
-- --
cgit 1.2.3-1.el7 1.8.3.1

View File

@ -9,7 +9,7 @@
Name: iavf Name: iavf
Summary: Intel(R) Ethernet Adaptive Virtual Function Driver Summary: Intel(R) Ethernet Adaptive Virtual Function Driver
Version: 4.0.1 Version: 4.0.1
Release: 1 Release: 2
Vendor: Intel Corporation Vendor: Intel Corporation
License: GPL-2.0 License: GPL-2.0
URL: http://support.intel.com URL: http://support.intel.com
@ -385,5 +385,11 @@ else
fi fi
%changelog %changelog
* Sun Feb 7 2021 liulong <liulong20@huawei.com>
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix compilation failure.
* Tue Feb 2 2021 chxssg <chxssg@qq.com> - 4.0.1-1 * Tue Feb 2 2021 chxssg <chxssg@qq.com> - 4.0.1-1
- Package init - Package init