From patchwork Tue Mar 10 17:04:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 45602 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5C8DF214BF for ; Tue, 10 Mar 2015 17:05:02 +0000 (UTC) Received: by wggy19 with SMTP id y19sf2489794wgg.2 for ; Tue, 10 Mar 2015 10:05:01 -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: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=fMFb11B1WWekHp1MOoWYwuq8vLXujfs662B7VtqN7P4=; b=kM68tSWT5IXBFE7l58zy18nKgAECAZwqzaJjlYMky4G2D70cKjsJ2/JjVVbyj4B9as gkxqZSIci7OJqO4gbz7xwD5NjOr6rq3N5w2gP+QihOFADA6ryDj0X3pAPCERN5ftDBbe iXx2c6fdChN8nNX3SY+RCPxZFdicY/ho3VfZdRGNtZ8gELNy22sA+6KDEO9tHOL/xrwy 5xcUgZHWw0Ual6A+i+VO+/mTxUhACIzK3PA61LMFnTWCavVZOK4Mm9WLMDwqq9x0nJ/r j6fo4xn1QDlNBvRFrVEwA5zKO85L67OsjMecuWwEe63dRXVbXz6zfVdNTELI4F1zhAfO O7rw== X-Gm-Message-State: ALoCoQmfSzP0r1Zf5urR8Sj0Z8A1v3OfDiY9webpdlmOTHpTUuoPGfx5nnNw8wlhHsFWPoVQyTo4 X-Received: by 10.194.161.194 with SMTP id xu2mr4880169wjb.1.1426007101555; Tue, 10 Mar 2015 10:05:01 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.194 with SMTP id a2ls47526lak.88.gmail; Tue, 10 Mar 2015 10:05:01 -0700 (PDT) X-Received: by 10.112.162.232 with SMTP id yd8mr30791792lbb.41.1426007101390; Tue, 10 Mar 2015 10:05:01 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id e8si658600lam.148.2015.03.10.10.05.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Mar 2015 10:05:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbdu14 with SMTP id u14so3274001lbd.0 for ; Tue, 10 Mar 2015 10:05:01 -0700 (PDT) X-Received: by 10.112.181.41 with SMTP id dt9mr32111603lbc.56.1426007101110; Tue, 10 Mar 2015 10:05:01 -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 h5csp2262051lbj; Tue, 10 Mar 2015 10:05:00 -0700 (PDT) X-Received: by 10.170.213.138 with SMTP id e132mr15696492ykf.54.1426007099849; Tue, 10 Mar 2015 10:04:59 -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 k56si475091yhg.183.2015.03.10.10.04.58 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 10 Mar 2015 10:04:59 -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 1YVNaS-00007z-9G; Tue, 10 Mar 2015 17:04:56 +0000 Received: from mail-oi0-f47.google.com ([209.85.218.47]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YVNaM-00007k-Gg for lng-odp@lists.linaro.org; Tue, 10 Mar 2015 17:04:50 +0000 Received: by oigh136 with SMTP id h136so2827295oig.1 for ; Tue, 10 Mar 2015 10:04:45 -0700 (PDT) X-Received: by 10.60.98.132 with SMTP id ei4mr4964278oeb.81.1426007084513; Tue, 10 Mar 2015 10:04:44 -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.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Mar 2015 10:04:43 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Tue, 10 Mar 2015 12:04:36 -0500 Message-Id: <1426007078-28326-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Subject: [lng-odp] [PATCH 1/3] api: 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.217.171 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 --- include/odp/api/packet_flags.h | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/include/odp/api/packet_flags.h b/include/odp/api/packet_flags.h index b1e179e..88d6a19 100644 --- a/include/odp/api/packet_flags.h +++ b/include/odp/api/packet_flags.h @@ -35,7 +35,7 @@ extern "C" { * @retval 1 packet has errors * @retval 0 packet has no errors */ -int odp_packet_has_error(odp_packet_t pkt); +odp_bool_t odp_packet_has_error(odp_packet_t pkt); /** * Check for L2 header, e.g. ethernet @@ -44,7 +44,7 @@ int odp_packet_has_error(odp_packet_t pkt); * @retval 1 if packet contains a valid & known L2 header * @retval 0 if packet does not contain a valid & known L2 header */ -int odp_packet_has_l2(odp_packet_t pkt); +odp_bool_t odp_packet_has_l2(odp_packet_t pkt); /** * Check for L3 header, e.g. IPv4, IPv6 @@ -53,7 +53,7 @@ int odp_packet_has_l2(odp_packet_t pkt); * @retval 1 if packet contains a valid & known L3 header * @retval 0 if packet does not contain a valid & known L3 header */ -int odp_packet_has_l3(odp_packet_t pkt); +odp_bool_t odp_packet_has_l3(odp_packet_t pkt); /** * Check for L4 header, e.g. UDP, TCP, SCTP (also ICMP) @@ -62,7 +62,7 @@ int odp_packet_has_l3(odp_packet_t pkt); * @retval 1 if packet contains a valid & known L4 header * @retval 0 if packet does not contain a valid & known L4 header */ -int odp_packet_has_l4(odp_packet_t pkt); +odp_bool_t odp_packet_has_l4(odp_packet_t pkt); /** * Check for Ethernet header @@ -71,7 +71,7 @@ int odp_packet_has_l4(odp_packet_t pkt); * @retval 1 if packet contains a valid eth header * @retval 0 if packet does not contain a valid & known eth header */ -int odp_packet_has_eth(odp_packet_t pkt); +odp_bool_t odp_packet_has_eth(odp_packet_t pkt); /** * Check for jumbo frame @@ -80,7 +80,7 @@ int odp_packet_has_eth(odp_packet_t pkt); * @retval 1 if packet contains a jumbo frame * @retval 0 if packet does not contain a jumbo frame */ -int odp_packet_has_jumbo(odp_packet_t pkt); +odp_bool_t odp_packet_has_jumbo(odp_packet_t pkt); /** * Check for VLAN @@ -89,7 +89,7 @@ int odp_packet_has_jumbo(odp_packet_t pkt); * @retval 1 if packet contains a VLAN header * @retval 0 if packet does not contain a VLAN header */ -int odp_packet_has_vlan(odp_packet_t pkt); +odp_bool_t odp_packet_has_vlan(odp_packet_t pkt); /** * Check for VLAN QinQ (stacked VLAN) @@ -98,7 +98,7 @@ int odp_packet_has_vlan(odp_packet_t pkt); * @retval 1 if packet contains a VLAN QinQ header * @retval 0 if packet does not contain a VLAN QinQ header */ -int odp_packet_has_vlan_qinq(odp_packet_t pkt); +odp_bool_t odp_packet_has_vlan_qinq(odp_packet_t pkt); /** * Check for ARP @@ -107,7 +107,7 @@ int odp_packet_has_vlan_qinq(odp_packet_t pkt); * @retval 1 if packet contains an ARP message * @retval 0 if packet does not contain an ARP message */ -int odp_packet_has_arp(odp_packet_t pkt); +odp_bool_t odp_packet_has_arp(odp_packet_t pkt); /** * Check for IPv4 @@ -116,7 +116,7 @@ int odp_packet_has_arp(odp_packet_t pkt); * @retval 1 if packet contains an IPv4 header * @retval 0 if packet does not contain an IPv4 header */ -int odp_packet_has_ipv4(odp_packet_t pkt); +odp_bool_t odp_packet_has_ipv4(odp_packet_t pkt); /** * Check for IPv6 @@ -125,7 +125,7 @@ int odp_packet_has_ipv4(odp_packet_t pkt); * @retval 1 if packet contains an IPv6 header * @retval 0 if packet does not contain an IPv6 header */ -int odp_packet_has_ipv6(odp_packet_t pkt); +odp_bool_t odp_packet_has_ipv6(odp_packet_t pkt); /** * Check for IP fragment @@ -134,7 +134,7 @@ int odp_packet_has_ipv6(odp_packet_t pkt); * @retval 1 if packet is an IP fragment * @retval 0 if packet is not an IP fragment */ -int odp_packet_has_ipfrag(odp_packet_t pkt); +odp_bool_t odp_packet_has_ipfrag(odp_packet_t pkt); /** * Check for IP options @@ -143,7 +143,7 @@ int odp_packet_has_ipfrag(odp_packet_t pkt); * @retval 1 if packet contains IP options * @retval 0 if packet does not contain IP options */ -int odp_packet_has_ipopt(odp_packet_t pkt); +odp_bool_t odp_packet_has_ipopt(odp_packet_t pkt); /** * Check for IPSec @@ -152,7 +152,7 @@ int odp_packet_has_ipopt(odp_packet_t pkt); * @retval 1 if packet requires IPSec processing * @retval 0 if packet does not require IPSec processing */ -int odp_packet_has_ipsec(odp_packet_t pkt); +odp_bool_t odp_packet_has_ipsec(odp_packet_t pkt); /** * Check for UDP @@ -161,7 +161,7 @@ int odp_packet_has_ipsec(odp_packet_t pkt); * @retval 1 if packet contains a UDP header * @retval 0 if packet does not contain a UDP header */ -int odp_packet_has_udp(odp_packet_t pkt); +odp_bool_t odp_packet_has_udp(odp_packet_t pkt); /** * Check for TCP @@ -170,7 +170,7 @@ int odp_packet_has_udp(odp_packet_t pkt); * @retval 1 if packet contains a TCP header * @retval 0 if packet does not contain a TCP header */ -int odp_packet_has_tcp(odp_packet_t pkt); +odp_bool_t odp_packet_has_tcp(odp_packet_t pkt); /** * Check for SCTP @@ -179,7 +179,7 @@ int odp_packet_has_tcp(odp_packet_t pkt); * @retval 1 if packet contains a SCTP header * @retval 0 if packet does not contain a SCTP header */ -int odp_packet_has_sctp(odp_packet_t pkt); +odp_bool_t odp_packet_has_sctp(odp_packet_t pkt); /** * Check for ICMP @@ -188,7 +188,7 @@ int odp_packet_has_sctp(odp_packet_t pkt); * @retval 1 if packet contains an ICMP header * @retval 0 if packet does not contain an ICMP header */ -int odp_packet_has_icmp(odp_packet_t pkt); +odp_bool_t odp_packet_has_icmp(odp_packet_t pkt); /** * Set flag for L2 header, e.g. ethernet