X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Ftep_termination%2Fvxlan.c;h=9f0e8362faeb79968bcdcb5904e979fe9b92b8b9;hb=c018d2b49d2fc033c5f28075249317809e7f60f4;hp=109e93aa83b1271a7e0a7b12f59879c6436a590a;hpb=39f84786a23897596c42124c4416fc443bc9b688;p=dpdk.git diff --git a/examples/tep_termination/vxlan.c b/examples/tep_termination/vxlan.c index 109e93aa83..9f0e8362fa 100644 --- a/examples/tep_termination/vxlan.c +++ b/examples/tep_termination/vxlan.c @@ -221,7 +221,7 @@ encapsulation(struct rte_mbuf *m, uint8_t queue_id) /* copy in IP header */ ip = rte_memcpy(ip, &app_ip_hdr[vport_id], sizeof(struct ipv4_hdr)); - ip->total_length = rte_cpu_to_be_16(m->data_len + ip->total_length = rte_cpu_to_be_16(m->pkt_len - sizeof(struct ether_hdr)); /* outer IP checksum */