X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=VNFs%2FDPPD-PROX%2Fdefaults.c;h=61b4419935f8a8e5a37efc4df1dcdcbc10478a2f;hb=ae43633b258e3cf53013cfac4643146761f03b9d;hp=fce5c5c14e316ffe331c1e7152951f7fe3deb7d5;hpb=48f8c3d212644a33dd0abaaa1a0c71d4decaafdf;p=samplevnf.git 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; } }