From patchwork Sat Jul 18 20:03:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 51252 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A19BE22A28 for ; Sat, 18 Jul 2015 20:05:45 +0000 (UTC) Received: by lbbvz8 with SMTP id vz8sf32188596lbb.2 for ; Sat, 18 Jul 2015 13:05:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=jKR3EYDzFzXW5GJ6E74S+NpxmRl6fYvU6Q55WwXmSB8=; b=LIiDW+uOchSTIrL2zKB5heuNm9YnJFS8wFv2voUEbiciUQfJN8fuAzw04ZGhr1pKcQ dOASIfecTioI5Zan2cHSNNKa9pcjLGLDwNsOP0ujy78PioNB/mBiKRQn5uLmsDW21RW6 KfNxpC64sOrmSSI1NRgQ3wzLTB15zrqvtaeIkF7zuOkEjiGkf4+Xujn8TJWjB4yRJtCs fdScyFkXnKT0iG1N8sXiTbMyTsc2oD2m2uEyifZH+NkPCNxFstwuhzwy65MQCs3hCZYK gDeDJlprMXc3lo43bZJ0hrWpKdPogCXyrlF8dhF6/oQX+NBe9zZkadup5l7X8WCTes07 gcJw== X-Gm-Message-State: ALoCoQmp9nIWEIm4H6p2JQ5cg6LqJ8mX8gazyzhOxwPU4vvU+srAgAlxsD53F7eUcfmzxoeqEc72 X-Received: by 10.152.179.136 with SMTP id dg8mr10852284lac.4.1437249944589; Sat, 18 Jul 2015 13:05:44 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.163 with SMTP id c3ls535671laa.98.gmail; Sat, 18 Jul 2015 13:05:44 -0700 (PDT) X-Received: by 10.152.204.43 with SMTP id kv11mr20352726lac.15.1437249944441; Sat, 18 Jul 2015 13:05:44 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id w5si13389471lal.105.2015.07.18.13.05.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2015 13:05:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by lagw2 with SMTP id w2so77185676lag.3 for ; Sat, 18 Jul 2015 13:05:43 -0700 (PDT) X-Received: by 10.152.9.66 with SMTP id x2mr939303laa.76.1437249943790; Sat, 18 Jul 2015 13:05:43 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp533936lbb; Sat, 18 Jul 2015 13:05:43 -0700 (PDT) X-Received: by 10.55.15.20 with SMTP id z20mr10677054qkg.16.1437249942553; Sat, 18 Jul 2015 13:05:42 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 40si18653346qkx.28.2015.07.18.13.05.41; Sat, 18 Jul 2015 13:05: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; Received: by lists.linaro.org (Postfix, from userid 109) id BE7AF61D21; Sat, 18 Jul 2015 20:05:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id B1E3C61CE5; Sat, 18 Jul 2015 20:05:03 +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 7628D61CEB; Sat, 18 Jul 2015 20:04:20 +0000 (UTC) Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by lists.linaro.org (Postfix) with ESMTPS id 44CC561D12 for ; Sat, 18 Jul 2015 20:03:58 +0000 (UTC) Received: by oigd21 with SMTP id d21so46320433oig.1 for ; Sat, 18 Jul 2015 13:03:57 -0700 (PDT) X-Received: by 10.60.34.104 with SMTP id y8mr19675752oei.77.1437249837888; Sat, 18 Jul 2015 13:03:57 -0700 (PDT) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by smtp.gmail.com with ESMTPSA id y5sm8537998oes.15.2015.07.18.13.03.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 18 Jul 2015 13:03:57 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Sat, 18 Jul 2015 15:03:38 -0500 Message-Id: <1437249827-578-4-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1437249827-578-1-git-send-email-bill.fischofer@linaro.org> References: <1437249827-578-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Cc: Barry Spinney Subject: [lng-odp] [RFC API-NEXT PATCH 03/12] api: packet: add new apis needed by tm X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bill.fischofer@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Barry Spinney Signed-off-by: Mike Holmes Signed-off-by: Bill Fischofer --- include/odp/api/packet_flags.h | 49 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/include/odp/api/packet_flags.h b/include/odp/api/packet_flags.h index bfbcc94..7aa6d59 100644 --- a/include/odp/api/packet_flags.h +++ b/include/odp/api/packet_flags.h @@ -327,6 +327,55 @@ void odp_packet_has_sctp_set(odp_packet_t pkt, int val); void odp_packet_has_icmp_set(odp_packet_t pkt, int val); /** + * Get packet color + * @param pkt Packet handle + * @return packet color + */ +odp_pkt_color_t odp_packet_color(odp_packet_t pkt); + +/** + * Set packet color + * + * @param pkt Packet handle + * @param color Color to set + */ +void odp_packet_color_set(odp_packet_t pkt, odp_pkt_color_t color); + +/** + * Get drop eligible status + * + * @oaram pkt Packet handle + * @return Packet drop eligibility status + * @retval 0 Packet is not drop eligible + * @retval 1 Packet is drop + */ +odp_bool_t odp_packet_drop_eligible(odp_packet_t pkt); + +/** + * Set drop eligible status + * + * @param pkt Packet handle + * @param status Drop eligibility status + */ +void odp_packet_drop_eligible_set(odp_packet_t pkt, odp_bool_t status); + +/** + * Get shaper length adjustment + * + * @param pkt Packet handle + * @return Shaper adjustment (-128..127) + */ +int8_t odp_packet_shaper_len_adjust(odp_packet_t pkt); + +/** + * Set shaper length adjustment + * + * @param pkt Packet handle + * @param adj Signed adjustment value + */ +void odp_packet_shaper_len_adjust_set(odp_packet_t pkt, int8_t adj); + +/** * @} */