examples/vhost: fix hard forward of jumbo frames
authorOuyang Changchun <changchun.ouyang@intel.com>
Wed, 10 Dec 2014 12:11:47 +0000 (20:11 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 11 Dec 2014 00:42:03 +0000 (01:42 +0100)
commitc2ab5162dbd8837bf381be4627e3ba8efccf4562
treed4c3a3aa32854069cb14ee9d8a996001185e892c
parent8bd6c395a568ef7a70c64fbef0968c456bed6d29
examples/vhost: fix hard forward of jumbo frames

Search the right segment to increase its data length, rather than
wrongly early return and exit the tx function, which leads to drop all jumbo frame packets
when vm2vm is in hard forward mode.

Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
examples/vhost/main.c