From patchwork Mon Nov 17 22:59:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 40978 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F314B21F5F for ; Mon, 17 Nov 2014 22:59:57 +0000 (UTC) Received: by mail-wg0-f69.google.com with SMTP id k14sf2908292wgh.0 for ; Mon, 17 Nov 2014 14:59:57 -0800 (PST) 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:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=H3PyxVAGxmezORMD7utSdsTnMZ48NUvXOU7MkOW/L1o=; b=eLXW5ywpNu4zAjg+Y+oJktaiK/InLUz5OQRMUd3x5aWp6m3OdePTOTApUBrXx87SD9 Aocr5iz9haBTWE5fszw2YWJRqIa2PsRnSnhkVB4/By5jf8nlIeXP8gEFwE1qtdV7Ij8P eYiezm6CTkUUAdbVrNuhIxvbFO7uGSDU18YHKSe2ZrygNBQUDfcYcm1zSmiRFkzd+z9n jsQ6At0mh+s1FcEN1s2xmd1E/WXong8TOmr2qK4pwVo2d1udeO0t1/GzjoRtkGyWgIHs oro9Z5SW+R6hBkfYs1s96UMQTLqKsxCcImYRFUU/KXSiLikn2ogVNeFeJ10g6r/GgISb FOFA== X-Gm-Message-State: ALoCoQnlu1DNjEAOw3m7nkuO1zQ+0qGFYV8RLS9bapRD7yqCyWYNpY36GC5PN3mJpjU8+Tzi0Z+l X-Received: by 10.152.88.98 with SMTP id bf2mr14495699lab.1.1416265197246; Mon, 17 Nov 2014 14:59:57 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.232 with SMTP id m8ls511545laa.45.gmail; Mon, 17 Nov 2014 14:59:56 -0800 (PST) X-Received: by 10.112.63.70 with SMTP id e6mr13886231lbs.93.1416265196967; Mon, 17 Nov 2014 14:59:56 -0800 (PST) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id xs11si46705451lac.7.2014.11.17.14.59.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Nov 2014 14:59:56 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by mail-la0-f43.google.com with SMTP id q1so189271lam.2 for ; Mon, 17 Nov 2014 14:59:56 -0800 (PST) X-Received: by 10.112.45.102 with SMTP id l6mr2158655lbm.46.1416265196474; Mon, 17 Nov 2014 14:59:56 -0800 (PST) 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.184.201 with SMTP id ew9csp1244976lbc; Mon, 17 Nov 2014 14:59:55 -0800 (PST) X-Received: by 10.224.97.72 with SMTP id k8mr38871672qan.25.1416265195187; Mon, 17 Nov 2014 14:59:55 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id t98si65964420qga.109.2014.11.17.14.59.54 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 17 Nov 2014 14:59:55 -0800 (PST) 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 1XqVGz-0008Iv-2J; Mon, 17 Nov 2014 22:59:53 +0000 Received: from mail-ob0-f174.google.com ([209.85.214.174]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XqVGp-0008Id-7c for lng-odp@lists.linaro.org; Mon, 17 Nov 2014 22:59:43 +0000 Received: by mail-ob0-f174.google.com with SMTP id uz6so16372281obc.5 for ; Mon, 17 Nov 2014 14:59:38 -0800 (PST) X-Received: by 10.60.98.33 with SMTP id ef1mr3884243oeb.62.1416265177984; Mon, 17 Nov 2014 14:59:37 -0800 (PST) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id wk3sm5285552obc.3.2014.11.17.14.59.37 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Nov 2014 14:59:37 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Mon, 17 Nov 2014 16:59:27 -0600 Message-Id: <1416265167-2611-2-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1416265167-2611-1-git-send-email-bill.fischofer@linaro.org> References: <1416265167-2611-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 2/2] Uplevel odp_packet_flags.h and implementation to ODP v1.0 level 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.43 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 This patch implements the specified odp_packet_flags.h API name changes for ODP v1.0. Signed-off-by: Bill Fischofer --- .../linux-generic/include/api/odp_packet_flags.h | 70 +++++++++++----------- platform/linux-generic/odp_packet_flags.c | 70 +++++++++++----------- 2 files changed, 70 insertions(+), 70 deletions(-) diff --git a/platform/linux-generic/include/api/odp_packet_flags.h b/platform/linux-generic/include/api/odp_packet_flags.h index ccaa04f..6e5d394 100644 --- a/platform/linux-generic/include/api/odp_packet_flags.h +++ b/platform/linux-generic/include/api/odp_packet_flags.h @@ -50,7 +50,7 @@ int odp_packet_errflag_frame_len(odp_packet_t pkt); * @param pkt Packet handle * @return 1 if packet contains a valid & known L2 header, 0 otherwise */ -int odp_packet_inflag_l2(odp_packet_t pkt); +int odp_packet_has_l2(odp_packet_t pkt); /** * Check for L3 header, e.g. IPv4, IPv6 @@ -58,7 +58,7 @@ int odp_packet_inflag_l2(odp_packet_t pkt); * @param pkt Packet handle * @return 1 if packet contains a valid & known L3 header, 0 otherwise */ -int odp_packet_inflag_l3(odp_packet_t pkt); +int odp_packet_has_l3(odp_packet_t pkt); /** * Check for L4 header, e.g. UDP, TCP, SCTP (also ICMP) @@ -66,7 +66,7 @@ int odp_packet_inflag_l3(odp_packet_t pkt); * @param pkt Packet handle * @return 1 if packet contains a valid & known L4 header, 0 otherwise */ -int odp_packet_inflag_l4(odp_packet_t pkt); +int odp_packet_has_l4(odp_packet_t pkt); /** * Check for Ethernet header @@ -74,7 +74,7 @@ int odp_packet_inflag_l4(odp_packet_t pkt); * @param pkt Packet handle * @return 1 if packet contains a valid eth header, 0 otherwise */ -int odp_packet_inflag_eth(odp_packet_t pkt); +int odp_packet_has_eth(odp_packet_t pkt); /** * Check for jumbo frame @@ -82,7 +82,7 @@ int odp_packet_inflag_eth(odp_packet_t pkt); * @param pkt Packet handle * @return 1 if packet contains jumbo frame, 0 otherwise */ -int odp_packet_inflag_jumbo(odp_packet_t pkt); +int odp_packet_has_jumbo(odp_packet_t pkt); /** * Check for VLAN @@ -90,7 +90,7 @@ int odp_packet_inflag_jumbo(odp_packet_t pkt); * @param pkt Packet handle * @return 1 if packet contains a VLAN header, 0 otherwise */ -int odp_packet_inflag_vlan(odp_packet_t pkt); +int odp_packet_has_vlan(odp_packet_t pkt); /** * Check for VLAN QinQ (stacked VLAN) @@ -98,7 +98,7 @@ int odp_packet_inflag_vlan(odp_packet_t pkt); * @param pkt Packet handle * @return 1 if packet contains a VLAN QinQ header, 0 otherwise */ -int odp_packet_inflag_vlan_qinq(odp_packet_t pkt); +int odp_packet_has_vlan_qinq(odp_packet_t pkt); /** * Check for ARP @@ -106,7 +106,7 @@ int odp_packet_inflag_vlan_qinq(odp_packet_t pkt); * @param pkt Packet handle * @return 1 if packet contains an ARP header, 0 otherwise */ -int odp_packet_inflag_arp(odp_packet_t pkt); +int odp_packet_has_arp(odp_packet_t pkt); /** * Check for IPv4 @@ -114,7 +114,7 @@ int odp_packet_inflag_arp(odp_packet_t pkt); * @param pkt Packet handle * @return 1 if packet contains an IPv4 header, 0 otherwise */ -int odp_packet_inflag_ipv4(odp_packet_t pkt); +int odp_packet_has_ipv4(odp_packet_t pkt); /** * Check for IPv6 @@ -122,7 +122,7 @@ int odp_packet_inflag_ipv4(odp_packet_t pkt); * @param pkt Packet handle * @return 1 if packet contains an IPv6 header, 0 otherwise */ -int odp_packet_inflag_ipv6(odp_packet_t pkt); +int odp_packet_has_ipv6(odp_packet_t pkt); /** * Check for IP fragment @@ -130,7 +130,7 @@ int odp_packet_inflag_ipv6(odp_packet_t pkt); * @param pkt Packet handle * @return 1 if packet is an IP fragment, 0 otherwise */ -int odp_packet_inflag_ipfrag(odp_packet_t pkt); +int odp_packet_has_ipfrag(odp_packet_t pkt); /** * Check for IP options @@ -138,7 +138,7 @@ int odp_packet_inflag_ipfrag(odp_packet_t pkt); * @param pkt Packet handle * @return 1 if packet contains IP options, 0 otherwise */ -int odp_packet_inflag_ipopt(odp_packet_t pkt); +int odp_packet_has_ipopt(odp_packet_t pkt); /** * Check for IPSec @@ -146,7 +146,7 @@ int odp_packet_inflag_ipopt(odp_packet_t pkt); * @param pkt Packet handle * @return 1 if packet requires IPSec processing, 0 otherwise */ -int odp_packet_inflag_ipsec(odp_packet_t pkt); +int odp_packet_has_ipsec(odp_packet_t pkt); /** * Check for UDP @@ -154,7 +154,7 @@ int odp_packet_inflag_ipsec(odp_packet_t pkt); * @param pkt Packet handle * @return 1 if packet contains a UDP header, 0 otherwise */ -int odp_packet_inflag_udp(odp_packet_t pkt); +int odp_packet_has_udp(odp_packet_t pkt); /** * Check for TCP @@ -162,7 +162,7 @@ int odp_packet_inflag_udp(odp_packet_t pkt); * @param pkt Packet handle * @return 1 if packet contains a TCP header, 0 otherwise */ -int odp_packet_inflag_tcp(odp_packet_t pkt); +int odp_packet_has_tcp(odp_packet_t pkt); /** * Check for SCTP @@ -170,7 +170,7 @@ int odp_packet_inflag_tcp(odp_packet_t pkt); * @param pkt Packet handle * @return 1 if packet contains an SCTP header, 0 otherwise */ -int odp_packet_inflag_sctp(odp_packet_t pkt); +int odp_packet_has_sctp(odp_packet_t pkt); /** * Check for ICMP @@ -178,14 +178,14 @@ int odp_packet_inflag_sctp(odp_packet_t pkt); * @param pkt Packet handle * @return 1 if packet contains an ICMP header, 0 otherwise */ -int odp_packet_inflag_icmp(odp_packet_t pkt); +int odp_packet_has_icmp(odp_packet_t pkt); /** * Request L4 checksum calculation * * @param pkt Packet handle */ -void odp_packet_outflag_l4_chksum(odp_packet_t pkt); +void odp_packet_override_l4_chksum(odp_packet_t pkt); /** * Set flag for L2 header, e.g. ethernet @@ -193,7 +193,7 @@ void odp_packet_outflag_l4_chksum(odp_packet_t pkt); * @param pkt Packet handle * @param val Value */ -void odp_packet_set_inflag_l2(odp_packet_t pkt, int val); +void odp_packet_set_has_l2(odp_packet_t pkt, int val); /** * Set flag for L3 header, e.g. IPv4, IPv6 @@ -201,7 +201,7 @@ void odp_packet_set_inflag_l2(odp_packet_t pkt, int val); * @param pkt Packet handle * @param val Value */ -void odp_packet_set_inflag_l3(odp_packet_t pkt, int val); +void odp_packet_set_has_l3(odp_packet_t pkt, int val); /** * Set flag for L4 header, e.g. UDP, TCP, SCTP (also ICMP) @@ -209,7 +209,7 @@ void odp_packet_set_inflag_l3(odp_packet_t pkt, int val); * @param pkt Packet handle * @param val Value */ -void odp_packet_set_inflag_l4(odp_packet_t pkt, int val); +void odp_packet_set_has_l4(odp_packet_t pkt, int val); /** * Set flag for Ethernet header @@ -217,7 +217,7 @@ void odp_packet_set_inflag_l4(odp_packet_t pkt, int val); * @param pkt Packet handle * @param val Value */ -void odp_packet_set_inflag_eth(odp_packet_t pkt, int val); +void odp_packet_set_has_eth(odp_packet_t pkt, int val); /** * Set flag for jumbo frame @@ -225,7 +225,7 @@ void odp_packet_set_inflag_eth(odp_packet_t pkt, int val); * @param pkt Packet handle * @param val Value */ -void odp_packet_set_inflag_jumbo(odp_packet_t pkt, int val); +void odp_packet_set_has_jumbo(odp_packet_t pkt, int val); /** * Set flag for VLAN @@ -233,7 +233,7 @@ void odp_packet_set_inflag_jumbo(odp_packet_t pkt, int val); * @param pkt Packet handle * @param val Value */ -void odp_packet_set_inflag_vlan(odp_packet_t pkt, int val); +void odp_packet_set_has_vlan(odp_packet_t pkt, int val); /** * Set flag for VLAN QinQ (stacked VLAN) @@ -241,7 +241,7 @@ void odp_packet_set_inflag_vlan(odp_packet_t pkt, int val); * @param pkt Packet handle * @param val Value */ -void odp_packet_set_inflag_vlan_qinq(odp_packet_t pkt, int val); +void odp_packet_set_has_vlan_qinq(odp_packet_t pkt, int val); /** * Set flag for ARP @@ -249,7 +249,7 @@ void odp_packet_set_inflag_vlan_qinq(odp_packet_t pkt, int val); * @param pkt Packet handle * @param val Value */ -void odp_packet_set_inflag_arp(odp_packet_t pkt, int val); +void odp_packet_set_has_arp(odp_packet_t pkt, int val); /** * Set flag for IPv4 @@ -257,7 +257,7 @@ void odp_packet_set_inflag_arp(odp_packet_t pkt, int val); * @param pkt Packet handle * @param val Value */ -void odp_packet_set_inflag_ipv4(odp_packet_t pkt, int val); +void odp_packet_set_has_ipv4(odp_packet_t pkt, int val); /** * Set flag for IPv6 @@ -265,7 +265,7 @@ void odp_packet_set_inflag_ipv4(odp_packet_t pkt, int val); * @param pkt Packet handle * @param val Value */ -void odp_packet_set_inflag_ipv6(odp_packet_t pkt, int val); +void odp_packet_set_has_ipv6(odp_packet_t pkt, int val); /** * Set flag for IP fragment @@ -273,7 +273,7 @@ void odp_packet_set_inflag_ipv6(odp_packet_t pkt, int val); * @param pkt Packet handle * @param val Value */ -void odp_packet_set_inflag_ipfrag(odp_packet_t pkt, int val); +void odp_packet_set_has_ipfrag(odp_packet_t pkt, int val); /** * Set flag for IP options @@ -281,7 +281,7 @@ void odp_packet_set_inflag_ipfrag(odp_packet_t pkt, int val); * @param pkt Packet handle * @param val Value */ -void odp_packet_set_inflag_ipopt(odp_packet_t pkt, int val); +void odp_packet_set_has_ipopt(odp_packet_t pkt, int val); /** * Set flag for IPSec @@ -289,7 +289,7 @@ void odp_packet_set_inflag_ipopt(odp_packet_t pkt, int val); * @param pkt Packet handle * @param val Value */ -void odp_packet_set_inflag_ipsec(odp_packet_t pkt, int val); +void odp_packet_set_has_ipsec(odp_packet_t pkt, int val); /** * Set flag for UDP @@ -297,7 +297,7 @@ void odp_packet_set_inflag_ipsec(odp_packet_t pkt, int val); * @param pkt Packet handle * @param val Value */ -void odp_packet_set_inflag_udp(odp_packet_t pkt, int val); +void odp_packet_set_has_udp(odp_packet_t pkt, int val); /** * Set flag for TCP @@ -305,7 +305,7 @@ void odp_packet_set_inflag_udp(odp_packet_t pkt, int val); * @param pkt Packet handle * @param val Value */ -void odp_packet_set_inflag_tcp(odp_packet_t pkt, int val); +void odp_packet_set_has_tcp(odp_packet_t pkt, int val); /** * Set flag for SCTP @@ -313,7 +313,7 @@ void odp_packet_set_inflag_tcp(odp_packet_t pkt, int val); * @param pkt Packet handle * @param val Value */ -void odp_packet_set_inflag_sctp(odp_packet_t pkt, int val); +void odp_packet_set_has_sctp(odp_packet_t pkt, int val); /** * Set flag for ICMP @@ -321,7 +321,7 @@ void odp_packet_set_inflag_sctp(odp_packet_t pkt, int val); * @param pkt Packet handle * @param val Value */ -void odp_packet_set_inflag_icmp(odp_packet_t pkt, int val); +void odp_packet_set_has_icmp(odp_packet_t pkt, int val); /** * @} diff --git a/platform/linux-generic/odp_packet_flags.c b/platform/linux-generic/odp_packet_flags.c index 06fdeed..81622f7 100644 --- a/platform/linux-generic/odp_packet_flags.c +++ b/platform/linux-generic/odp_packet_flags.c @@ -22,181 +22,181 @@ int odp_packet_errflag_frame_len(odp_packet_t pkt) /* Get Input Flags */ -int odp_packet_inflag_l2(odp_packet_t pkt) +int odp_packet_has_l2(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.l2; } -int odp_packet_inflag_l3(odp_packet_t pkt) +int odp_packet_has_l3(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.l3; } -int odp_packet_inflag_l4(odp_packet_t pkt) +int odp_packet_has_l4(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.l4; } -int odp_packet_inflag_eth(odp_packet_t pkt) +int odp_packet_has_eth(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.eth; } -int odp_packet_inflag_jumbo(odp_packet_t pkt) +int odp_packet_has_jumbo(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.jumbo; } -int odp_packet_inflag_vlan(odp_packet_t pkt) +int odp_packet_has_vlan(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.vlan; } -int odp_packet_inflag_vlan_qinq(odp_packet_t pkt) +int odp_packet_has_vlan_qinq(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.vlan_qinq; } -int odp_packet_inflag_arp(odp_packet_t pkt) +int odp_packet_has_arp(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.arp; } -int odp_packet_inflag_ipv4(odp_packet_t pkt) +int odp_packet_has_ipv4(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.ipv4; } -int odp_packet_inflag_ipv6(odp_packet_t pkt) +int odp_packet_has_ipv6(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.ipv6; } -int odp_packet_inflag_ipfrag(odp_packet_t pkt) +int odp_packet_has_ipfrag(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.ipfrag; } -int odp_packet_inflag_ipopt(odp_packet_t pkt) +int odp_packet_has_ipopt(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.ipopt; } -int odp_packet_inflag_ipsec(odp_packet_t pkt) +int odp_packet_has_ipsec(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.ipsec; } -int odp_packet_inflag_udp(odp_packet_t pkt) +int odp_packet_has_udp(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.udp; } -int odp_packet_inflag_tcp(odp_packet_t pkt) +int odp_packet_has_tcp(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.tcp; } -int odp_packet_inflag_sctp(odp_packet_t pkt) +int odp_packet_has_sctp(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.sctp; } -int odp_packet_inflag_icmp(odp_packet_t pkt) +int odp_packet_has_icmp(odp_packet_t pkt) { return odp_packet_hdr(pkt)->input_flags.icmp; } /* Set Output Flags */ -void odp_packet_outflag_l4_chksum(odp_packet_t pkt) +void odp_packet_override_l4_chksum(odp_packet_t pkt) { odp_packet_hdr(pkt)->output_flags.l4_chksum = 1; } /* Set Input Flags */ -void odp_packet_set_inflag_l2(odp_packet_t pkt, int val) +void odp_packet_set_has_l2(odp_packet_t pkt, int val) { odp_packet_hdr(pkt)->input_flags.l2 = val; } -void odp_packet_set_inflag_l3(odp_packet_t pkt, int val) +void odp_packet_set_has_l3(odp_packet_t pkt, int val) { odp_packet_hdr(pkt)->input_flags.l3 = val; } -void odp_packet_set_inflag_l4(odp_packet_t pkt, int val) +void odp_packet_set_has_l4(odp_packet_t pkt, int val) { odp_packet_hdr(pkt)->input_flags.l4 = val; } -void odp_packet_set_inflag_eth(odp_packet_t pkt, int val) +void odp_packet_set_has_eth(odp_packet_t pkt, int val) { odp_packet_hdr(pkt)->input_flags.eth = val; } -void odp_packet_set_inflag_jumbo(odp_packet_t pkt, int val) +void odp_packet_set_has_jumbo(odp_packet_t pkt, int val) { odp_packet_hdr(pkt)->input_flags.jumbo = val; } -void odp_packet_set_inflag_vlan(odp_packet_t pkt, int val) +void odp_packet_set_has_vlan(odp_packet_t pkt, int val) { odp_packet_hdr(pkt)->input_flags.vlan = val; } -void odp_packet_set_inflag_vlan_qinq(odp_packet_t pkt, int val) +void odp_packet_set_has_vlan_qinq(odp_packet_t pkt, int val) { odp_packet_hdr(pkt)->input_flags.vlan_qinq = val; } -void odp_packet_set_inflag_arp(odp_packet_t pkt, int val) +void odp_packet_set_has_arp(odp_packet_t pkt, int val) { odp_packet_hdr(pkt)->input_flags.arp = val; } -void odp_packet_set_inflag_ipv4(odp_packet_t pkt, int val) +void odp_packet_set_has_ipv4(odp_packet_t pkt, int val) { odp_packet_hdr(pkt)->input_flags.ipv4 = val; } -void odp_packet_set_inflag_ipv6(odp_packet_t pkt, int val) +void odp_packet_set_has_ipv6(odp_packet_t pkt, int val) { odp_packet_hdr(pkt)->input_flags.ipv6 = val; } -void odp_packet_set_inflag_ipfrag(odp_packet_t pkt, int val) +void odp_packet_set_has_ipfrag(odp_packet_t pkt, int val) { odp_packet_hdr(pkt)->input_flags.ipfrag = val; } -void odp_packet_set_inflag_ipopt(odp_packet_t pkt, int val) +void odp_packet_set_has_ipopt(odp_packet_t pkt, int val) { odp_packet_hdr(pkt)->input_flags.ipopt = val; } -void odp_packet_set_inflag_ipsec(odp_packet_t pkt, int val) +void odp_packet_set_has_ipsec(odp_packet_t pkt, int val) { odp_packet_hdr(pkt)->input_flags.ipsec = val; } -void odp_packet_set_inflag_udp(odp_packet_t pkt, int val) +void odp_packet_set_has_udp(odp_packet_t pkt, int val) { odp_packet_hdr(pkt)->input_flags.udp = val; } -void odp_packet_set_inflag_tcp(odp_packet_t pkt, int val) +void odp_packet_set_has_tcp(odp_packet_t pkt, int val) { odp_packet_hdr(pkt)->input_flags.tcp = val; } -void odp_packet_set_inflag_sctp(odp_packet_t pkt, int val) +void odp_packet_set_has_sctp(odp_packet_t pkt, int val) { odp_packet_hdr(pkt)->input_flags.sctp = val; } -void odp_packet_set_inflag_icmp(odp_packet_t pkt, int val) +void odp_packet_set_has_icmp(odp_packet_t pkt, int val) { odp_packet_hdr(pkt)->input_flags.icmp = val; }