From patchwork Sat Jul 18 20:03:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 51253 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AB30022A28 for ; Sat, 18 Jul 2015 20:06:22 +0000 (UTC) Received: by lafd3 with SMTP id d3sf32964944laf.1 for ; Sat, 18 Jul 2015 13:06:21 -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=ACLf0jzCRJ6Qxg4nNS81FwCSkeEmC77zSLY/FX9GcMU=; b=B2DIjJ9JRL1ykn2979hGQ2uz66QiwBAsLjf1dUO5Vgjn5ld1zQlcm6OWkGLL9mRzV/ cT/3nSfMrJFKyz2awrJnFnoK5KBoZjCxU8aT9HHO+Kmy769g9IZOZT4h32UseJyeFfYt P2ev/u51/MZj4K2OZs6W0UEyuNRm8EfzuIbspKKmTbc8aFi+cQKa0t2PsVp1ZvXEtZu8 zh9qyVT/MssG3n+1Mec258cEEMnsodkbqprasyUbj8eidkWeUC/Dvzh4/NeQDkYypiXk xKw8iDeMTOyRUutKhCEqIu+SNc3HLbN0Wh9SAi2c8/nX1GDbOQk8z6jAHXgJ3mquhcmK 9sFQ== X-Gm-Message-State: ALoCoQmFN+QM86aLRg8P2SD2b3rqQaWaLW3mpzeN/OViRaMekJ7Rih/aYPpQI576lc1kl0268Hxa X-Received: by 10.112.122.12 with SMTP id lo12mr10830255lbb.5.1437249981600; Sat, 18 Jul 2015 13:06:21 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.165 with SMTP id p5ls538738lal.68.gmail; Sat, 18 Jul 2015 13:06:21 -0700 (PDT) X-Received: by 10.152.23.234 with SMTP id p10mr20330147laf.52.1437249981452; Sat, 18 Jul 2015 13:06:21 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id pp10si13391569lbc.132.2015.07.18.13.06.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2015 13:06:21 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by lagw2 with SMTP id w2so77189924lag.3 for ; Sat, 18 Jul 2015 13:06:21 -0700 (PDT) X-Received: by 10.152.36.161 with SMTP id r1mr20255419laj.88.1437249981327; Sat, 18 Jul 2015 13:06:21 -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 hn6csp534122lbb; Sat, 18 Jul 2015 13:06:20 -0700 (PDT) X-Received: by 10.140.146.83 with SMTP id 80mr29880618qhs.76.1437249980169; Sat, 18 Jul 2015 13:06:20 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 142si18609423qhr.18.2015.07.18.13.06.19; Sat, 18 Jul 2015 13:06:20 -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 3B61661CA6; Sat, 18 Jul 2015 20:06:19 +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 EFB2661D03; Sat, 18 Jul 2015 20:05:05 +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 93BF761CEB; Sat, 18 Jul 2015 20:04:21 +0000 (UTC) Received: from mail-oi0-f45.google.com (mail-oi0-f45.google.com [209.85.218.45]) by lists.linaro.org (Postfix) with ESMTPS id A266D61D10 for ; Sat, 18 Jul 2015 20:03:56 +0000 (UTC) Received: by oigd21 with SMTP id d21so46320249oig.1 for ; Sat, 18 Jul 2015 13:03:56 -0700 (PDT) X-Received: by 10.60.175.72 with SMTP id by8mr20073266oec.35.1437249836290; Sat, 18 Jul 2015 13:03:56 -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.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 18 Jul 2015 13:03:55 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Sat, 18 Jul 2015 15:03:37 -0500 Message-Id: <1437249827-578-3-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 02/12] linux-generic: packet: add typedef for packet color 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.51 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 --- platform/linux-generic/include/odp/plat/packet_types.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/platform/linux-generic/include/odp/plat/packet_types.h b/platform/linux-generic/include/odp/plat/packet_types.h index 45cb801..0e142bf 100644 --- a/platform/linux-generic/include/odp/plat/packet_types.h +++ b/platform/linux-generic/include/odp/plat/packet_types.h @@ -36,6 +36,15 @@ typedef ODP_HANDLE_T(odp_packet_seg_t); #define ODP_PACKET_SEG_INVALID _odp_cast_scalar(odp_packet_seg_t, 0xffffffff) +typedef enum { + PKT_GREEN = 0, + PKT_YELLOW = 1, + PKT_RED = 2, + PKT_ALL_COLORS = 3, +} odp_pkt_color_t; + +#define ODP_NUM_PKT_COLORS 3 + /** Get printable format of odp_packet_t */ static inline uint64_t odp_packet_to_u64(odp_packet_t hdl) {