]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_gso/gso_common.h
mem: add external API to retrieve page fd
[dpdk.git] / lib / librte_gso / gso_common.h
index 5ca59745237bbbbbe288631d39421df4f73304a8..6cd764ff5f55df7b9a1e37e403a2dbb38225f622 100644 (file)
@@ -31,6 +31,9 @@
                (PKT_TX_TCP_SEG | PKT_TX_IPV4 | PKT_TX_OUTER_IPV4 | \
                 PKT_TX_TUNNEL_GRE))
 
+#define IS_IPV4_UDP(flag) (((flag) & (PKT_TX_UDP_SEG | PKT_TX_IPV4)) == \
+               (PKT_TX_UDP_SEG | PKT_TX_IPV4))
+
 /**
  * Internal function which updates the UDP header of a packet, following
  * segmentation. This is required to update the header's datagram length field.