1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2021 Marvell.
4 #ifndef __CN9K_ETHDEV_H__
5 #define __CN9K_ETHDEV_H__
7 #include <cnxk_ethdev.h>
8 #include <cnxk_security.h>
9 #include <cnxk_security_ar.h>
13 int64_t fc_cache_pkts;
19 uint16_t sqes_per_sqb_log2;
20 int16_t nb_sqb_bufs_adj;
21 rte_iova_t cpt_io_addr;
25 } __plt_cache_aligned;
28 uint64_t mbuf_initializer;
39 struct cnxk_timesync_info *tstamp;
40 } __plt_cache_aligned;
42 /* Private data in sw rsvd area of struct roc_onf_ipsec_inb_sa */
43 struct cn9k_inb_priv_data {
45 uint32_t replay_win_sz;
46 struct cnxk_on_ipsec_ar ar;
47 struct cnxk_eth_sec_sess *eth_sec;
50 /* Private data in sw rsvd area of struct roc_onf_ipsec_outb_sa */
51 struct cn9k_outb_priv_data {
60 /* Rlen computation data */
61 struct cnxk_ipsec_outb_rlens rlens;
70 uint16_t copy_salt : 1;
75 /* User data pointer */
78 /* Back pointer to eth sec session */
79 struct cnxk_eth_sec_sess *eth_sec;
82 struct cn9k_sec_sess_priv {
88 uint8_t roundup_byte : 5;
97 /* Rx and Tx routines */
98 void cn9k_eth_set_rx_function(struct rte_eth_dev *eth_dev);
99 void cn9k_eth_set_tx_function(struct rte_eth_dev *eth_dev);
101 /* Security context setup */
102 void cn9k_eth_sec_ops_override(void);
104 #endif /* __CN9K_ETHDEV_H__ */