1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(C) 2021 Marvell. 3 */ 4 #ifndef __CN10K_ETHDEV_H__ 5 #define __CN10K_ETHDEV_H__ 6 7 #include <cnxk_ethdev.h> 8 #include <cnxk_security.h> 9 #include <cn10k_rxtx.h> 10 11 /* Private data in sw rsvd area of struct roc_ot_ipsec_outb_sa */ 12 struct cn10k_outb_priv_data { 13 void *userdata; 14 /* Rlen computation data */ 15 struct cnxk_ipsec_outb_rlens rlens; 16 /* Back pointer to eth sec session */ 17 struct cnxk_eth_sec_sess *eth_sec; 18 /* SA index */ 19 uint32_t sa_idx; 20 }; 21 22 /* Rx and Tx routines */ 23 void cn10k_eth_set_rx_function(struct rte_eth_dev *eth_dev); 24 void cn10k_eth_set_tx_function(struct rte_eth_dev *eth_dev); 25 26 /* Security context setup */ 27 void cn10k_eth_sec_ops_override(void); 28 29 /* SSO Work callback */ 30 void cn10k_eth_sec_sso_work_cb(uint64_t *gw, void *args, 31 uint32_t soft_exp_event); 32 33 #endif /* __CN10K_ETHDEV_H__ */ 34