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 #include <ethdev_driver.h> 9 10 /* Local data for primary or secondary process. */ 11 struct hns3_process_local_data { 12 bool init_done; /* Process action register completed flag. */ 13 int eth_dev_cnt; /* Ethdev count under the current process. */ 14 }; 15 16 void hns3_mp_req_start_rxtx(struct rte_eth_dev *dev); 17 void hns3_mp_req_stop_rxtx(struct rte_eth_dev *dev); 18 void hns3_mp_req_start_tx(struct rte_eth_dev *dev); 19 void hns3_mp_req_stop_tx(struct rte_eth_dev *dev); 20 21 int hns3_mp_init(struct rte_eth_dev *dev); 22 void hns3_mp_uninit(struct rte_eth_dev *dev); 23 24 #endif /* HNS3_MP_H */ 25