examples/vhost: rework duplicated code
authorOuyang Changchun <changchun.ouyang@intel.com>
Wed, 5 Nov 2014 07:10:34 +0000 (15:10 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 5 Nov 2014 21:20:32 +0000 (22:20 +0100)
commit72ec8d77ac68cdc2b74428e25e06765fbb10d0cb
tree94ae9d790058ba59c1e406cbd38873733fca08b0
parente44fb8a4306dd4b62f46323d751f67e91ee5a31a
examples/vhost: rework duplicated code

Extract a function to replace duplicated codes in one copy and zero copy TX function.

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