From patchwork Mon Apr 10 13:28:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Eremin-Solenikov X-Patchwork-Id: 97166 Delivered-To: patch@linaro.org Received: by 10.182.246.10 with SMTP id xs10csp1355849obc; Mon, 10 Apr 2017 06:28:26 -0700 (PDT) X-Received: by 10.36.122.135 with SMTP id a129mr12270555itc.16.1491830906108; Mon, 10 Apr 2017 06:28:26 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id o80si7731195ito.126.2017.04.10.06.28.25; Mon, 10 Apr 2017 06:28:26 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 9B98063B50; Mon, 10 Apr 2017 13:28:25 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 7A09263A34; Mon, 10 Apr 2017 13:28:23 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 24F6D63DB1; Mon, 10 Apr 2017 13:28:21 +0000 (UTC) Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by lists.linaro.org (Postfix) with ESMTPS id E8B6663A2C for ; Mon, 10 Apr 2017 13:28:18 +0000 (UTC) Received: by mail-lf0-f48.google.com with SMTP id h125so70594665lfe.0 for ; Mon, 10 Apr 2017 06:28:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=6S2Lb0Tqvm8pn/ABl4N7M8HYa+BNv0qf2Q/pdtR78FQ=; b=iF873Nnqm4KgPVGkjDBkTvko4ma0r35IqjNVJm2DZt1o/7muRGOoVs8GoadofIyoZP Ag4nRsvserShdDJrVn1VcLyQO5GBc8S9LA5EH9h6hQUGXT3l2mBIQapA7ct7Et6L2rrt taabB+EjG4NbKRZy4Bd3GCiTNlod0bzwWJhSl6Zd3rA/eP2qdsN7r9KRUX7i/bcSiy32 QkJTLFamkMXKA5JBnu+RDGQw53o8wSCDU+MIF90uVqyNNn4/MFuauuHof0mCEKqRrf7s G3omFPLn2yAN++Wb6yJ2AFcOl1zXRKjduYlLLzLU+zXuZnW8pm7Tdmn2YuQxti3gh9wB tiUA== X-Gm-Message-State: AFeK/H3wRwF++dPCiTteUBUh+x6xH9M0EELFdusIRBPpUNGhHuTINS3PxHnMK6iLnYDPziBPZl55WMNy X-Received: by 10.46.84.7 with SMTP id i7mr15141500ljb.74.1491830897538; Mon, 10 Apr 2017 06:28:17 -0700 (PDT) Received: from forlindon.lumag.auriga.ru ([94.25.228.46]) by smtp.gmail.com with ESMTPSA id i1sm2901803ljd.47.2017.04.10.06.28.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Apr 2017 06:28:17 -0700 (PDT) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Mon, 10 Apr 2017 16:28:11 +0300 Message-Id: <20170410132811.19300-3-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170410132811.19300-1-dmitry.ereminsolenikov@linaro.org> References: <20170410132811.19300-1-dmitry.ereminsolenikov@linaro.org> Subject: [lng-odp] [PATCH 3/3] api: ipsec: add default queue for outbound events X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" If SA lookup fails for outbound IPsec packet in async mode, there is no way to report it back to application except using default queue (which does not exist at this moment). Signed-off-by: Dmitry Eremin-Solenikov --- include/odp/api/spec/ipsec.h | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.11.0 diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index 33a84eef..4e3ec16f 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -188,6 +188,13 @@ typedef struct odp_ipsec_inbound_config_t { * Configuration options for IPSEC outbound processing */ typedef struct odp_ipsec_outbound_config_t { + /** Default destination queue for IPSEC events + * + * When outbound SA lookup fails in the asynchronous mode, + * resulting IPSEC events are enqueued into this queue. + */ + odp_queue_t default_queue; + /** Flags to control L3/L4 checksum insertion as part of outbound * packet processing. Packet must have set with valid L3/L4 offsets. * Checksum configuration is ignored for packets that checksum cannot