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;
18 uint16_t sqes_per_sqb_log2;
19 int16_t nb_sqb_bufs_adj;
20 rte_iova_t cpt_io_addr;
24 } __plt_cache_aligned;
27 uint64_t mbuf_initializer;
38 struct cnxk_timesync_info *tstamp;
39 } __plt_cache_aligned;
41 /* Private data in sw rsvd area of struct roc_onf_ipsec_inb_sa */
42 struct cn9k_inb_priv_data {
44 uint32_t replay_win_sz;
45 struct cnxk_on_ipsec_ar ar;
46 struct cnxk_eth_sec_sess *eth_sec;
49 /* Private data in sw rsvd area of struct roc_onf_ipsec_outb_sa */
50 struct cn9k_outb_priv_data {
59 /* Rlen computation data */
60 struct cnxk_ipsec_outb_rlens rlens;
69 uint16_t copy_salt : 1;
74 /* User data pointer */
77 /* Back pointer to eth sec session */
78 struct cnxk_eth_sec_sess *eth_sec;
81 struct cn9k_sec_sess_priv {
87 uint8_t roundup_byte : 5;
96 /* Rx and Tx routines */
97 void cn9k_eth_set_rx_function(struct rte_eth_dev *eth_dev);
98 void cn9k_eth_set_tx_function(struct rte_eth_dev *eth_dev);
100 /* Security context setup */
101 void cn9k_eth_sec_ops_override(void);
103 #endif /* __CN9K_ETHDEV_H__ */