]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_ip_frag/ip_frag_common.h
mbuf: switch vlan_tci and reserved2 fields
[dpdk.git] / lib / librte_ip_frag / ip_frag_common.h
index 81ca23a4d77152f4686d5524cff94723e1ea4b44..210f409d605101da68ce04617c7c6ed5940ccd06 100644 (file)
@@ -173,8 +173,7 @@ ip_frag_chain(struct rte_mbuf *mn, struct rte_mbuf *mp)
        struct rte_mbuf *ms;
 
        /* adjust start of the last fragment data. */
-       rte_pktmbuf_adj(mp, (uint16_t)(mp->vlan_macip.f.l2_len +
-               mp->vlan_macip.f.l3_len));
+       rte_pktmbuf_adj(mp, (uint16_t)(mp->l2_len + mp->l3_len));
 
        /* chain two fragments. */
        ms = rte_pktmbuf_lastseg(mn);