vhost: rework mergeable Rx
authorOuyang Changchun <changchun.ouyang@intel.com>
Tue, 9 Jun 2015 01:03:03 +0000 (09:03 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 17 Jun 2015 14:47:51 +0000 (16:47 +0200)
commit2927c37ca4e04067de4b1de9a5c535092036ed68
treef68bc60180858b7767301d1dcac6d14a6d9e88ef
parent46a8fafaa73b9e6d20fe5a2fe3fa8258c66b1462
vhost: rework mergeable Rx

Extract codes into a function:
update_secure_len which is used to accumulate the buffer len in the
vring descriptors and to fill struct buf_vec.

Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
lib/librte_vhost/vhost_rxtx.c