This patch set fix packet length issue in vhost app, and enhance code by extracting a function to replace duplicated codes in one copy and zero copy TX function.
-v4 chang: Check offset value and extra bytes inside packet buffer cross page boundary. -v3 change: Extract a function to replace duplicated codes in one copy and zero copy TX function. -v2 change: Update data length by plus offset in first segment instead of last segment. -v1 change: Update the packet length by plus offset; Use macro to replace constant. Changchun Ouyang (3): Fix packet length issue in vhost. Extract a function to replace duplicated codes in vhost. Check offset value in vhost examples/vhost/main.c | 142 +++++++++++++++++++++++--------------------------- 1 file changed, 65 insertions(+), 77 deletions(-) -- 1.8.4.2