1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2018-2021 HiSilicon Limited. 3 */ 4 5 #ifndef _HNS3_MP_H_ 6 #define _HNS3_MP_H_ 7 8 /* Local data for primary or secondary process. */ 9 struct hns3_process_local_data { 10 bool init_done; /* Process action register completed flag. */ 11 int eth_dev_cnt; /* Ethdev count under the current process. */ 12 }; 13 14 void hns3_mp_req_start_rxtx(struct rte_eth_dev *dev); 15 void hns3_mp_req_stop_rxtx(struct rte_eth_dev *dev); 16 void hns3_mp_req_start_tx(struct rte_eth_dev *dev); 17 void hns3_mp_req_stop_tx(struct rte_eth_dev *dev); 18 19 int hns3_mp_init(struct rte_eth_dev *dev); 20 void hns3_mp_uninit(struct rte_eth_dev *dev); 21 22 #endif /* _HNS3_MP_H_ */ 23