From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 256BF1B1B3 for ; Wed, 24 Jan 2018 16:42:29 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id CD39D226A9; Wed, 24 Jan 2018 10:42:28 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:42:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=dkopiNiveKbS7RJu/ Vp2CDNOeESC+TgtgIEXgT3pL24=; b=WFz05kjWIgE0TjR1IWXI5Ddw2jdJmvMs0 XzMvSRnujEGiOYtJGQyc4/URRpDBSD2UnzTZIdA8mU8yPhrbVsvgV+JaxnqfKzoO NEkqONnx2+s/ruCqmH1whfXU2qsWZZmuMD/tszQDe7A4t94o52fMFHn3azC6h28Y wUGz83hivGWN8np1h8vszrxOwgxPjco2A0JqKnNoCC/XYGL6RwXZwIgYju6dF+v+ 76ON7f05WQLbe45TGeXOMkmnlLVGqjq5Oo6ciWTM2DDMkaDGkm4kxk7TPtmZx8Q7 7fdnM/i+Kd2CeAIzuEHmpY87hpjLYQr8fX0ogvEcEEsS8UbQyYPQg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=dkopiNiveKbS7RJu/Vp2CDNOeESC+TgtgIEXgT3pL24=; b=L4yuYQVc Ap/FieeN00334mc6CONgKqWRfWEaXlYn6AVz3Z9EOg4h6NJ1hJQEV4xUKqMR3UIK dL1jVWCXNBzXPaXtwSw8gQwi7dkLi72NNzODAIA/KY5UTgaAHv5yWbRqQAEElBws TUJ+cGyI6ddf3QEbDrEBFkS0W6AXW1UwvYcDOwHOTeu2z8C0FaFE5KkPew0mgdf9 LrmkXFblFP/xZaBIRTbiUeKwntboqaiSoljUQNNfC9v300YPmafrsNIrH2GXx7Ew mf293fBQ2WSZ+QAftjki9miJAcVLObQ+XNkQEbwr9iBaLNxd0nMNRi1KZ6ypoYRc p4muQEGior87IQ== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 9160F7E3D6; Wed, 24 Jan 2018 10:42:26 -0500 (EST) From: Yuanhan Liu To: =?UTF-8?q?N=C3=A9lio=20Laranjeiro?= Cc: Akhil Goyal , dpdk stable Date: Wed, 24 Jan 2018 23:33:35 +0800 Message-Id: <1516808026-25523-147-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'examples/ipsec-secgw: fix SPI byte order in flow item' has been queued to LTS release 17.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2018 15:42:29 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 9477de29e577995271663ca14a077da97efca404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9lio=20Laranjeiro?= Date: Thu, 11 Jan 2018 10:15:59 +0100 Subject: [PATCH] examples/ipsec-secgw: fix SPI byte order in flow item [ upstream commit 0bca1d26780e2cdbe03a2cf007839cbba8c830c8 ] SPI field is defined in the RFC2406 [1] as a big endian field it should be provided in its final form to the drivers through RTE flow. [1] https://tools.ietf.org/html/rfc2406 Fixes: ec17993a145a ("examples/ipsec-secgw: support security offload") Signed-off-by: Nelio Laranjeiro Acked-by: Akhil Goyal --- examples/ipsec-secgw/ipsec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c index 0797c2c..c850c7b 100644 --- a/examples/ipsec-secgw/ipsec.c +++ b/examples/ipsec-secgw/ipsec.c @@ -187,7 +187,7 @@ create_session(struct ipsec_ctx *ipsec_ctx, struct ipsec_sa *sa) sa->pattern[2].type = RTE_FLOW_ITEM_TYPE_ESP; sa->pattern[2].spec = &sa->esp_spec; sa->pattern[2].mask = &rte_flow_item_esp_mask; - sa->esp_spec.hdr.spi = sa->spi; + sa->esp_spec.hdr.spi = rte_cpu_to_be_32(sa->spi); sa->pattern[3].type = RTE_FLOW_ITEM_TYPE_END; -- 2.7.4