examples/tep_term: fix packet length with multi-segments
authorMichael Qiu <qiudayu@chinac.com>
Tue, 18 Oct 2016 05:49:07 +0000 (13:49 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 25 Oct 2016 15:50:47 +0000 (17:50 +0200)
commit8e22aae5cb1f183a8a2b819fd4e07f6f31c5964a
treebd9a44678bd946b472db62cb1253a2e25eb1611c
parent39f84786a23897596c42124c4416fc443bc9b688
examples/tep_term: fix packet length with multi-segments

For multi-seg mbuf, ip->total_length should be pkt_len subtract
ether len.

Fixes: 4abe471ed6fc ("examples/tep_term: implement VXLAN processing")

Signed-off-by: Michael Qiu <qiudayu@chinac.com>
Acked-by: Jianfeng Tan <jianfeng.tan@intel.com>
examples/tep_termination/vxlan.c