Specify latency bucket size & correct calculation
[samplevnf.git] / VNFs / DPPD-PROX / prox_port_cfg.h
index 455e2b2..6a02cf0 100644 (file)
@@ -32,6 +32,7 @@ enum addr_type {PROX_PORT_MAC_HW, PROX_PORT_MAC_SET, PROX_PORT_MAC_RAND};
 
 #define IPV4_CKSUM     1
 #define UDP_CKSUM      2
+#define NB_MCAST_ADDR  16
 
 struct prox_port_cfg {
        struct rte_mempool *pool[32];  /* Rx/Tx mempool */
@@ -49,6 +50,7 @@ struct prox_port_cfg {
        uint32_t n_txd;
        uint8_t  link_up;
        uint32_t  link_speed;
+       uint32_t  max_link_speed;
        uint32_t  mtu;
        enum addr_type    type;
        struct ether_addr eth_addr;    /* port MAC address */
@@ -61,9 +63,21 @@ struct prox_port_cfg {
        struct rte_eth_conf port_conf;
        struct rte_eth_rxconf rx_conf;
        struct rte_eth_txconf tx_conf;
+       uint64_t requested_rx_offload;
+       uint64_t requested_tx_offload;
+       uint64_t disabled_tx_offload;
+       struct rte_eth_dev_info dev_info;
        struct {
                int tx_offload_cksum;
        } capabilities;
+       uint32_t max_rx_pkt_len;
+       uint32_t min_rx_bufsize;
+       uint16_t min_rx_desc;
+       uint16_t max_rx_desc;
+       uint16_t min_tx_desc;
+       uint16_t max_tx_desc;
+       uint32_t nb_mc_addr;
+       struct ether_addr mc_addr[NB_MCAST_ADDR];
 };
 
 extern rte_atomic32_t lsc;