crypto/cnxk: move IPsec SA creation to common
[dpdk.git] / drivers / common / cnxk / roc_errata.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2022 Marvell.
3  */
4 #ifndef _ROC_ERRATA_H_
5 #define _ROC_ERRATA_H_
6
7 /* Errata IPBUNIXRX-40129 */
8 static inline bool
9 roc_errata_nix_has_no_drop_re(void)
10 {
11         return (roc_model_is_cn10ka_a0() || roc_model_is_cnf10ka_a0() ||
12                 roc_model_is_cnf10kb_a0());
13 }
14
15 /* Errata NIX-34873 */
16 static inline bool
17 roc_errata_nix_has_cq_min_size_4k(void)
18 {
19         return (roc_model_is_cn96_a0() || roc_model_is_cn95_a0());
20 }
21
22 /* Errata IPBUNPA-37480 */
23 static inline bool
24 roc_errata_npa_has_no_fc_stype_ststp(void)
25 {
26         return roc_model_is_cn10ka_a0() ? true : false;
27 }
28
29 /* Errata IPBUNIXTX-39337 */
30 static inline bool
31 roc_errata_nix_has_no_drop_aging(void)
32 {
33         return (roc_model_is_cn10ka_a0() || roc_model_is_cnf10ka_a0() ||
34                 roc_model_is_cnf10kb_a0());
35 }
36
37 /* Errata IPBUNIXRX-40130 */
38 static inline bool
39 roc_errata_nix_has_no_vwqe_flush_op(void)
40 {
41         return (roc_model_is_cn10ka_a0() || roc_model_is_cnf10ka_a0() ||
42                 roc_model_is_cnf10kb_a0());
43 }
44
45 /* Errata IPBURVUM-38481 */
46 static inline bool
47 roc_errata_ruvm_has_no_interrupt_with_msixen(void)
48 {
49         return true;
50 }
51
52 /* Errata IPBUNIXTX-39300 */
53 static inline bool
54 roc_errata_nix_has_assign_incorrect_qintidx(void)
55 {
56         return true;
57 }
58
59 /* Errata IPBUCPT-38551 */
60 static inline bool
61 roc_errata_cpt_has_use_incorrect_ldwb(void)
62 {
63         return true;
64 }
65
66 /* Errata IPBUNIXTX-39322 */
67 static inline bool
68 roc_errata_nix_has_overwrite_incorrect_sq_intr(void)
69 {
70         return true;
71 }
72
73 /* Errata IPBUNIXTX-39248 */
74 static inline bool
75 roc_errata_nix_has_perf_issue_on_stats_update(void)
76 {
77         return true;
78 }
79
80 #endif /* _ROC_ERRATA_H_ */