Searched refs:lwtstate (Results 1 – 7 of 7) sorted by relevance
48 struct lwtunnel_state *lwtstate);49 int (*get_encap_size)(struct lwtunnel_state *lwtstate);80 static inline bool lwtunnel_output_redirect(struct lwtunnel_state *lwtstate) in lwtunnel_output_redirect() argument82 if (lwtstate && (lwtstate->flags & LWTUNNEL_STATE_OUTPUT_REDIRECT)) in lwtunnel_output_redirect()88 static inline bool lwtunnel_input_redirect(struct lwtunnel_state *lwtstate) in lwtunnel_input_redirect() argument90 if (lwtstate && (lwtstate->flags & LWTUNNEL_STATE_INPUT_REDIRECT)) in lwtunnel_input_redirect()96 static inline bool lwtunnel_xmit_redirect(struct lwtunnel_state *lwtstate) in lwtunnel_xmit_redirect() argument98 if (lwtstate && (lwtstate->flags & LWTUNNEL_STATE_XMIT_REDIRECT)) in lwtunnel_xmit_redirect()104 static inline unsigned int lwtunnel_headroom(struct lwtunnel_state *lwtstate, in lwtunnel_headroom() argument107 if ((lwtunnel_xmit_redirect(lwtstate) || in lwtunnel_headroom()[all …]
17 static inline struct mpls_iptunnel_encap *mpls_lwtunnel_encap(struct lwtunnel_state *lwtstate) in mpls_lwtunnel_encap() argument19 return (struct mpls_iptunnel_encap *)lwtstate->data; in mpls_lwtunnel_encap()
48 if (dst && dst->lwtstate && in skb_tunnel_info()49 (dst->lwtstate->type == LWTUNNEL_ENCAP_IP || in skb_tunnel_info()50 dst->lwtstate->type == LWTUNNEL_ENCAP_IP6)) in skb_tunnel_info()51 return lwt_tun_info(dst->lwtstate); in skb_tunnel_info()
491 static inline struct ip_tunnel_info *lwt_tun_info(struct lwtunnel_state *lwtstate) in lwt_tun_info() argument493 return (struct ip_tunnel_info *)lwtstate->data; in lwt_tun_info()511 static inline struct ip_tunnel_info *lwt_tun_info(struct lwtunnel_state *lwtstate) in lwt_tun_info() argument
275 mtu -= lwtunnel_headroom(skb_dst(skb)->lwtstate, mtu); in ip6_skb_dst_mtu()339 return mtu - lwtunnel_headroom(dst->lwtstate, mtu); in ip6_dst_mtu_maybe_forward()
482 return mtu - lwtunnel_headroom(dst->lwtstate, mtu); in ip_dst_mtu_maybe_forward()497 return mtu - lwtunnel_headroom(skb_dst(skb)->lwtstate, mtu); in ip_skb_dst_mtu()
72 struct lwtunnel_state *lwtstate; member