From patchwork Fri Aug 10 09:00:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 143898 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3097236ljj; Fri, 10 Aug 2018 02:00:57 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy6XSbThxK/hWIdDIs1CUbV66/MAwII20Mz2p1modNymGT0TRzjkhfNAyEw9iLrrxgwcvxT X-Received: by 2002:ae9:dd45:: with SMTP id r66-v6mr4824210qkf.106.1533891657492; Fri, 10 Aug 2018 02:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533891657; cv=none; d=google.com; s=arc-20160816; b=odtyBv0jmmlCpjI0HK83rSKzaUN6KgEWPklY1CeDaIibHsGJj5mbyOQvjQUOBqCMSa hx2fyZL3vEPILJ76cTndJe90y8vZOcSDdvJ09G986kE4vpeSdHX8pw9lMF62Pd0dK0/+ 45QgX6mNpxQ/xtUbA6Crb8SeI/upBqeIikGXtcY2zOJvkiNPGg2tvjwwbNRkUKGIctrt HfGl787/kpHfGsgwm9w4wUucIKVqzag4rBDMICy76u7ElvYeGipbauj7gU7RTz6UguB2 Pz8ZsJAExWPfMgOnOL9cAG8MOK17JPsV7rd4lajadCJ2xnmX6A+yhEod++oaMPOUR1Xa JojQ== 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:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=s4O3heD9/F7rjdzLSryDnD4gWtEB3MtMM6VvRnsZbc0=; b=ztkTfMYX06LdPS+lVEGXFn8pXEN3ztznkzn1g1w5nkd2wAo0P6Ck9Ztrs5x7so5wW1 kzJzPLn6DyI/Gj6bX0P+S9DG7dmBmouP6k6K0Jdq5F6UorXczJWHCa3YsmmDBARs4RwA 3n+q0a1JtPxe5hYukGF2iSyP2JoikHj7q1MXcdeXHJ0IK75RWhHq/ZNiwy8ukN6Qpknc fmzp1hRSolGNHwOaGEK+pY6TIVwhMCtEmHt8JQYU0ebuxvfQVvaBHe1xnkPUnwE1oLFa VB5/dxvmHyKhlIq85cbzYql5kHoO1vZsLVH5Gsz/dpmLnQDYYIQGc2y4nEKGiBXXKYZk h9CQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id n38-v6si340049qvc.270.2018.08.10.02.00.57; Fri, 10 Aug 2018 02:00:57 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 0F6A26861A; Fri, 10 Aug 2018 09:00:57 +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=-3.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW 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 ADA45685CB; Fri, 10 Aug 2018 09:00:29 +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 BDA6E685CB; Fri, 10 Aug 2018 09:00:23 +0000 (UTC) Received: from forward101j.mail.yandex.net (forward101j.mail.yandex.net [5.45.198.241]) by lists.linaro.org (Postfix) with ESMTPS id B5102685CB for ; Fri, 10 Aug 2018 09:00:17 +0000 (UTC) Received: from mxback9o.mail.yandex.net (mxback9o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::23]) by forward101j.mail.yandex.net (Yandex) with ESMTP id 3E2AD1244CA0 for ; Fri, 10 Aug 2018 12:00:15 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback9o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id pxj3Bbjdnp-0ELCYExW; Fri, 10 Aug 2018 12:00:14 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id PXmhgUlAA5-0DHe9PtA; Fri, 10 Aug 2018 12:00:14 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 10 Aug 2018 09:00:11 +0000 Message-Id: <1533891612-393-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1533891612-393-1-git-send-email-odpbot@yandex.ru> References: <1533891612-393-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 660 Subject: [lng-odp] [PATCH API-NEXT v2 1/2] api: pktio: extend odp_pktin_queue_param_t to support per queue configuration 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" From: Bogdan Pricope Per queue configuration enables advanced usecases where input queues of the same interface may belong to different scheduler groups. Signed-off-by: Bogdan Pricope --- /** Email created from pull request 660 (bogdanPricope:api_next_pktin_queue_pr) ** https://github.com/Linaro/odp/pull/660 ** Patch: https://github.com/Linaro/odp/pull/660.patch ** Base sha: 9b2b5a9695ad66977c964c83691cd2fef4c45b85 ** Merge commit sha: b7a150ea4e9fe568e77d603f637ddb968838aec6 **/ include/odp/api/spec/packet_io.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/odp/api/spec/packet_io.h b/include/odp/api/spec/packet_io.h index a55c2678f..5d602c895 100644 --- a/include/odp/api/spec/packet_io.h +++ b/include/odp/api/spec/packet_io.h @@ -148,6 +148,17 @@ typedef enum odp_pktio_op_mode_t { } odp_pktio_op_mode_t; +/** + * Packet input queue parameters override + */ +typedef struct odp_pktin_queue_param_ovr_t { + /** Thread group + * + * This parameter is considered only when queue type is + * ODP_QUEUE_TYPE_SCHED. */ + odp_schedule_group_t group; +} odp_pktin_queue_param_ovr_t; + /** * Packet input queue parameters */ @@ -203,6 +214,13 @@ typedef struct odp_pktin_queue_param_t { * value is ignored. */ odp_queue_param_t queue_param; + /** Queue parameters override + * + * Overrides queue_param with per queue values. Must point to + * an array of num_queues elements or set to NULL to disable + * queue parameters override. The default value is NULL. + */ + odp_pktin_queue_param_ovr_t *queue_param_ovr; } odp_pktin_queue_param_t; /**