From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id 4A0521B341 for ; Sun, 15 Oct 2017 14:55:05 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id f4so29200339wme.0 for ; Sun, 15 Oct 2017 05:55:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev-mellanox-co-il.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=uzK3VoF3XNUjQOqDjth59waDMVFIa+UOpgcAM6338OY=; b=luEscWIxuSXOQplE74tR2qDCWtg/DqY5sV8cB/MMmZkWXynPF0PMmNRSBQXmmlA0Ik cxIfhw8L9ea/jIJR2dAVs/vN+FBkOiU1JRCpTw31TGxq0q+aM15lXQ7JffmjTG9XE97x 5zfYNBILrQ/hxLbYntBCMK/tuhrJdsf8bckOW4v+yCljD2ooPaataXsMZXvSjsp3Fq2c LdQ22sm4qQWwe5kOcltuzICbdOS8XJ6G/qsDNpKHs6ZgADFeGAJf/5B2l4fNTIed0C0N dAgh3T65GPHdjClI+EvoKRyn+nxLROirxterSTn+cptMSUyNXeGu2bwvCPfOD6J3yPgm q09A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=uzK3VoF3XNUjQOqDjth59waDMVFIa+UOpgcAM6338OY=; b=VfpNwFgxPyZPjjppp/8CqDAaiWc634x2sf+wnyRXHt7UiFbWQB4Nc+EtMen9bI0Bjd 5bRg3qhrkn7DgTqYW3b1C68b+owZyR/C8TwNcvd42Y9zojPsTbds7IMU+dwnReJxyAnw o+ZEaemmbFaylVHYuOvJ6AxKym1DGQyssq73mu5SBbFBfYLfJ6YWQwuXNpxhkcS/6E4g N0VrSWfVsbuCKfuHu0/oYrlIQyA/yKiB7jVVy8Qz42vdxANgr9Wdf0TJ1cG8iMUn7O26 mhxcz/AE0qVnciimNudiDn6sHMOC9eB0MI/aj0csw55OHF4f8YkslPIdFD0pi05bcTwZ JBkQ== X-Gm-Message-State: AMCzsaVOZ13//JLso3CuYG5AIl9EH7g12utBUBqmiOLhVTW8Vdjr/sFx 4VczUV6PnjzwB+LTFgmQxqOaGA== X-Google-Smtp-Source: ABhQp+RairGZZ0eW+KUaNTtSue7be2vjDO0oScEBwUmXnY6b3cw7ALC4QQfXpc86rxmMWDF9DPqNMg== X-Received: by 10.28.88.71 with SMTP id m68mr4934247wmb.129.1508072105051; Sun, 15 Oct 2017 05:55:05 -0700 (PDT) Received: from [10.0.38.219] ([193.47.165.251]) by smtp.gmail.com with ESMTPSA id r44sm14300026wrb.37.2017.10.15.05.55.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Oct 2017 05:55:04 -0700 (PDT) To: dev@dpdk.org, sergio.gonzalez.monroy@intel.com, pablo.de.lara.guarch@intel.com, aviadye@mellanox.com Cc: borisp@mellanox.com, akhil.goyal@nxp.com, hemant.agrawal@nxp.com, radu.nicolau@intel.com, declan.doherty@intel.com, liranl@mellanox.com, nelio.laranjeiro@6wind.com, thomas@monjalon.net References: <1507987683-12315-1-git-send-email-aviadye@dev.mellanox.co.il> <1507987683-12315-5-git-send-email-aviadye@dev.mellanox.co.il> From: Aviad Yehezkel Message-ID: Date: Sun, 15 Oct 2017 15:55:01 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <1507987683-12315-5-git-send-email-aviadye@dev.mellanox.co.il> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [dpdk-dev] [PATCH 05/11] examples/ipsec-secgw: Fixed transport X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Oct 2017 12:55:05 -0000 On 10/14/2017 4:27 PM, aviadye@dev.mellanox.co.il wrote: > From: Aviad Yehezkel > > Seems like transport was broken for a long time > > Signed-off-by: Aviad Yehezkel > --- > examples/ipsec-secgw/esp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/examples/ipsec-secgw/esp.c b/examples/ipsec-secgw/esp.c > index 70bb81f..56ad7a0 100644 > --- a/examples/ipsec-secgw/esp.c > +++ b/examples/ipsec-secgw/esp.c > @@ -306,8 +306,8 @@ esp_outbound(struct rte_mbuf *m, struct ipsec_sa *sa, > sizeof(struct esp_hdr) + sa->iv_len); > memmove(new_ip, ip4, ip_hdr_len); > esp = (struct esp_hdr *)(new_ip + ip_hdr_len); > + ip4 = (struct ip *)new_ip; > if (likely(ip4->ip_v == IPVERSION)) { > - ip4 = (struct ip *)new_ip; > ip4->ip_p = IPPROTO_ESP; > ip4->ip_len = htons(rte_pktmbuf_data_len(m)); > } else { Tested-by: Aviad Yehezkel