examples/ipsec_secgw: switch to new offload API
authorRadu Nicolau <radu.nicolau@intel.com>
Fri, 20 Oct 2017 09:30:20 +0000 (10:30 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 25 Oct 2017 16:11:00 +0000 (18:11 +0200)
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
examples/ipsec-secgw/ipsec-secgw.c

index d451b3d..37274e8 100644 (file)
@@ -204,11 +204,9 @@ static struct rte_eth_conf port_conf = {
                .mq_mode        = ETH_MQ_RX_RSS,
                .max_rx_pkt_len = ETHER_MAX_LEN,
                .split_hdr_size = 0,
-               .header_split   = 0, /**< Header Split disabled */
-               .hw_ip_checksum = 1, /**< IP checksum offload enabled */
-               .hw_vlan_filter = 0, /**< VLAN filtering disabled */
-               .jumbo_frame    = 0, /**< Jumbo Frame Support disabled */
-               .hw_strip_crc   = 1, /**< CRC stripped by hardware */
+               .offloads = DEV_RX_OFFLOAD_CHECKSUM |
+                           DEV_RX_OFFLOAD_CRC_STRIP,
+               .ignore_offload_bitfield = 1,
        },
        .rx_adv_conf = {
                .rss_conf = {