From patchwork Tue Mar 10 17:04: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: 45603 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 9D90C214BF for ; Tue, 10 Mar 2015 17:05:06 +0000 (UTC) Received: by lbvn10 with SMTP id n10sf2566992lbv.1 for ; Tue, 10 Mar 2015 10:05:05 -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:from:to:date:message-id:in-reply-to :references: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=Zf7igSNWbE1raM2L6Dosz3e57wArFokIV+LGg0xWgmA=; b=e23x0zSNYBKUV687DUL2X8MDSvdg5OjTGw3p5lfhlKBCxaIs//z28g+w0dWXxDuKRv y3Y/eS5RTWXlBpK94+j1aNrMAAipNeVYd/sucHh+Arm3iJM1HJaceuYjDovgvdz8oGo3 G+GOrc/lg8Tmad2ixSxOoCN7b33DRo8ult8a+29QDXWiumkMy82kbz4GggRs9TYeykyC SLBFBqt2V01DGKoMDWw71jrNet/xJ+/tdTFig85tuF9bf6uFiA/ATYnm9I1NoMin8YrL KKXNM2JvDDiPuBYSwbcv4uMQxX7pcLehGOEVL7UVV+aIV2JQ/jd8R4wV/B6jnC7CCmJT E0dg== X-Gm-Message-State: ALoCoQndOI4pwdUMOO3VvO/SeNz7COHjQbfVQ0+A9WtIhwoDGpXxtA9V24l9g2uaOdiiZENlsq/g X-Received: by 10.194.236.196 with SMTP id uw4mr1755230wjc.5.1426007105548; Tue, 10 Mar 2015 10:05:05 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.194 with SMTP id a2ls47537lak.88.gmail; Tue, 10 Mar 2015 10:05:05 -0700 (PDT) X-Received: by 10.112.131.66 with SMTP id ok2mr28279446lbb.51.1426007105368; Tue, 10 Mar 2015 10:05:05 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id n6si642333laf.170.2015.03.10.10.05.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Mar 2015 10:05:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by lamq1 with SMTP id q1so3126767lam.12 for ; Tue, 10 Mar 2015 10:05:05 -0700 (PDT) X-Received: by 10.112.130.100 with SMTP id od4mr8540594lbb.86.1426007105281; Tue, 10 Mar 2015 10:05:05 -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.35.133 with SMTP id h5csp2262092lbj; Tue, 10 Mar 2015 10:05:04 -0700 (PDT) X-Received: by 10.236.105.180 with SMTP id k40mr32565229yhg.85.1426007103991; Tue, 10 Mar 2015 10:05:03 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id z9si511828yhc.117.2015.03.10.10.05.02 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 10 Mar 2015 10:05:03 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YVNaW-00008B-L5; Tue, 10 Mar 2015 17:05:00 +0000 Received: from mail-ob0-f179.google.com ([209.85.214.179]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YVNaN-00007l-9M for lng-odp@lists.linaro.org; Tue, 10 Mar 2015 17:04:51 +0000 Received: by obcuy5 with SMTP id uy5so3090618obc.11 for ; Tue, 10 Mar 2015 10:04:46 -0700 (PDT) X-Received: by 10.60.51.102 with SMTP id j6mr26541632oeo.34.1426007085975; Tue, 10 Mar 2015 10:04:45 -0700 (PDT) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id iy5sm656744obb.19.2015.03.10.10.04.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Mar 2015 10:04:45 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 10 Mar 2015 12:04:37 -0500 Message-Id: <1426007078-28326-2-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1426007078-28326-1-git-send-email-bill.fischofer@linaro.org> References: <1426007078-28326-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 2/3] linux-generic: packet: use odp_bool_t for packet flag APIs X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 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-bounces@lists.linaro.org 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.47 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: Bill Fischofer --- platform/linux-generic/odp_packet_flags.c | 36 +++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/platform/linux-generic/odp_packet_flags.c b/platform/linux-generic/odp_packet_flags.c index ab3d12f..8ec6b09 100644 --- a/platform/linux-generic/odp_packet_flags.c +++ b/platform/linux-generic/odp_packet_flags.c @@ -8,94 +8,94 @@ #include -int odp_packet_has_error(odp_packet_t pkt) +odp_bool_t odp_packet_has_error(odp_packet_t pkt) { return (odp_packet_hdr(pkt)->error_flags.all != 0); } /* Get Input Flags */ -int odp_packet_has_l2(odp_packet_t pkt) +odp_bool_t odp_packet_has_l2(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.l2; } -int odp_packet_has_l3(odp_packet_t pkt) +odp_bool_t odp_packet_has_l3(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.l3; } -int odp_packet_has_l4(odp_packet_t pkt) +odp_bool_t odp_packet_has_l4(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.l4; } -int odp_packet_has_eth(odp_packet_t pkt) +odp_bool_t odp_packet_has_eth(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.eth; } -int odp_packet_has_jumbo(odp_packet_t pkt) +odp_bool_t odp_packet_has_jumbo(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.jumbo; } -int odp_packet_has_vlan(odp_packet_t pkt) +odp_bool_t odp_packet_has_vlan(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.vlan; } -int odp_packet_has_vlan_qinq(odp_packet_t pkt) +odp_bool_t odp_packet_has_vlan_qinq(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.vlan_qinq; } -int odp_packet_has_arp(odp_packet_t pkt) +odp_bool_t odp_packet_has_arp(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.arp; } -int odp_packet_has_ipv4(odp_packet_t pkt) +odp_bool_t odp_packet_has_ipv4(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.ipv4; } -int odp_packet_has_ipv6(odp_packet_t pkt) +odp_bool_t odp_packet_has_ipv6(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.ipv6; } -int odp_packet_has_ipfrag(odp_packet_t pkt) +odp_bool_t odp_packet_has_ipfrag(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.ipfrag; } -int odp_packet_has_ipopt(odp_packet_t pkt) +odp_bool_t odp_packet_has_ipopt(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.ipopt; } -int odp_packet_has_ipsec(odp_packet_t pkt) +odp_bool_t odp_packet_has_ipsec(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.ipsec; } -int odp_packet_has_udp(odp_packet_t pkt) +odp_bool_t odp_packet_has_udp(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.udp; } -int odp_packet_has_tcp(odp_packet_t pkt) +odp_bool_t odp_packet_has_tcp(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.tcp; } -int odp_packet_has_sctp(odp_packet_t pkt) +odp_bool_t odp_packet_has_sctp(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.sctp; } -int odp_packet_has_icmp(odp_packet_t pkt) +odp_bool_t odp_packet_has_icmp(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.icmp; }