f-stack/dpdk/drivers/net/hns3/hns3_mp.h

23 lines
673 B
C
Raw Normal View History

2020-06-18 16:55:50 +00:00
/* SPDX-License-Identifier: BSD-3-Clause
2022-09-02 04:40:05 +00:00
* Copyright(c) 2018-2021 HiSilicon Limited.
2020-06-18 16:55:50 +00:00
*/
#ifndef _HNS3_MP_H_
#define _HNS3_MP_H_
2022-09-02 04:40:05 +00:00
/* 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. */
};
2020-06-18 16:55:50 +00:00
void hns3_mp_req_start_rxtx(struct rte_eth_dev *dev);
void hns3_mp_req_stop_rxtx(struct rte_eth_dev *dev);
2022-09-06 04:00:10 +00:00
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);
2020-06-18 16:55:50 +00:00
#endif /* _HNS3_MP_H_ */