From patchwork Thu Apr 27 11:51:48 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: 98282 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp55061qgf; Thu, 27 Apr 2017 04:52:51 -0700 (PDT) X-Received: by 10.36.185.5 with SMTP id w5mr36743ite.1.1493293971255; Thu, 27 Apr 2017 04:52:51 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id m1si10723930ite.122.2017.04.27.04.52.50; Thu, 27 Apr 2017 04:52:51 -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 9B04061FEB; Thu, 27 Apr 2017 11:52:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 13B4360DEC; Thu, 27 Apr 2017 11:52:24 +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 EF7E760D2E; Thu, 27 Apr 2017 11:51:57 +0000 (UTC) Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) by lists.linaro.org (Postfix) with ESMTPS id C587860844 for ; Thu, 27 Apr 2017 11:51:55 +0000 (UTC) Received: by mail-lf0-f43.google.com with SMTP id t144so15983145lff.1 for ; Thu, 27 Apr 2017 04:51:55 -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=Y6bZK9VaSE6bIC2bg3hRMetkAyKXt2szywV1WNB53tE=; b=bQzz4QnOQ/LrNbDNrC7Lt7SEg6rVjIQdgNidbahwKsFk1hBIxNivV8oawnN77GVWyf XmfIJ0Y9xJIsrs5mC6GtPdGOL3iGrsC4PH1hC1hYaHC7Zs2HIXnMBz8YDmJJMKpnsXoi wGzlZOhCxaOR/6jHJRN3uup+U4mm+8TNLeSpd8iiyEMXCvM5d7UtrqXyCuDrapUA+9K9 9Xt4FrNJ7oMQkPOUQ8ewkxhuETvbjhiwRoLntm1h2olJ4K8WQanw0R18C9lx/jpxP9og fOpxSx0JlQpC6NMMX0NP8XQ00Wqim9dIovDpPEbGwDcETFoA/BI+T1TYo7121FY0IE67 9lQw== X-Gm-Message-State: AN3rC/7XmHcRBhsHjyfM4z4wBMH6oVtsjDXQwiiPzh+YGvdCGm7C4F01 +gBIrvdfq7Xn2S9gpt4YE2gg X-Received: by 10.25.79.67 with SMTP id a3mr1755470lfk.173.1493293914333; Thu, 27 Apr 2017 04:51:54 -0700 (PDT) Received: from forlindon.lumag.auriga.ru ([94.25.229.39]) by smtp.gmail.com with ESMTPSA id 30sm425282lju.0.2017.04.27.04.51.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Apr 2017 04:51:53 -0700 (PDT) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Thu, 27 Apr 2017 14:51:48 +0300 Message-Id: <20170427115150.19452-2-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170427115150.19452-1-dmitry.ereminsolenikov@linaro.org> References: <20170427115150.19452-1-dmitry.ereminsolenikov@linaro.org> Subject: [lng-odp] [[RFCv2] 2/4] 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 an application has passed invalid SA 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 4f746f67..7f43e81c 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -190,6 +190,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 passed invalid SA 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