X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fvport-gre.c;h=45e38b003b415e77a767a51b1feef96121648209;hb=49a4902d76b9149e4fa399bde6d5cb9a91e64c07;hp=d378ccb060e803b760deb87902e1e0daa7fad6f7;hpb=5c7f58830a25520f7e18225b79de2774b9e9e012;p=openvswitch diff --git a/datapath/vport-gre.c b/datapath/vport-gre.c index d378ccb0..45e38b00 100644 --- a/datapath/vport-gre.c +++ b/datapath/vport-gre.c @@ -52,9 +52,9 @@ static void get_gre_param(const struct tnl_mutable_config *mutable, if (tun_key->ipv4_dst) { *flags = 0; - if (tun_key->tun_flags & OVS_FLOW_TNL_F_KEY) + if (tun_key->tun_flags & OVS_TNL_F_KEY) *flags = TNL_F_OUT_KEY_ACTION; - if (tun_key->tun_flags & OVS_FLOW_TNL_F_CSUM) + if (tun_key->tun_flags & OVS_TNL_F_CSUM) *flags |= TNL_F_CSUM; *tunnel_type = TNL_T_PROTO_GRE; *out_key = tun_key->tun_id; @@ -384,13 +384,13 @@ static u32 gre_flags_to_tunnel_flags(const struct tnl_mutable_config *mutable, if (gre_flags & GRE_KEY) { if (mutable->key.daddr && (mutable->flags & TNL_F_IN_KEY_MATCH)) - tunnel_flags = OVS_FLOW_TNL_F_KEY; + tunnel_flags = OVS_TNL_F_KEY; else if (!mutable->key.daddr) - tunnel_flags = OVS_FLOW_TNL_F_KEY; + tunnel_flags = OVS_TNL_F_KEY; } if (gre_flags & GRE_CSUM) - tunnel_flags |= OVS_FLOW_TNL_F_CSUM; + tunnel_flags |= OVS_TNL_F_CSUM; return tunnel_flags; }