From 065179e483396194c1aca067928a511a34573270 Mon Sep 17 00:00:00 2001 From: Radu Nicolau Date: Fri, 20 Oct 2017 10:30:20 +0100 Subject: [PATCH] examples/ipsec_secgw: switch to new offload API Signed-off-by: Radu Nicolau Acked-by: Pablo de Lara --- examples/ipsec-secgw/ipsec-secgw.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index d451b3debd..37274e8b49 100644 --- a/examples/ipsec-secgw/ipsec-secgw.c +++ b/examples/ipsec-secgw/ipsec-secgw.c @@ -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 = { -- 2.20.1