diff options
author | Xavier Simonart <xavier.simonart@intel.com> | 2019-06-28 16:56:26 +0200 |
---|---|---|
committer | Patrice Buriez <patrice.buriez@intel.com> | 2019-10-10 11:55:44 +0000 |
commit | ae43633b258e3cf53013cfac4643146761f03b9d (patch) | |
tree | a241771c2609ea8656041d50a37322069ff89da2 /VNFs/DPPD-PROX/defaults.c | |
parent | da4e41a67cca12cc4160a66ca46a37889137fa1e (diff) |
Update PROX to CRC STRIP default bahavior change in DPDK
Change-Id: I7c3e2981692d823c86787b77d61190327d6448e4
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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/defaults.c b/VNFs/DPPD-PROX/defaults.c index fce5c5c1..61b44199 100644 --- a/VNFs/DPPD-PROX/defaults.c +++ b/VNFs/DPPD-PROX/defaults.c @@ -178,7 +178,12 @@ 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; + + // CRC_STRIP becoming the default behavior in DPDK 18.08, and + // DEV_RX_OFFLOAD_CRC_STRIP define has been deleted +#if defined (DEV_RX_OFFLOAD_CRC_STRIP) prox_port_cfg[i].requested_rx_offload = DEV_RX_OFFLOAD_CRC_STRIP; +#endif prox_port_cfg[i].requested_tx_offload = DEV_TX_OFFLOAD_IPV4_CKSUM | DEV_TX_OFFLOAD_UDP_CKSUM; } } |