COLO-compare: Optimize tcp compare for option field
commit184d4d42033d5c111276e4eef9ea273c2e114d18
authorZhang Chen <zhangchen.fnst@cn.fujitsu.com>
Tue, 18 Apr 2017 02:20:19 +0000 (18 10:20 +0800)
committerJason Wang <jasowang@redhat.com>
Tue, 25 Apr 2017 11:17:25 +0000 (25 19:17 +0800)
treece2e3c1c8630b5d97aaf5059b19992bb28350a56
parent47bb83cad45eb7ce194a8ffd18f73c98edb46aec
COLO-compare: Optimize tcp compare for option field

In this patch we support packet that have tcp options field.
Add tcp options field check, If the packet have options
field we just skip it and compare tcp payload,
Avoid unnecessary checkpoint, optimize performance.

Signed-off-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/colo-compare.c