1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2017 Intel Corporation
8 /* Default setting on number of VSIs that VF can contain */
9 #define I40E_DEFAULT_VF_VSI_NUM 1
11 #define I40E_VIRTCHNL_OFFLOAD_CAPS ( \
12 VIRTCHNL_VF_OFFLOAD_L2 | \
13 VIRTCHNL_VF_OFFLOAD_VLAN | \
14 VIRTCHNL_VF_OFFLOAD_RSS_PF | \
15 VIRTCHNL_VF_OFFLOAD_RX_POLLING)
17 struct virtchnl_vlan_offload_info {
19 uint8_t enable_vlan_strip;
24 * Macro to calculate the memory size for configuring VSI queues
25 * via virtual channel.
27 #define I40E_VIRTCHNL_CONFIG_VSI_QUEUES_SIZE(x, n) \
28 (sizeof(*(x)) + sizeof((x)->qpair[0]) * (n))
30 int i40e_pf_host_vf_reset(struct i40e_pf_vf *vf, bool do_hw_reset);
31 void i40e_pf_host_handle_vf_msg(struct rte_eth_dev *dev,
32 uint16_t abs_vf_id, uint32_t opcode,
34 uint8_t *msg, uint16_t msglen);
35 int i40e_pf_host_init(struct rte_eth_dev *dev);
36 int i40e_pf_host_uninit(struct rte_eth_dev *dev);
37 void i40e_notify_vf_link_status(struct rte_eth_dev *dev,
38 struct i40e_pf_vf *vf);
40 #endif /* _I40E_PF_H_ */