From patchwork Fri Jun 16 11:48:27 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: 105715 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp1261311qgd; Fri, 16 Jun 2017 04:48:42 -0700 (PDT) X-Received: by 10.237.34.39 with SMTP id n36mr12215915qtc.29.1497613722078; Fri, 16 Jun 2017 04:48:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497613722; cv=none; d=google.com; s=arc-20160816; b=oC77ue24DvXSXXQFPxxxUtt0FF8biJQvzxaZ6sHYD1U4Hi1zlnr0NoHe9rF72lLvqt LiQtQWsWjr2PgrEaRSFrdnH4yF7NCLB9YshE7xp0nNY1Ec4PWXPFHfVv4bUTyrC+RRIc qYoySoW4wOt//HccL+lU1CxgWV8XGnbJ/4R3KK6u734FuN4r1jpCIZv5T03EfEL33cSa p3qYxFbeU3qlGRn+/jGrWYi6nddfV59pqD5cmwKeQ5WnQZUtJzt3QZQYDdQfdH9LDVUA kNBrI5YZdgGKp5/SwDdB33Nb0LOEX2zahpKHnfzeInViRbk5tQbGuMd0bPifSi+F03wB fcFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:message-id:date:to:from :delivered-to:arc-authentication-results; bh=3Kfvvx9MZW254X1iadcWIEETeM3lrBqqzcUk2JNVpOg=; b=VOSFw4MolgMRcAxMSB7QS/44ZnyU/r3krEUuf3WRkubX5T/QkY58t+41Noo/zcwVlr dkU7Xz9FxjXe4Zi+SMauip5ww4aQPWUDEijaZq08aug2QmwTGRNm6ccq+2oazthqiUde QQVsQTBKuFbgyoPKbGNuWtrbKGOA3XfoDva+L0pZbMszQsUR5hXRy/J/86lJyqGl1k2F OTQ07rDFoAoDp6tRQaierRLEnXEuTeEvy6lm5jL/GyTy4F2sA1ocMxHttpE502q0b/BZ Q0uch1JnJbfGzZNgYz/N+PPYVAmi1cJxzfif22hpN7r8CY4qVOQeH/wX4rQMjBaQM0CP xg2Q== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id q7si1782691qkl.315.2017.06.16.04.48.41; Fri, 16 Jun 2017 04:48:42 -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 6207560C3E; Fri, 16 Jun 2017 11:48:41 +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 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 99FAF60C2D; Fri, 16 Jun 2017 11:48:36 +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 D7A7D60C2D; Fri, 16 Jun 2017 11:48:33 +0000 (UTC) Received: from mail-lf0-f47.google.com (mail-lf0-f47.google.com [209.85.215.47]) by lists.linaro.org (Postfix) with ESMTPS id 0AB5660C24 for ; Fri, 16 Jun 2017 11:48:33 +0000 (UTC) Received: by mail-lf0-f47.google.com with SMTP id v20so24025930lfa.1 for ; Fri, 16 Jun 2017 04:48:32 -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; bh=3Kfvvx9MZW254X1iadcWIEETeM3lrBqqzcUk2JNVpOg=; b=V0AZBUHUPChvp5ulLGPCQJTJFC0fR/2U18mQrx7Qf1QHvqY8LxiEchycp79tAr1sdG nNiYkRNEtuBTwTcjr0Itcm72VFZvtLJ24Kp7txbJUH8w7UTk9D4Ym53LaWCtI4FjErtm Km2G1TubObU09A0flAi2T6Bk7bMwA9XS30c3gwY5H7pW0uEwAldFXBvXlN6ggd+inc/T U/cONqi0SkT2twx9/M85xztMHe+NMRFeRGAHyiSzbGiSEDbnrafB7dl8G7XRntUdeORe Jd2j88oAT9+5ALoRYK5q330FmiTa0NrAgAV8FQxT25ZUegmw8KC9oiciJLmo/Qyd7Wvz rcsQ== X-Gm-Message-State: AKS2vOyDSGk4a6FEO5pAW6LL5lOmVLN2VEoOq0mGXVZjouE3feFY4so1 d9j5uP7r8/Ed2TyfWstqD4l1 X-Received: by 10.25.204.83 with SMTP id c80mr2990446lfg.107.1497613711508; Fri, 16 Jun 2017 04:48:31 -0700 (PDT) Received: from forlindon.lumag.auriga.ru ([188.162.64.160]) by smtp.gmail.com with ESMTPSA id h85sm415915ljh.21.2017.06.16.04.48.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Jun 2017 04:48:30 -0700 (PDT) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Fri, 16 Jun 2017 14:48:27 +0300 Message-Id: <20170616114829.3261-1-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [lng-odp] [PATCH API-NEXT v3 0/2] event subtype implementation 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" Applies on top of [API-NEXT PATCH v2 0/3] IPSEC packet event These patches provide event subtype implementation and tests. Ideally they should be merged together with event subtypes API definitions. Changes since v2: - Validate odp_event_types() implementation - Validate CRYPTO_COMPL event type and subtype Changes since v1: - Implement odp_event_types() - Update event subtype properly in odp_crypto.c Dmitry Eremin-Solenikov (2): linux-generic: events subtype implementation validation: test correctness of events subtype implementation .../linux-generic/include/odp_buffer_inlines.h | 2 + .../linux-generic/include/odp_buffer_internal.h | 3 ++ platform/linux-generic/odp_crypto.c | 15 ++++--- platform/linux-generic/odp_event.c | 15 +++++++ platform/linux-generic/odp_packet.c | 1 + platform/linux-generic/odp_pool.c | 11 +++++ test/common_plat/validation/api/buffer/buffer.c | 50 ++++++++++++++++------ .../validation/api/crypto/odp_crypto_test_inp.c | 14 ++++++ test/common_plat/validation/api/packet/packet.c | 21 ++++++++- test/common_plat/validation/api/timer/timer.c | 32 ++++++++++++-- 10 files changed, 140 insertions(+), 24 deletions(-) -- 2.11.0 Reviewed-by: Petri Savolainen