In case of OVS using compat fill metadata dst implementation we need to
setup temperory dst.

Signed-off-by: Pravin B Shelar <pshe...@ovn.org>
---
 datapath/linux/compat/gso.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/datapath/linux/compat/gso.h b/datapath/linux/compat/gso.h
index 23edacd..fa0a7db 100644
--- a/datapath/linux/compat/gso.h
+++ b/datapath/linux/compat/gso.h
@@ -17,7 +17,7 @@ struct ovs_gso_cb {
 #ifndef HAVE_INNER_PROTOCOL
        __be16          inner_protocol;
 #endif
-#ifndef HAVE_NDO_FILL_METADATA_DST
+#ifndef USE_UPSTREAM_TUNNEL
        /* Keep original tunnel info during userspace action execution. */
        struct metadata_dst *fill_md_dst;
 #endif
@@ -166,7 +166,7 @@ static inline void ovs_dst_release(struct dst_entry *dst)
 #define ovs_dst_release dst_release
 #endif
 
-#ifndef HAVE_NDO_FILL_METADATA_DST
+#ifndef USE_UPSTREAM_TUNNEL
 #define SKB_INIT_FILL_METADATA_DST(skb)        OVS_GSO_CB(skb)->fill_md_dst = 
NULL;
 
 #define SKB_RESTORE_FILL_METADATA_DST(skb)     do {                    \
-- 
1.9.1

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to