-
Notifications
You must be signed in to change notification settings - Fork 44
/
avx_not_suported.patch
58 lines (58 loc) · 2.4 KB
/
avx_not_suported.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
--- i40e_rxtx_orig.c 2018-12-03 01:07:15.352350218 -0800
+++ i40e_rxtx.c 2018-12-03 01:06:31.928350145 -0800
@@ -2817,9 +2817,16 @@
* plaforms, not all those that could theoretically
* run it.
*/
+ /**
+ * When compiling DPDK-18.02, gcc may generate Intel AVX instructions,
+ * even when the processor does not support Intel AVX.
+ * Fix for above "i40e" driver issue is a part of upcoming dpdk-18.05 release.
+ * Reference Link: https://doc.dpdk.org/guides-18.05/rel_notes/release_18_05.html
+ * Search KeyWord: net/i40e: fix rearm check in AVX2 Rx
+ */
if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512F))
- dev->rx_pkt_burst =
- i40e_recv_scattered_pkts_vec_avx2;
+ dev->rx_pkt_burst = i40e_recv_scattered_pkts_vec;
+ /* dev->rx_pkt_burst = i40e_recv_scattered_pkts_vec_avx2;*/
#endif
} else {
PMD_INIT_LOG(DEBUG, "Using a Scattered with bulk "
@@ -2847,8 +2854,17 @@
* plaforms, not all those that could theoretically
* run it.
*/
+
+ /**
+ * When compiling DPDK-18.02, gcc may generate Intel AVX instructions,
+ * even when the processor does not support Intel AVX.
+ * Fix for above "i40e" driver issue is a part of upcoming dpdk-18.05 release.
+ * Reference Link: https://doc.dpdk.org/guides-18.05/rel_notes/release_18_05.html
+ * Search KeyWord: net/i40e: fix rearm check in AVX2 Rx
+ */
if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512F))
- dev->rx_pkt_burst = i40e_recv_pkts_vec_avx2;
+ dev->rx_pkt_burst = i40e_recv_pkts_vec;
+ /* dev->rx_pkt_burst = i40e_recv_pkts_vec_avx2;*/
#endif
} else if (ad->rx_bulk_alloc_allowed) {
PMD_INIT_LOG(DEBUG, "Rx Burst Bulk Alloc Preconditions are "
@@ -2936,8 +2952,16 @@
* plaforms, not all those that could theoretically
* run it.
*/
+ /**
+ * When compiling DPDK-18.02, gcc may generate Intel AVX instructions,
+ * even when the processor does not support Intel AVX.
+ * Fix for above "i40e" driver issue is a part of upcoming dpdk-18.05 release.
+ * Reference Link: https://doc.dpdk.org/guides-18.05/rel_notes/release_18_05.html
+ * Search KeyWord: net/i40e: fix rearm check in AVX2 Rx
+ */
if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_AVX512F))
- dev->tx_pkt_burst = i40e_xmit_pkts_vec_avx2;
+ dev->tx_pkt_burst = i40e_xmit_pkts_vec;
+ /* dev->tx_pkt_burst = i40e_xmit_pkts_vec_avx2;*/
#endif
} else {
PMD_INIT_LOG(DEBUG, "Simple tx finally be used.");