Lines Matching refs:lwtstate
45 struct lwtunnel_state *lwtstate);
46 int (*get_encap_size)(struct lwtunnel_state *lwtstate);
74 static inline bool lwtunnel_output_redirect(struct lwtunnel_state *lwtstate) in lwtunnel_output_redirect() argument
76 if (lwtstate && (lwtstate->flags & LWTUNNEL_STATE_OUTPUT_REDIRECT)) in lwtunnel_output_redirect()
82 static inline bool lwtunnel_input_redirect(struct lwtunnel_state *lwtstate) in lwtunnel_input_redirect() argument
84 if (lwtstate && (lwtstate->flags & LWTUNNEL_STATE_INPUT_REDIRECT)) in lwtunnel_input_redirect()
90 static inline bool lwtunnel_xmit_redirect(struct lwtunnel_state *lwtstate) in lwtunnel_xmit_redirect() argument
92 if (lwtstate && (lwtstate->flags & LWTUNNEL_STATE_XMIT_REDIRECT)) in lwtunnel_xmit_redirect()
98 static inline unsigned int lwtunnel_headroom(struct lwtunnel_state *lwtstate, in lwtunnel_headroom() argument
101 if ((lwtunnel_xmit_redirect(lwtstate) || in lwtunnel_headroom()
102 lwtunnel_output_redirect(lwtstate)) && lwtstate->headroom < mtu) in lwtunnel_headroom()
103 return lwtstate->headroom; in lwtunnel_headroom()
121 int lwtunnel_fill_encap(struct sk_buff *skb, struct lwtunnel_state *lwtstate,
123 int lwtunnel_get_encap_size(struct lwtunnel_state *lwtstate);
134 if (lwtunnel_output_redirect(dst->lwtstate)) { in lwtunnel_set_redirect()
135 dst->lwtstate->orig_output = dst->output; in lwtunnel_set_redirect()
138 if (lwtunnel_input_redirect(dst->lwtstate)) { in lwtunnel_set_redirect()
139 dst->lwtstate->orig_input = dst->input; in lwtunnel_set_redirect()
159 static inline bool lwtunnel_output_redirect(struct lwtunnel_state *lwtstate) in lwtunnel_output_redirect() argument
164 static inline bool lwtunnel_input_redirect(struct lwtunnel_state *lwtstate) in lwtunnel_input_redirect() argument
169 static inline bool lwtunnel_xmit_redirect(struct lwtunnel_state *lwtstate) in lwtunnel_xmit_redirect() argument
178 static inline unsigned int lwtunnel_headroom(struct lwtunnel_state *lwtstate, in lwtunnel_headroom() argument
222 struct lwtunnel_state *lwtstate, in lwtunnel_fill_encap() argument
228 static inline int lwtunnel_get_encap_size(struct lwtunnel_state *lwtstate) in lwtunnel_get_encap_size() argument