Support packets in flight
[samplevnf.git] / VNFs / DPPD-PROX / prox_port_cfg.h
index 738ce86..82d58f7 100644 (file)
 #include <rte_ether.h>
 #include <rte_ethdev.h>
 #include <rte_version.h>
+#if RTE_VERSION >= RTE_VERSION_NUM(22,11,0,0)
+#include <bus_pci_driver.h>    // Please configure DPDK with meson option -Denable_driver_sdk=true
+#else
 #if RTE_VERSION >= RTE_VERSION_NUM(17,11,0,0)
 #include <rte_bus_pci.h>
 #endif
+#endif
 #include <rte_pci.h>
 
 #include "prox_compat.h"
@@ -57,7 +61,7 @@ struct prox_port_cfg {
        uint32_t  mtu;
        enum addr_type    type;
        prox_rte_ether_addr eth_addr;    /* port MAC address */
-       char names[PROX_MAX_VLAN_TAGS][MAX_NAME_SIZE];
+       char names[PROX_MAX_VLAN_TAGS][MAX_NAME_BUFFER_SIZE];
        char vdev[MAX_NAME_SIZE];
        char short_name[MAX_NAME_SIZE];
        char driver_name[MAX_NAME_SIZE];
@@ -88,8 +92,10 @@ struct prox_port_cfg {
        int fds[PROX_MAX_VLAN_TAGS];
        uint32_t vlan_tags[PROX_MAX_VLAN_TAGS];
        uint8_t is_vdev;
+       uint8_t virtual;
        uint8_t all_rx_queues;
        uint16_t n_vlans;
+       uint32_t v6_mask_length;
 };
 
 extern rte_atomic32_t lsc;