From patchwork Mon Aug 20 08: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: 144549 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3666448ljj; Mon, 20 Aug 2018 01:02:06 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxSQYmY3s+uN8yDtSZAi9G3MX+B/oyTbcUArwsiXhIBO98oTAIGPO7skRR9lk1n4PeYqrtB X-Received: by 2002:a37:2e06:: with SMTP id u6-v6mr40625336qkh.89.1534752126631; Mon, 20 Aug 2018 01:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534752126; cv=none; d=google.com; s=arc-20160816; b=BeB41P1SabvqFbSyJCLCY3vJLGxQuj9Fn/9AlQ6FRI7FBd/ZC13zhl6muvpbf9Bb0S CIdQlBydsZ/OKEk9PzcxGplMOw0biRhx88wqKAV2o9jEbd72ORtaG0Y0Tgcqop/Q7ZjR MtEKCbfoG/16IGO5GtIg5N2JWvrOMiSHxNh5fxKhdYIp1aqdY4KKBV333qPaUb0LcHsm HAFiN+DELIaQdo+0UrOwCJjZ1tjmPkvq9nwnS2iiRIOnf5fvO3IAcCzBN1V2eYwXsxA6 lLMlQA2pqfSdBSDBd5VCgRWDeO4ljTIPUiIFOs93gd2jalL5t/wzBYDKkpLDEqALlcFV G92g== 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=XhL5eWZu9hfEVPclHn77eCUcIaKXkWrCA8YYkzTTukI=; b=PvFYbdplr37LUQA5XytOywegcSbLakwT6Q0V+ZXGGHTLJY3O/Qb4xwLjGwwOO9P9PF n/doKQgzhSJIIbVC7+17rPtXh7CCQLcoKpnypwCU4h6lUsc4F5W1nrUYvg5mhWwx45D4 i+v2i4fl2DtrfLDgs/0oAa08Aj8gdKk4xZ2WLme3ZEhlN7Gx5EodYMHLB0zKhid95keV BnxJubrNyZLgGbyLMMnG2PZNbaX3HqjqRcWQsG4GVzABXPeqQOJt2p3qoeo1FD4GeH3W fyU5zNsakCLdx5JKHEGNmrMJ3lQ/wLU/s6NzzY+qOHZPg8w+R9AC3Zo6ZT4A0+TQwLOq msrA== 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 p5-v6si37596qtq.88.2018.08.20.01.02.06; Mon, 20 Aug 2018 01:02:06 -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 5181A6863A; Mon, 20 Aug 2018 08:02:06 +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 D862B607FB; Mon, 20 Aug 2018 08:00:57 +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 B31076104F; Mon, 20 Aug 2018 08:00:52 +0000 (UTC) Received: from forward105j.mail.yandex.net (forward105j.mail.yandex.net [5.45.198.248]) by lists.linaro.org (Postfix) with ESMTPS id 3CBEE685FE for ; Mon, 20 Aug 2018 08:00:19 +0000 (UTC) Received: from mxback1o.mail.yandex.net (mxback1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1b]) by forward105j.mail.yandex.net (Yandex) with ESMTP id 151CB185F7E for ; Mon, 20 Aug 2018 11:00:15 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback1o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id nZisAdwY6O-0EUerl3h; Mon, 20 Aug 2018 11:00:15 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id FyCEzR1gpc-0Ep43EdK; Mon, 20 Aug 2018 11: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: Mon, 20 Aug 2018 08:00:11 +0000 Message-Id: <1534752012-14928-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534752012-14928-1-git-send-email-odpbot@yandex.ru> References: <1534752012-14928-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 660 Subject: [lng-odp] [PATCH API-NEXT v3 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: 2722279b31b075586551801eb2860687ff966ea8 ** Merge commit sha: 7b311bb5354307530b9e27d0d6febddb1de2b8f5 **/ include/odp/api/spec/packet_io.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/include/odp/api/spec/packet_io.h b/include/odp/api/spec/packet_io.h index a55c2678f..d3e1d405f 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 { + /** Override for schedule group in odp_schedule_param_t + * + * 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,18 @@ typedef struct odp_pktin_queue_param_t { * value is ignored. */ odp_queue_param_t queue_param; + /** Queue parameters override + * + * When the override array is defined, the same parameter value + * in 'queue_param' is ignored and these per queue parameter + * values are used instead. Array elements are used in order + * (i.e. the first queue gets parameters from the first array + * element, etc). + * Must point to an array of num_queues elements or 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; /**