X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fice%2Fice_dcf_ethdev.h;h=e7c9d7fe414adb874876abfef6a0e16e14124a5c;hb=b7e8781de768adc13d5fee0cf13cbfaf2a18017b;hp=b54528beaed2c42dea9545b2186d81d8f8267037;hpb=aa6c5845fb72e34794ee2acef65e982f61a0f4af;p=dpdk.git diff --git a/drivers/net/ice/ice_dcf_ethdev.h b/drivers/net/ice/ice_dcf_ethdev.h index b54528beae..e7c9d7fe41 100644 --- a/drivers/net/ice/ice_dcf_ethdev.h +++ b/drivers/net/ice/ice_dcf_ethdev.h @@ -17,9 +17,39 @@ struct ice_dcf_queue { uint64_t dummy; }; +struct ice_dcf_repr_info { + struct rte_eth_dev *vf_rep_eth_dev; +}; + struct ice_dcf_adapter { struct ice_adapter parent; /* Must be first */ struct ice_dcf_hw real_hw; + + int num_reprs; + struct ice_dcf_repr_info *repr_infos; +}; + +struct ice_dcf_vf_repr_param { + struct rte_eth_dev *dcf_eth_dev; + uint16_t switch_domain_id; + uint16_t vf_id; +}; + +struct ice_dcf_vlan { + bool port_vlan_ena; + bool stripping_ena; + + uint16_t tpid; + uint16_t vid; +}; + +struct ice_dcf_vf_repr { + struct rte_eth_dev *dcf_eth_dev; + struct rte_ether_addr mac_addr; + uint16_t switch_domain_id; + uint16_t vf_id; + + struct ice_dcf_vlan outer_vlan_info; /* DCF always handle outer VLAN */ }; void ice_dcf_handle_pf_event_msg(struct ice_dcf_hw *dcf_hw, @@ -27,4 +57,9 @@ void ice_dcf_handle_pf_event_msg(struct ice_dcf_hw *dcf_hw, int ice_dcf_init_parent_adapter(struct rte_eth_dev *eth_dev); void ice_dcf_uninit_parent_adapter(struct rte_eth_dev *eth_dev); +int ice_dcf_vf_repr_init(struct rte_eth_dev *vf_rep_eth_dev, void *init_param); +int ice_dcf_vf_repr_uninit(struct rte_eth_dev *vf_rep_eth_dev); +int ice_dcf_vf_repr_init_vlan(struct rte_eth_dev *vf_rep_eth_dev); +void ice_dcf_vf_repr_stop_all(struct ice_dcf_adapter *dcf_adapter); + #endif /* _ICE_DCF_ETHDEV_H_ */