]> git.droids-corp.org - dpdk.git/blobdiff - examples/l3fwd-power/main.c
mbuf: remove the rte_pktmbuf structure
[dpdk.git] / examples / l3fwd-power / main.c
index 57fc3716b2cf041495111d245447b11944580c3c..a9d5c80bc0e837fe3b215d354f713cdaebeed9f4 100644 (file)
@@ -687,7 +687,7 @@ l3fwd_simple_forward(struct rte_mbuf *m, uint8_t portid,
 
 #ifdef DO_RFC_1812_CHECKS
                /* Check to make sure the packet is valid (RFC1812) */
-               if (is_valid_ipv4_pkt(ipv4_hdr, m->pkt.pkt_len) < 0) {
+               if (is_valid_ipv4_pkt(ipv4_hdr, m->pkt_len) < 0) {
                        rte_pktmbuf_free(m);
                        return;
                }