fix VXLAN acronym
[dpdk.git] / lib / librte_pmd_i40e / i40e_ethdev.h
index c801345..a315adf 100644 (file)
 #define I40E_FLAG_HEADER_SPLIT_DISABLED (1ULL << 4)
 #define I40E_FLAG_HEADER_SPLIT_ENABLED  (1ULL << 5)
 #define I40E_FLAG_FDIR                  (1ULL << 6)
+#define I40E_FLAG_VXLAN                 (1ULL << 7)
 #define I40E_FLAG_ALL (I40E_FLAG_RSS | \
                       I40E_FLAG_DCB | \
                       I40E_FLAG_VMDQ | \
                       I40E_FLAG_SRIOV | \
                       I40E_FLAG_HEADER_SPLIT_DISABLED | \
                       I40E_FLAG_HEADER_SPLIT_ENABLED | \
-                      I40E_FLAG_FDIR)
+                      I40E_FLAG_FDIR | \
+                      I40E_FLAG_VXLAN)
 
 #define I40E_RSS_OFFLOAD_ALL ( \
        ETH_RSS_NONF_IPV4_UDP | \
@@ -246,6 +248,10 @@ struct i40e_pf {
        uint16_t vmdq_nb_qps; /* The number of queue pairs of VMDq */
        uint16_t vf_nb_qps; /* The number of queue pairs of VF */
        uint16_t fdir_nb_qps; /* The number of queue pairs of Flow Director */
+
+       /* store VXLAN UDP ports */
+       uint16_t vxlan_ports[I40E_MAX_PF_UDP_OFFLOAD_PORTS];
+       uint16_t vxlan_bitmap; /* Vxlan bit mask */
 };
 
 enum pending_msg {
@@ -283,6 +289,8 @@ struct i40e_vf_tx_queues {
  * Structure to store private data specific for VF instance.
  */
 struct i40e_vf {
+       struct i40e_adapter *adapter; /* The adapter this VF associate to */
+       struct rte_eth_dev_data *dev_data; /* Pointer to the device data */
        uint16_t num_queue_pairs;
        uint16_t max_pkt_len; /* Maximum packet length */
        bool promisc_unicast_enabled;
@@ -393,6 +401,10 @@ i40e_get_vsi_from_adapter(struct i40e_adapter *adapter)
 #define I40E_PF_TO_ADAPTER(pf) \
        ((struct i40e_adapter *)pf->adapter)
 
+/* I40E_VF_TO */
+#define I40E_VF_TO_HW(vf) \
+       (&(((struct i40e_vf *)vf)->adapter->hw))
+
 static inline void
 i40e_init_adminq_parameter(struct i40e_hw *hw)
 {