diff mbox series

[v2,2/4] api: packet: vxlan packet flag access function

Message ID 1513270810-29728-3-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v2,1/4] helper: add vxlan protocol header structure | expand

Commit Message

Github ODP bot Dec. 14, 2017, 5 p.m. UTC
From: Balasubramanian Manoharan <bala.manoharan@linaro.org>


adds odp_packet_has_vxlan() and odp_packet_has_vxlan_set() functions

Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>

---
/** 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 mbox series

Patch

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
  *