diff options
author | Xavier Simonart <xavier.simonart@intel.com> | 2018-10-27 16:26:26 +0200 |
---|---|---|
committer | Deepak S <deepak.s@linux.intel.com> | 2018-11-01 04:38:34 +0530 |
commit | 5d0595c955eb37af44b68098b6fd4f33f18e7755 (patch) | |
tree | a0319ae58232efecfa1bea9e7f361ed36ff0efec /VNFs/DPPD-PROX/defaults.c | |
parent | 2d8609495ff4a58ceae13746f067fec6b0d5cf03 (diff) |
Support for DPDK 18.05 and DPDK 18.08
Improve DPDK 18.05 support introduced by 3e532aca.
Support for DPDK 18.08.
Change-Id: Ide712ee94254b506a0ad88c95a7e01b789f99d48
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
Diffstat (limited to 'VNFs/DPPD-PROX/defaults.c')
-rw-r--r-- | VNFs/DPPD-PROX/defaults.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/VNFs/DPPD-PROX/defaults.c b/VNFs/DPPD-PROX/defaults.c index a6be0d7e..700b63ef 100644 --- a/VNFs/DPPD-PROX/defaults.c +++ b/VNFs/DPPD-PROX/defaults.c @@ -27,6 +27,7 @@ #include "etypes.h" #include "toeplitz.h" #include "handle_master.h" +#include "prox_compat.h" #define TEN_GIGABIT 1250000000 #define QUEUE_SIZES 128 @@ -46,14 +47,6 @@ static const struct rte_eth_conf default_port_conf = { .rxmode = { - .split_hdr_size = 0, - .header_split = 0, /* Header Split disabled */ - .hw_ip_checksum = 0, /* IP checksum offload disabled */ - .hw_vlan_filter = 0, /* VLAN filtering disabled */ - .hw_vlan_strip = 0, /* VLAN filtering disabled */ - .jumbo_frame = 0, /* Jumbo frame support disabled */ - .hw_strip_crc = 1, /* CRC stripped by hardware --- always set to 1 in VF */ - .hw_vlan_extend = 0, .mq_mode = 0, .max_rx_pkt_len = PROX_MTU + ETHER_HDR_LEN + ETHER_CRC_LEN }, @@ -184,5 +177,7 @@ void set_port_defaults(void) prox_port_cfg[i].rx_ring[0] = '\0'; prox_port_cfg[i].tx_ring[0] = '\0'; prox_port_cfg[i].mtu = PROX_MTU; + prox_port_cfg[i].requested_rx_offload = DEV_RX_OFFLOAD_CRC_STRIP; + prox_port_cfg[i].requested_tx_offload = DEV_TX_OFFLOAD_IPV4_CKSUM | DEV_TX_OFFLOAD_UDP_CKSUM; } } |