From patchwork Thu Dec 14 17:00:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 121991 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp7062094qgn; Thu, 14 Dec 2017 09:01:12 -0800 (PST) X-Google-Smtp-Source: ACJfBouayz0aRG91lYS//QWHPJqfTln035dJbUkWW/Bxz3KRFJjGGD0LcIwvzUYdvqGfCRT6R1f3 X-Received: by 10.200.44.243 with SMTP id 48mr16171341qtx.99.1513270872523; Thu, 14 Dec 2017 09:01:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513270872; cv=none; d=google.com; s=arc-20160816; b=oaudCV+F+E1RuJT81SVAaaAmQSWIK0W/8BYheHi84tbw7yjjHGn04i6uF3wbRB0Odv WKROmMbtli7KCV185DVT1W5DyyE4CIW+vWO4PsbyH/MX60uVEXZRX/RkdDWoEPkVeUpg eqtwjikALgXEQxx7UKsbqk/5gRVXFV0GGDs00apK2XRas0UlrKHskak+1vCOVJmgOJKm MeVn6lKGMM1Yz+qq5rkiwQ5h+BA/A7AoCk7pueGv2g/sIFzzw712A1mfaXttgHaAkYDE KFAl3kWsMG7+9qiTWHUbzhl4g9kcPke9bxTTQdFn0hlkd8OCgO7p6dg+lbNreUQCEwGO ETDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=J0OgpzzGOCx3KRnVUJVu/AI3cH3fG4ubkALlw3QKGQ0=; b=GbuL1yBGqPXFKEQ671VBtQGUnOq72ehY61SqQHTwKsWbjDKK+k8SBdFK/Qk8htqJVM D4BXvqtYzSjNxrlDDwXwixkin/2JCtD9jrorHnzWMnxL9ocRg5fH0THY9O87emrTjLbW C7OdNEUh5hojwABDoxVA7xqcCMQRBAaIwj8KbPybx398/rOU6AXxg/IO3OvuchoeSNBD Rumxw1D5jQcbw4XQ+uZZT6IR6lt2QFSTr87VT6lxvd4S6eFGJMdDugK/s8YMHOD2UMB/ 4QQMlBtNp4Sqv2zvkor6lrFPUBtEV5YahTLxyhhlNmp+lP53rYr6+AQrvlHjoxKrRgxL oZ+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id n66si4899264qkh.382.2017.12.14.09.01.12; Thu, 14 Dec 2017 09:01:12 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 33B326098C; Thu, 14 Dec 2017 17:01:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 26D3E60966; Thu, 14 Dec 2017 17:00:24 +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 633FC60926; Thu, 14 Dec 2017 17:00:15 +0000 (UTC) Received: from forward104o.mail.yandex.net (forward104o.mail.yandex.net [37.140.190.179]) by lists.linaro.org (Postfix) with ESMTPS id 1978860918 for ; Thu, 14 Dec 2017 17:00:14 +0000 (UTC) Received: from mxback17j.mail.yandex.net (mxback17j.mail.yandex.net [IPv6:2a02:6b8:0:1619::93]) by forward104o.mail.yandex.net (Yandex) with ESMTP id A7975703907 for ; Thu, 14 Dec 2017 20:00:12 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback17j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id qmkXS7kgFc-0C0CPWDI; Thu, 14 Dec 2017 20:00:12 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id P3vbKkCfK1-0BrSHE4t; Thu, 14 Dec 2017 20:00:12 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Thu, 14 Dec 2017 20:00:08 +0300 Message-Id: <1513270810-29728-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513270810-29728-1-git-send-email-odpbot@yandex.ru> References: <1513270810-29728-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 345 Subject: [lng-odp] [PATCH v2 2/4] api: packet: vxlan packet flag access function X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Balasubramanian Manoharan adds odp_packet_has_vxlan() and odp_packet_has_vxlan_set() functions Signed-off-by: Balasubramanian Manoharan --- /** Email created from pull request 345 (bala-manoharan:BUG2903) ** https://github.com/Linaro/odp/pull/345 ** Patch: https://github.com/Linaro/odp/pull/345.patch ** Base sha: 6b5cdc77eb9759a2349b10372a964648559bc92c ** Merge commit sha: 65c561d30ea4c8c5f8ae17c2b407df9c6cc35f3d **/ include/odp/api/spec/packet_flags.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/odp/api/spec/packet_flags.h b/include/odp/api/spec/packet_flags.h index 377b75ba0..0954b9349 100644 --- a/include/odp/api/spec/packet_flags.h +++ b/include/odp/api/spec/packet_flags.h @@ -249,6 +249,14 @@ int odp_packet_has_ipsec(odp_packet_t pkt); */ int odp_packet_has_udp(odp_packet_t pkt); +/** Check for VxLAN + * + * @param pkt Packet handle + * @retval non-zero if packet contains VxLAN header + * @retval 0 if packet does not contain a VxLAN header + */ +int odp_packet_has_vxlan(odp_packet_t pkt); + /** * Check for TCP * @@ -441,6 +449,14 @@ void odp_packet_has_ipsec_set(odp_packet_t pkt, int val); */ void odp_packet_has_udp_set(odp_packet_t pkt, int val); +/** + * Set flag for VxLAN + * + * @param pkt Packet handle + * @param val Value + */ +void odp_packet_has_vxlan_set(odp_packet_t pkt, int val); + /** * Set flag for TCP *