From mboxrd@z Thu Jan 1 00:00:00 1970 From: Radu Nicolau Subject: [PATCH v4 1/2] examples/ipsec_secgw: switched to new offload API Date: Fri, 20 Oct 2017 10:30:20 +0100 Message-ID: <1508491821-2204-1-git-send-email-radu.nicolau@intel.com> References: <1508428699-24363-1-git-send-email-radu.nicolau@intel.com> Cc: sergio.gonzalez.monroy@intel.com, pablo.de.lara.guarch@intel.com, aviadye@dev.mellanox.co.il, Radu Nicolau To: dev@dpdk.org Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 89C441B1EE for ; Fri, 20 Oct 2017 11:34:23 +0200 (CEST) In-Reply-To: <1508428699-24363-1-git-send-email-radu.nicolau@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Radu Nicolau --- v2: updated commit message v3: addressed feedback v4: split in 2 patches 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 d451b3d..37274e8 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.7.5