X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Ftunnel.h;h=784cda1a93d8f61d26e8ab55b2fb8999f3a09a16;hb=79b8c1edcb52286c8f62e0f7350b1817f82815ac;hp=c3bc8ddc12cabb33cca3cd54d6c89c18561fa251;hpb=c19e653509deb3f1002c4ed99714e16549ec74e9;p=openvswitch diff --git a/datapath/tunnel.h b/datapath/tunnel.h index c3bc8ddc..784cda1a 100644 --- a/datapath/tunnel.h +++ b/datapath/tunnel.h @@ -42,7 +42,8 @@ /* All public tunnel flags. */ #define TNL_F_PUBLIC (TNL_F_CSUM | TNL_F_TOS_INHERIT | TNL_F_TTL_INHERIT | \ - TNL_F_PMTUD | TNL_F_HDR_CACHE | TNL_F_IPSEC) + TNL_F_DF_INHERIT | TNL_F_DF_DEFAULT | TNL_F_PMTUD | \ + TNL_F_HDR_CACHE | TNL_F_IPSEC) /** * struct tnl_mutable_config - modifiable configuration for a tunnel. @@ -52,7 +53,6 @@ * @tunnel_hlen: Tunnel header length. * @eth_addr: Source address for packets generated by tunnel itself * (e.g. ICMP fragmentation needed messages). - * @mtu: MTU of tunnel. * @in_key: Key to match on input, 0 for wildcard. * @out_key: Key to use on output, 0 if this tunnel has no fixed output key. * @flags: TNL_F_* flags. @@ -70,7 +70,6 @@ struct tnl_mutable_config { unsigned tunnel_hlen; unsigned char eth_addr[ETH_ALEN]; - unsigned mtu; /* Configured via ODP_TUNNEL_ATTR_* attributes. */ __be64 in_key; @@ -223,13 +222,11 @@ int tnl_destroy(struct vport *); int tnl_set_options(struct vport *, struct nlattr *); int tnl_get_options(const struct vport *, struct sk_buff *); -int tnl_set_mtu(struct vport *vport, int mtu); int tnl_set_addr(struct vport *vport, const unsigned char *addr); const char *tnl_get_name(const struct vport *vport); const unsigned char *tnl_get_addr(const struct vport *vport); -int tnl_get_mtu(const struct vport *vport); int tnl_send(struct vport *vport, struct sk_buff *skb); -void tnl_rcv(struct vport *vport, struct sk_buff *skb); +void tnl_rcv(struct vport *vport, struct sk_buff *skb, u8 tos); struct vport *tnl_find_port(__be32 saddr, __be32 daddr, __be64 key, int tunnel_type,