]> git.proxmox.com Git - ovs.git/commit
datapath: Avoid struct copy on conntrack labels.
authorJarno Rajahalme <jarno@ovn.org>
Tue, 11 Apr 2017 01:18:30 +0000 (18:18 -0700)
committerJarno Rajahalme <jarno@ovn.org>
Tue, 11 Apr 2017 16:39:53 +0000 (09:39 -0700)
commit280337736851db0358511ee211d02dc0975aad1a
tree827178b23ea0115890a52b36f1faa99d62a95f22
parent2f2b904f9e28afaff3dfb7adaa62b96c0d144ace
datapath: Avoid struct copy on conntrack labels.

Older kernels have variable sized labels, and the struct itself
contains only the length, so we must memcpy the bits explicitly.

The modified system test fails on older kernels without this change.

VMware-BZ: #1841876
Fixes: 09aa98ad496d ("datapath: Inherit master's labels.")
Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Acked-by: Andy Zhou <azhou@ovn.org>
datapath/conntrack.c
tests/system-traffic.at