]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_net/rte_ip.h
bus/dpaa: check flag in qman multi enqueue
[dpdk.git] / lib / librte_net / rte_ip.h
index 9a62ff6670904025236875b2bbda35c28f56f883..f32684c661e0d2ebb955fad3d4b877ce50c82a87 100644 (file)
@@ -344,6 +344,12 @@ struct ipv6_hdr {
        uint8_t  dst_addr[16]; /**< IP address of destination host(s). */
 } __attribute__((__packed__));
 
+/* IPv6 vtc_flow: IPv / TC / flow_label */
+#define IPV6_HDR_FL_SHIFT 0
+#define IPV6_HDR_TC_SHIFT 20
+#define IPV6_HDR_FL_MASK ((1u << IPV6_HDR_TC_SHIFT) - 1)
+#define IPV6_HDR_TC_MASK (0xf << IPV6_HDR_TC_SHIFT)
+
 /**
  * Process the pseudo-header checksum of an IPv6 header.
  *