ipsec: unset IPSEC_MARK flag from skb_mark after tunnel packet is decapsulated
authorAnsis Atteka <aatteka@nicira.com>
Thu, 14 Mar 2013 18:53:00 +0000 (11:53 -0700)
committerAnsis Atteka <aatteka@nicira.com>
Mon, 18 Mar 2013 16:22:46 +0000 (09:22 -0700)
commit840d49ae9e8041a4e5005dec9c51623778c2a6f1
tree6bc63401641fba0aae36c3599c16de20c2e83a02
parent965b0d4b74c8d2cc73de86273963f1fc7b306e12
ipsec: unset IPSEC_MARK flag from skb_mark after tunnel packet is decapsulated

After tunnel packet is unencapsulated we should unset IPsec flag from
skb_mark.

Otherwise, IPsec policies would be applied one more time on internal
interfaces, if there is one. This is especially necessary after we
will introduce global, low-priority IPsec drop policy that will make
sure that we never let through marked but unencrypted packets.

Signed-off-by: Ansis Atteka <aatteka@nicira.com>
Issue: 15074
ofproto/ofproto-dpif.c
ofproto/tunnel.c
ofproto/tunnel.h