aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/Perf-Trace-Util
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions
s="hl num">0; if (ipip_handler != NULL) ret = -EINVAL; if (!ret) ipip_handler = handler; mutex_unlock(&xfrm4_tunnel_mutex); return ret; } EXPORT_SYMBOL(xfrm4_tunnel_register); int xfrm4_tunnel_deregister(struct xfrm_tunnel *handler) { int ret; mutex_lock(&xfrm4_tunnel_mutex); ret = 0; if (ipip_handler != handler) ret = -EINVAL; if (!ret) ipip_handler = NULL; mutex_unlock(&xfrm4_tunnel_mutex); synchronize_net(); return ret; } EXPORT_SYMBOL(xfrm4_tunnel_deregister); static int ipip_rcv(struct sk_buff *skb) { struct xfrm_tunnel *handler = ipip_handler; /* Tunnel devices take precedence. */ if (handler && handler->handler(skb) == 0) return 0; return xfrm4_rcv(skb); } static void ipip_err(struct sk_buff *skb, u32 info) { struct xfrm_tunnel *handler = ipip_handler; if (handler) handler->err_handler(skb, info); } static int ipip_init_state(struct xfrm_state *x) { if (!x->props.mode) return -EINVAL; if (x->encap) return -EINVAL; x->props.header_len = sizeof(struct iphdr); return 0; } static void ipip_destroy(struct xfrm_state *x) { } static struct xfrm_type ipip_type = { .description = "IPIP", .owner = THIS_MODULE, .proto = IPPROTO_IPIP,