tunneling: get skb marking to work properly with tunnels
authorAnsis Atteka <aatteka@ovn.org>
Thu, 21 Jul 2016 11:49:40 +0000 (04:49 -0700)
committerJarno Rajahalme <jarno@ovn.org>
Thu, 21 Jul 2016 13:20:01 +0000 (06:20 -0700)
commitf574ff4aa9abaea9f8aa41cff3f82dd2b7a8c054
tree314996748d40f4856fa13ad2f3478fdea6152696
parentca3574d552b2011859f9d72dd3f08353603b8213
tunneling: get skb marking to work properly with tunnels

There are two issues that this patch fixes:
1. it was impossible to set skb mark at all through
   NXM_NX_PKT_MARK register for tunnel packets; AND
2. ipsec_xxx tunnels would not be marked with the default
   IPsec mark (broken by d23df9a87 "lib/odp: Use masked set
   actions.").

This patch also adds anti-regression tests to prevent such
breakages in the future.

Signed-off-by: Ansis Atteka <aatteka@ovn.org>
VMware-BZ: #1653178
Acked-by: Jarno Rajahalme <jarno@ovn.org>
ofproto/tunnel.c
tests/tunnel.at