From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by dpdk.org (Postfix) with ESMTP id 4662429D6 for ; Thu, 23 Nov 2017 16:12:36 +0100 (CET) Received: by mail-wm0-f68.google.com with SMTP id 9so17456850wme.4 for ; Thu, 23 Nov 2017 07:12:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=DBFlvqJrxn7NDSYtiMB8yjfMBOHDoSNu8jP9muyNoCg=; b=dr5ocNbzkfUZZ2Oc9cX9uyvmUaSZvX9sJ5zQHSgQxgYDYpQP3TcKSmLx7urCszSxxn PVtO1TT0FbwkU9UOm42oXNXJe2rTmR9leTLAOBB8nn7GbNubQ22A3YTsA/p1V/+slkR0 ucts0Q4JtbR2z7zIsh8+Mk28V5OYbO8d6YOMpSWiHfWqayhrnaJvXZA+ohjDRN5a05k0 /75yN4WmuTG7PEoMtlhoW77Vziv5hVcZg5y/p/JidRhyGmXjJsiSqyNSaEXZ6sKWh7Uk yfIq+nKI46dPRsT0I2vYnDFuVgjFcE/5oOZEAak9Gz7nIQbOf+0+ITcRKvLoX7OiZFyt J1qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=DBFlvqJrxn7NDSYtiMB8yjfMBOHDoSNu8jP9muyNoCg=; b=r+W5AaxmWOgRhNUJc8/R36IVxWuQcKDSbpCCMn1NB11aqpFyuCZNGz0oWx/ByflB4W fQierlj1DqcnRooIyPM6Vvt4YiVNboFoOobaKKo8AEpwXmDOGNLdQLbr8FTBAageJX0e OQfF9VlAIjZot3nQt/mkZEoA59ubmMBPrYFCA0fljdkeUO966hB+bgpPvn+/MfjKTZCg hLlcKgLLAksT4jJF/cwPshlLw8IePT6niduf8cXqwXc2F1xwHIdx3U2CFL2UoFx294qv W1l7m31SXI1cKGjZqFn4NU2Bch4LIkHIcsTZEQPrCC3CdJVx+TCUjd5Wb5U5zruuVL4b 0krQ== X-Gm-Message-State: AJaThX5vcAY271Em8YrEYxPXwmzvbRU18QJ5QocFv3VPtHWx1N9CqcrS j4VqJ2uH5fM2GZKPtYrGIE65 X-Google-Smtp-Source: AGs4zMb+PadG9NDzBvZRKIRgtL+YwqVTVnNAm2Sxidd1IoOCEMxLuwglO5R5w/4854hFkkvpEF/Xow== X-Received: by 10.80.172.162 with SMTP id x31mr36495026edc.253.1511449955928; Thu, 23 Nov 2017 07:12:35 -0800 (PST) Received: from laranjeiro-vm.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id i61sm13667463edc.32.2017.11.23.07.12.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Nov 2017 07:12:35 -0800 (PST) From: Nelio Laranjeiro To: Sergio Gonzalez Monroy , Radu Nicolau Cc: dev@dpdk.org, akhil.goyal@nxp.com Date: Thu, 23 Nov 2017 16:12:18 +0100 Message-Id: X-Mailer: git-send-email 2.11.0 Subject: [dpdk-dev] [PATCH 1/2] examples/ipsec-secgw: fix missing ingress flow attribute 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: Thu, 23 Nov 2017 15:12:36 -0000 Generic flow API have both direction bits, ingress and egress for rules which may work on both sides. Fixes: ec17993a145a ("examples/ipsec-secgw: support security offload") Cc: akhil.goyal@nxp.com Signed-off-by: Nelio Laranjeiro --- examples/ipsec-secgw/ipsec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c index ec8bf95e1..17bd7620d 100644 --- a/examples/ipsec-secgw/ipsec.c +++ b/examples/ipsec-secgw/ipsec.c @@ -205,6 +205,8 @@ create_session(struct ipsec_ctx *ipsec_ctx, struct ipsec_sa *sa) sa->attr.egress = (sa->direction == RTE_SECURITY_IPSEC_SA_DIR_EGRESS); + sa->attr.ingress = (sa->direction == + RTE_SECURITY_IPSEC_SA_DIR_INGRESS); sa->flow = rte_flow_create(sa->portid, &sa->attr, sa->pattern, sa->action, &err); if (sa->flow == NULL) { -- 2.11.0