X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fhns3%2Fhns3_mp.h;h=a74221d08670225bbe75e2dd50940e056bcd1fc1;hb=a41f593f1bce27cd94eae0e85a8085c592b14b30;hp=60ef2315db0d64801017e893cf6553a818bbbddd;hpb=fa485faca236bd0ac834b6ad7c36f5050305482e;p=dpdk.git diff --git a/drivers/net/hns3/hns3_mp.h b/drivers/net/hns3/hns3_mp.h index 60ef2315db..a74221d086 100644 --- a/drivers/net/hns3/hns3_mp.h +++ b/drivers/net/hns3/hns3_mp.h @@ -1,14 +1,22 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright(c) 2018-2019 HiSilicon Limited. + * Copyright(c) 2018-2021 HiSilicon Limited. */ #ifndef _HNS3_MP_H_ #define _HNS3_MP_H_ +/* Local data for primary or secondary process. */ +struct hns3_process_local_data { + bool init_done; /* Process action register completed flag. */ + int eth_dev_cnt; /* Ethdev count under the current process. */ +}; + void hns3_mp_req_start_rxtx(struct rte_eth_dev *dev); void hns3_mp_req_stop_rxtx(struct rte_eth_dev *dev); -int hns3_mp_init_primary(void); -void hns3_mp_uninit_primary(void); -int hns3_mp_init_secondary(void); +void hns3_mp_req_start_tx(struct rte_eth_dev *dev); +void hns3_mp_req_stop_tx(struct rte_eth_dev *dev); + +int hns3_mp_init(struct rte_eth_dev *dev); +void hns3_mp_uninit(struct rte_eth_dev *dev); #endif /* _HNS3_MP_H_ */