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>
12 int64_t fc_cache_pkts;
17 uint16_t sqes_per_sqb_log2;
18 int16_t nb_sqb_bufs_adj;
19 rte_iova_t cpt_io_addr;
23 } __plt_cache_aligned;
26 uint64_t mbuf_initializer;
37 struct cnxk_timesync_info *tstamp;
38 } __plt_cache_aligned;
40 /* Private data in sw rsvd area of struct roc_onf_ipsec_inb_sa */
41 struct cn9k_inb_priv_data {
43 struct cnxk_eth_sec_sess *eth_sec;
46 /* Private data in sw rsvd area of struct roc_onf_ipsec_outb_sa */
47 struct cn9k_outb_priv_data {
56 /* Rlen computation data */
57 struct cnxk_ipsec_outb_rlens rlens;
66 uint16_t copy_salt : 1;
71 /* User data pointer */
74 /* Back pointer to eth sec session */
75 struct cnxk_eth_sec_sess *eth_sec;
78 struct cn9k_sec_sess_priv {
84 uint8_t roundup_byte : 5;
93 /* Rx and Tx routines */
94 void cn9k_eth_set_rx_function(struct rte_eth_dev *eth_dev);
95 void cn9k_eth_set_tx_function(struct rte_eth_dev *eth_dev);
97 /* Security context setup */
98 void cn9k_eth_sec_ops_override(void);
100 #endif /* __CN9K_ETHDEV_H__ */